$(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 popup() { //레이어팝업 var bg = $("#bg"); $(document).on('click',' #bg, .close ', function () { bg.fadeOut(); $('div[id*="-popup"] div.inner').html(''); $('div[id*="-popup"]').hide(); }); $(document).on('click','.layer-', function () { var ClassName = $(this).data('link'); bg.show(); $('#layer-popup').show(); $('#layer-popup').html( ''+ '
'+ '
' ); //foot 메뉴 클릭시 switch (ClassName) { case "privacy1": $("#layer-popup div.inner").load("/_privacy1.php"); break; case "terms": $("#layer-popup div.inner").load("/_terms.php"); break; } }); //click } $(function(){ startJs(); popup(); headerJS(); }); function headerJS(){ var $header = $("header"); var $depth1 = $("#wrap header #nav .gnb > li"); $depth1.mouseover(function(){ var $this = $(this); $header.addClass("on"); if($this.hasClass("hv_n")){ $header.addClass("hv_n"); }else { $header.removeClass("hv_n"); } }); $depth1.mouseleave(function(){ $header.removeClass("on"); }); $("#wrap header button.menu.open").click(function(){ $("#allmenu").fadeIn(200); }); $("#wrap header button.menu.close").click(function(){ $("#allmenu").fadeOut(200); }); //mobile allmenu $(window).on("resize",function(){ if($(this).width() <= 1279){ $("#allmenu .inner .all_gnb>ul>li .lnb").hide(); $("#allmenu .inner .all_gnb>ul>li>a").removeClass("on"); $("#allmenu .inner .all_gnb>ul>li>a").click(function(){ $(this).toggleClass("on"); $(this).next().stop().slideToggle(200); $(this).parent().siblings().find("a").removeClass("on"); $(this).parent().siblings().find(".lnb").slideUp(200); }); }else { $("#allmenu .inner .all_gnb>ul>li .lnb").show(); $("#allmenu .inner .all_gnb>ul>li>a").removeClass("on"); } }).resize(); }