1jQuery(document).ready(function(){ 2 3 4 function initStickyFilter() { 5 //.filter-form gone for search listing 6 var filter = $(".filter-form"); 7 var w = $( window ); 8 var wHeight = w.height(); 9 var filterFormTopOffset = 276; 10 var bodyHeight = $("body").height(); 11 var maxScroll = bodyHeight - 1500; // 500 is an imaginary offset 12 var browserHeightLimit = 900; // disable on laptops and small browser 13 14 //console.log(w.height()); 15 16 w.scroll(function( e ) { 17 18 var scrollY = w.scrollTop(); 19 20 if(scrollY >= maxScroll || wHeight < browserHeightLimit) return 0; 21 22 if(scrollY > filterFormTopOffset) { 23 filter.css("margin-top", scrollY - filterFormTopOffset); 24 } else { 25 filter.css("margin-top", 0); 26 } 27 28 29 }); 30 31 } 32 33 //scroll gone longstay 34 //Aaron: 35 if($("body").hasClass("long-stay-gone")) initStickyFilter(); 36 37 38});
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.