1$(document).ready(function(){ 2 3 $(".gotop").hide(); 4 5 $(window).on("scroll", function() { 6 7 if ($(this).scrollTop() > 100) { 8 $('.gotop').slideDown("fast"); 9 } else { 10 $('.gotop').slideUp("fast"); 11 } 12 13 scrollHeight = $(document).height(); 14 scrollPosition = $(window).height() + $(window).scrollTop(); 15 footHeight = $("footer").innerHeight(); 16 17 if ( scrollHeight - scrollPosition <= footHeight ) { 18 $(".gotop").css({ 19 "position":"absolute", 20 "bottom": footHeight 21 }); 22 } else { 23 $(".gotop").css({ 24 "position":"fixed", 25 "bottom": "0px" 26 }); 27 } 28 }); 29 30 $('.gotop a').click(function () { 31 $('body,html').animate({ 32 scrollTop: 0 33 }, 500); 34 return false; 35 }); 36});
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.