1$(document).ready(function(){ 2 3//gnb 4 $('#header .wrap1 #gnb > ul > li:nth-child(1), .hd_bg').on("mouseenter", function(){ 5 $('#header .hd_bg').stop().slideDown(); 6 }).on("mouseleave", function(){ 7 $('#header .hd_bg').stop().slideUp(); 8 }); 9 10 $("#header .hd_bg").html($("#header #gnb > ul > li").eq(0).find('.submenu').html()); 11 12 // ì¬ì´í¸ë§µ gnb ì¬ì© 13 $(".nav-menu").html($("#gnb").html()); 14 // 1ëì¤ ë©ë´ href 미ì ì© 15 // 1ëì¤ ë©ë´ì span ì¶ê° 16 $('.nav-menu > ul > li').eq(0).addClass('current'); 17 18 $('.nav-menu > ul > li').eq(0).find('.submenu').slideDown(); 19 20 $('.nav-menu > ul > li > a').wrap('<span></span>'); 21 // site map 22 $("a.sitemap-btn").click(function(e){ 23 $("html").addClass("sitemap-opened"); 24 $("body, html").css('overflow-y', 'hidden'); 25 }); 26 $(".sitemap-close").click(function(e){ 27 $("html").removeClass("sitemap-opened"); 28 $("body, html").css('overflow-y', 'visible'); 29 }); 30 31 32 $(".nav-menu ul > li").click(function(e){ 33 var subm = $(this).find('.submenu'); 34 if(subm.length == 1){ 35 $(this).find('> span > a').attr('href', '#n'); 36 $(".nav-menu ul > li .submenu").stop().slideUp('fast'); 37 subm.stop().slideToggle('fast'); 38 } 39 }); 40 41 42 43 // fancybox 44 $(".pop_privacy").fancybox({ 45 padding : 0, 46 margin : 10, 47 fitToView : false, 48 closeClick : false, 49 openEffect : 'none', 50 closeEffect : 'none', 51 type : 'ajax', 52 helpers: { 53 overlay: { 54 locked: false 55 } 56 } 57 }); 58 59 $(".pop_email").fancybox({ 60 padding : 0, 61 margin : 10, 62 fitToView : false, 63 closeClick : false, 64 openEffect : 'none', 65 closeEffect : 'none', 66 type : 'ajax', 67 helpers: { 68 overlay: { 69 locked: false 70 } 71 } 72 }); 73 74 var prevScrollTop = 0; 75 document.addEventListener('scroll',function(){ 76 var nowScrollTop = $(window).scrollTop() 77 if(nowScrollTop > prevScrollTop){ 78 $('#header').removeClass('active'); 79 $('#header').addClass('hide'); 80 81 $('.brand-visual-tab4-wrap').removeClass('active'); 82 $('.brand-visual-tab4-wrap').addClass('hide'); 83 84 } 85 else{ 86 $('#header').addClass('active'); 87 $('#header').removeClass('hide'); 88 89 $('.brand-visual-tab4-wrap').addClass('active'); 90 $('.brand-visual-tab4-wrap').removeClass('hide'); 91 } 92 93 if(nowScrollTop >= 50){ 94 $('#header').addClass('sc'); 95 } 96 else{ 97 $('#header').removeClass('sc'); 98 } 99 100 prevScrollTop = nowScrollTop; 101 }); 102 103 104// tab4 105 $('.brand-visual-tab4-wrap').html($("#header #gnb .current ul .current .dep3 .current > .tab-dep4").html()); 106 107 $('.brand-visual-tab4-wrap > ul > li').eq(0).find(' > a').attr('target', ''); 108 109 110//footer 111 $(".ft_nav").html($("#header #gnb > ul > li").eq(0).html()); 112 $(".ft_nav > a").html("BRAND"); 113 114 $(function(){ 115 AOS.init({ 116 once: true, 117 duration: 1200, 118 }); 119 }) 120 121 122 123 124}); //End 125 126 127 128 129
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.