1$(function(){ 2 var $win = $(window), 3 $main = $('.global_menu'), 4 $nav = $('.hd_original'), 5 navHeight = $nav.outerHeight(), 6 navPos = $nav.offset().top, 7 winW = $(window).width(), 8 fixedClass = 'is-fixed'; 9 10 $(window).on('load scroll', function() { 11 var value = $(this).scrollTop(); 12 if(winW > 768){ 13 if ( value > navPos ) { 14 $nav.addClass(fixedClass); 15 } else { 16 $nav.removeClass(fixedClass); 17 } 18 } 19 }); 20 21 /*PAGE TOP*/ 22 $('.pageTop').on('click',function(){ 23 var toTop = $('body').offset().top; 24 $('html,body').animate({scrollTop : toTop},{duration:1500,easing:'easeInOutCubic'}); 25 }); 26 27 /*SP MENU*/ 28 $('.nav_btn').on('click', function(){ 29 $(this).toggleClass('open'); 30 $('.hd_inner').stop().fadeToggle(); 31 $('html, body').toggleClass('lock'); 32 }); 33 34 $('.btn_sp_menu').on('click',function(){ 35 $(this).stop().toggleClass('rotate'); 36 $(this).next('.global_menuList').stop().slideToggle(); 37 }); 38}); 39 40$(window).on('load',function(){ 41 setTimeout(function(){ 42 $('.wrapper').animate({'opacity':1},{duration:1500}); 43 },1000); 44}); 45
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.