1function toTopBtn() { 2 return ( window.scrollY !== undefined ) ? window.scrollY: document.documentElement.scrollTop; 3 } 4 5 //ãããã«æ»ããã¿ã³ã®è¦ç´ ãåå¾ 6 var topButton = document.getElementById( 'pagetop' ); 7 8 //ãã¿ã³ã®è¡¨ç¤ºã»é表示 9 window.onscroll = function() { 10 ( toTopBtn() > 10 ) ? topButton.classList.add( 'pagetop__isshow' ): topButton.classList.remove( 'pagetop__isshow' ); 11 }; 12 13 //ãããã«ç§»åãã颿° 14 function scrollToTop() { 15 var scrolled = toTopBtn(); 16 window.scrollTo( 0, Math.floor( scrolled / 2 ) ); 17 if ( scrolled > 0 ) { 18 window.setTimeout( scrollToTop, 30 ); 19 } 20 }; 21 22 //ã¤ãã³ãç»é² 23 topButton.onclick = function() { 24 scrollToTop(); 25 };
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.