$(document).on('click', 'a[href="#none"]', function(e) { e.preventDefault(); }); //기본js function startJs(){ $(document).on('click', 'a[href="#none"]', function(e) {e.preventDefault()}); if($('html').is('.ie67, .ie7, .ie8, .ie9')) { $('div.ie_alert_text').show().html('현재 사이트는 IE9 미만의 하위브라우저를 지원하지 않습니다.
브라우저를 최신 버전으로 업데이트해 주세요.'); } WebFont.load({google: {families: ['Noto Sans KR', 'Montserrat']}}); } function commonJs() { $(".language .title").click(function(){ $(this).parent(".language").toggleClass("open"); if($(this).parent(".language").hasClass("open")){ $(".language").find("ul").stop().slideDown(); }else{ $(".language").find("ul").stop().slideUp(); } }); $(document).on("click",".hamburger_btn",function(){ $("#allmenu").fadeIn(); $("#allmenu").delay(1000).addClass("open"); }); $(document).on("click","#allmenu .close",function(){ $("#allmenu").fadeOut(); $("#allmenu").removeClass("open"); }); /*메뉴호버*/ $("#nav>ul>li").mouseenter(function(){ var menuNum = $(this).index()+1; if(menuNum === menuNum){ $(this).find(".lnb").stop().slideDown(); $(this).siblings().find('.lnb').stop(true).hide(); $(".lnb > ul").stop().hide(); $(".lnb > .sub"+menuNum+"").stop().fadeIn(); }else{ $(".lnb").stop().hide(); $(".lnb > ul").stop().hide(); } }); $("#nav").mouseleave(function(){ $(".lnb").stop().hide(); $(".lnb > ul").stop().hide(); }); /*태블릿모바일사이즈*/ $(window).resize(function(){ vw = $(window).width(); $("#allmenu").hide(); if(vw < 1400){ $("#allmenu .inner .box .list_wrap").hide(); $("#allmenu .inner .box h2").removeClass("act"); $("#allmenu .inner .box:nth-child(1) h2").addClass("act"); }else{ $("#allmenu .inner .box .list_wrap").show(); $("#allmenu .inner .box h2").removeClass("act"); $("#allmenu .inner .box:nth-child(1) h2").removeClass("act"); } }).resize(); $("#allmenu .inner .box h2").click(function(){ $(this).addClass("act"); if($(this).attr("class") == "act"){ $(this).next(".list_wrap").show(); }else{ } $(this).parents(".box").siblings().find("h2").removeClass("act"); $(this).parents(".box").siblings().find(".list_wrap").hide(); }); $('#allmenu .inner').niceScroll({ cursorcolor: "#f67f21", cursorwidth: 3, scrollspeed: 70, cursorborderradius: 0, mousescrollstep: 60, cursoropacitymin: 0, cursoropacitymax: 1, background: "rgba(0,0,0,0.2)", cursorborder: "none", autohidemode: false, boxzoom: false, smoothscroll: true, zindex:1001, }); } function popupJs() { //레이어팝업 var bg = $("#bg"); $(document).on('click',' #bg, #popup .close ', function () { bg.fadeOut(); $('#popup div.inner').html(''); $('#popup').hide(); }); $(document).on('click',' .privacy_wrap .button , .privacy1.button', function () { var ClassName = $(this).data('link'); bg.show(); $('#popup').show(); $('#popup').html( '
'+ ''+ '
'+ '
' ); //foot 메뉴 클릭시 switch (ClassName) { case "privacy1": $("#popup div.container").load("./_privacy1.php"); break; } }); //click } $(function(){ startJs(); commonJs(); popupJs(); });