1(function ($) { 2 "use strict"; 3 4 $(window).scroll(function() { 5 if ($(this).scrollTop() > 300) { 6 $('.scrollToTop').addClass('button-show'); 7 } else { 8 $('.scrollToTop').removeClass('button-show'); 9 } 10 }); 11 12 $(document).ready(function() { 13 $(".scrollToTop").click(function () { 14 //1 second of animation time 15 //html works for FFX but not Chrome 16 //body works for Chrome but not FFX 17 //This strange selector seems to work universally 18 $("html, body").animate({scrollTop: 0}, 400); 19 }); 20 }); 21 22}(jQuery)); 23
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.