1jQuery.noConflict(); 2jQuery(function($) { 3 4 // When to show the scroll link 5 // higher number = scroll link appears further down the page 6 var upperLimit = 100; 7 8 // Our scroll link element 9 var scrollElem = $('a#scroll-to-top'); 10 11 // Scroll to top speed 12 var scrollSpeed = 500; 13 14 // Show and hide the scroll to top link based on scroll position 15 scrollElem.hide(); 16 $(window).scroll(function () { 17 var scrollTop = $(document).scrollTop(); 18 if ( scrollTop > upperLimit ) { 19 $(scrollElem).stop().fadeTo(300, 1); // fade back in 20 }else{ 21 $(scrollElem).stop().fadeTo(300, 0); // fade out 22 } 23 }); 24 25 // Scroll to top animation on click 26 $(scrollElem).click(function(){ 27 $('html, body').animate({scrollTop:0}, scrollSpeed); return false; 28 }); 29 30});
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.