1$(function(){ 2 var pagetop = $('#page_top'); 3 // ãã¿ã³é表示 4 pagetop.hide(); 5 // 100px ã¹ã¯ãã¼ã«ããããã¿ã³è¡¨ç¤º 6 $(window).scroll(function () { 7 if ($(this).scrollTop() > 100) { 8 pagetop.fadeIn(); 9 } else { 10 pagetop.fadeOut(); 11 } 12 }); 13 pagetop.click(function () { 14 ã// 500 = 0.5ç§ 15 $('body, html').animate({ scrollTop: 0 }, 500); 16 return false; 17 }); 18 }); 19 20 21 const btn = document.getElementById("btn"); 22 23 btn.addEventListener("click", (event) => { 24 event.preventDefault(); 25 window.scroll({ 26 top: 0, 27 behavior: "smooth", 28 }); 29 }); 30 31
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.