1jQuery(document).ready(function() { 2 function isScrolledTo(elem) { 3 var docViewTop = jQuery(window).scrollTop(); //num of pixels hidden above current screen 4 var docViewBottom = docViewTop + jQuery(window).height(); 5 6 var elemTop = jQuery(elem).offset().top; //num of pixels above the elem 7 var elemBottom = elemTop + jQuery(elem).height(); 8 9 return ((elemTop <= docViewTop)); 10 } 11 12 var catcher = jQuery('#catcher'); 13 var sticky = jQuery('#sticky'); 14 15 jQuery(window).scroll(function() { 16 if(isScrolledTo(sticky) && sticky.css('position') != 'fixed') { 17 sticky.css('position','fixed'); 18 sticky.css('top','0'); 19 } else if (jQuery(window).scrollTop() <= catcher.offset().top && sticky.css('position') != 'relative') { 20 sticky.css('position','relative'); 21 sticky.css('top', 'auto'); 22 } 23 }); 24});
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.