1jQuery(function($) { 2 let MENU_THRESHOLD = 400; 3 let topPrev = 0; 4 let $body = $('body'), 5 $mainMenuWrap = $('.mainMenuWrap'), 6 $ezSubMenuBG = $('.ez-subMenuBG'); 7 8 $(window).on('scroll load', function() { 9 let top = $(this).scrollTop(); 10 let left = $(this).scrollLeft(); 11 12 /* 모ë°ì¼ 모ëììë ë©ë´ ìë¨ ê³ ì ì í¨ */ 13 if ($('#mmenu-icon').css('display') != 'none') { 14 $body.removeClass('menu-fixed'); 15 return; 16 } 17 18 /* ë©ë´ê° ìë¡ ì¬ë¼ì§ ë */ 19 if (top > MENU_THRESHOLD && topPrev <= MENU_THRESHOLD) { 20 let h1 = $mainMenuWrap.outerHeight(true); 21 22 $body.addClass('menu-fixed'); 23 } 24 /* ë©ë´ê° ë¤ì ëíë ë */ 25 else if (top <= MENU_THRESHOLD && topPrev > MENU_THRESHOLD) { 26 $body.removeClass('menu-fixed'); 27 } 28 29 topPrev = top; 30 }); 31 32 $mainMenuWrap 33 .on('mouseenter', function() { 34 $(this).stop(); 35 }) 36 .on('mouseleave', function() { 37 if ($body.hasClass('menu-fixed')) $(this).stop(); 38 }); 39});
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.