1//GNB fixed 2 var didScroll; 3 var lastScrollTop = 0; 4 var delta = 5; 5 var navbarHeight = $('header').outerHeight(); 6 7 $(window).scroll(function(event){ 8 didScroll = true; 9 }); 10 11 setInterval(function() { 12 if (didScroll) { 13 hasScrolled(); 14 didScroll = false; 15 } 16 }, 250); 17 18 function hasScrolled() { 19 var st = $(this).scrollTop(); 20 // Make sure they scroll more than delta 21 if(Math.abs(lastScrollTop - st) <= delta) return; 22 // If they scrolled down and are past the navbar, add class .nav-up. 23 // This is necessary so you never see what is "behind" the navbar. 24 if (st > lastScrollTop && st > navbarHeight){ 25 // Scroll Down 26 $('.header').removeClass('fixed').addClass('nofixed'); 27 } else if (st == 0){ 28 $('.header').removeClass('fixed').removeClass('nofixed'); 29 } else { 30 // Scroll Up 31 if(st + $(window).height() < $(document).height()) { 32 $('.header').removeClass('nofixed').addClass('fixed'); 33 } 34 } 35 lastScrollTop = st; 36 } 37//GNB fixed 38 39 40// ì¤í¬ë¡¤ ì¤í¼ë 41$(window).load(function(){ 42 $("a.mouse_wheel").mPageScroll2id({ 43 scrollSpeed:900 44 }); 45}); 46 47 48// íë²í¼ 49$(function(){ 50 $(window).scroll(function(){ 51 if($(window).scrollTop() >= 50){ 52 TweenMax.to($(".btn_top"), 0.5, {display:"block", opacity:1, delay:.2, ease:Power4.easeOut}); 53 } else { 54 TweenMax.to($(".btn_top"), 0.5, {display:"none", opacity:0, delay:.2, ease:Power4.easeOut}); 55 } 56 });$(window).scroll(); 57 58 $('.btn_top a').click(function(){ 59 $("html, body").animate({scrollTop:0},600); 60 return false; 61 }); 62}); 63 64 65// pc ë©ë´ 66$(function(){ 67 $(".gnb").mouseover(function(){ 68 $(".header").addClass("up"); 69 }).mouseleave(function(){ 70 $(".header").removeClass("up"); 71 }); 72}); 73 74 75 76 77 78 79$(function(){ 80 $('.menu_btn').click(function(){ 81 $('.mo_menu').addClass('show'); 82 }); 83}); 84$(function(){ 85 $('.btnMenu_mClose,.mo_menu_bg').click(function(){ 86 $('.mo_menu').removeClass('show'); 87 $('.mo_menu_list dl').removeClass("hover"); 88 $('.mo_menu_list dl.first').addClass("hover"); 89 }); 90}); 91 92$(function(){ 93 $('.s_menu').click(function(){ 94 $('.mo_menu').removeClass('show'); 95 $('.mo_menu_list dl').removeClass("hover"); 96 $('.mo_menu_list dl.first').addClass("hover"); 97 }); 98}); 99 100 101$(window).load(function(){ 102 103 $("body").on("click ", ".mo_menu_list dl", function(){ 104 var idx = $(".mo_menu_list dl").index($(this)); 105 $(".mo_menu_list dl").each(function(index){ 106 if(idx == index){ 107 if(!$(this).hasClass("on")){ 108 $(this).addClass("on"); 109 $(this).find("dd").slideDown(300); 110 }else{ 111 $(this).removeClass("on"); 112 $(this).find("dd").slideUp(300); 113 } 114 }else{ 115 $(this).removeClass("on"); 116 $(this).find("dd").slideUp(300); 117 } 118 }); 119 }); 120}); 121 122 123$(window).resize(function() { 124 if($(window).width() < 681) { 125 $(".mo_menu_list dd").hide(); 126 } else { 127 $(".mo_menu_list dd").show(); 128 } 129}); 130 131 132 133$(function () { 134 $('.mo_menu_list dl').mouseenter(function(){ 135 $(this).siblings('dl').removeClass("hover"); 136 $(this).addClass("hover"); 137 }); 138 $('.mo_menu_list dl.first').mouseleave(function(){ 139 $(this).addClass("hover"); 140 }); 141});
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.