1$(function () { 2 const bodyClass = $('body');//class js_stickyãä»ä¸ 3 $(window).scroll(function () { 4 const headersize = $('.header_upper').height();//fixedéå§ããé«ãdiv 5 const gnavsize = $('.gnav').height();//gnav height 6 if ($(this).scrollTop() > headersize) { 7 bodyClass.addClass('js_sticky'); 8 if ( window.matchMedia( 'screen and (max-width:767.98px)' ).matches ) { 9 //sp 10 bodyClass.css('padding-top','0'); 11 //$('.header').addClass('fixed-top'); 12 }else{ 13 //pc 14 bodyClass.css('padding-top',gnavsize); 15 $('.gnav').addClass('fixed-top'); 16 } 17 } else { 18 bodyClass.removeClass('js_sticky'); 19 bodyClass.css('padding-top','0'); 20 $('.gnav').removeClass('fixed-top'); 21 } 22 }); 23});
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.