1var btn = $('#button'); 2var allheight = $(document).outerHeight(true); 3var windowheight = $(window).height(); 4var buttonwindowview = windowheight * 4; 5var buttonview = windowheight * 3; 6console.log(allheight); 7console.log(windowheight); 8$(window).scroll(function() { 9 if (allheight > buttonwindowview) { 10 if ($(window).scrollTop() > buttonview) { 11 btn.addClass('show'); 12 } else { 13 btn.removeClass('show'); 14 } 15 } 16}); 17 18btn.on('click', function(e) { 19 e.preventDefault(); 20 $('html, body').animate({scrollTop:0}, '300'); 21});
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.