1jQuery(document).ready(function($) { 2 if ( ! jQuery('#site-navigation')[0] ) 3 return; 4 5 var stickyNavTop = jQuery('#site-navigation').offset().top; 6 7 var stickyNav = function(){ 8 var scrollTop = jQuery(window).scrollTop(); 9 10 if (scrollTop > stickyNavTop) { 11 jQuery('body').addClass('stickynav'); 12 } else { 13 jQuery('body').removeClass('stickynav'); 14 } 15 }; 16 17 stickyNav(); 18 19 jQuery(window).scroll(function() { 20 stickyNav(); 21 }); 22});
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.