1$( () => { 2 let topBtn = $('#up-bt'); 3 topBtn.hide(); 4 $(window).scroll( () => { 5 if ($(this).scrollTop() > 500) { 6 topBtn.fadeIn(); 7 } else { 8 topBtn.fadeOut(); 9 } 10 }); 11 topBtn.click( () => { 12 $('html,body').animate({ 13 scrollTop: 0 14 }, 500); 15 return false; 16 }); 17}); 18$('a[href^="#"]').on('click', function () { 19 var href = $(this).attr("href"); 20 var target = $(href == "#" || href == "" ? 'html' : href); 21 var position = target.offset().top; 22 $("html, body").animate({scrollTop: position}, 500, "swing"); 23 return false; 24 });
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.