1var name = "#Rfloating"; 2var y = null; 3$(function(){ 4 5 6 // name exists 7 if (document.getElementById(name.replace('#', ''))) { 8 y = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px"))) 9 function scrollit() { 10 offset = y + $(document).scrollTop(); 11 gap = (offset + $(name).height()) - ($(window).height() + $(document).scrollTop()); 12 // hit bottom 13 if (gap > 0) { 14 offset -= gap; 15 } 16 // hit top (original y offset) 17 if (offset < y) { 18 offset = y; 19 } 20 offset += "px"; 21 $(name).animate({ 22 top:offset 23 },{ 24 duration:500, 25 queue:false 26 }); 27 } 28 $(window).scroll(scrollit); 29 scrollit(); 30 } 31});
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.