PageSourceSearch

https://seranking.com/blog/wp-content/cache/min/1/blog/wp-content/…/assets/js/scroll-top-btn.js?ver=1788855310

js seranking.com collected 2026-09-24 07:25:41 UTC 858 bytes, 3 lines download raw bytes

1(function(){function scrollToTop(){var scrollToTopBtn=document.getElementById('scroll-top-btn');var timeoutId;window.addEventListener('scroll',function(){clearTimeout(timeoutId);changesBlockClass(scrollToTopBtn,'show','add');timeoutId=setTimeout(function(){changesBlockClass(scrollToTopBtn,'show','remove')},2000)});scrollToTopBtn.addEventListener('mouseover',function(){clearTimeout(timeoutId)});scrollToTopBtn.addEventListener('mouseout',function(){timeoutId=setTimeout(function(){changesBlockClass(scrollToTopBtn,'show','remove')},2000)});scrollToTopBtn.addEventListener('click',function(){window.scrollTo({top:0,behavior:'smooth',})})}
2function changesBlockClass(block,className,action){block.classList[action](className)}
3if(document.readyState!=='loading'){scrollToTop()}else{document.addEventListener('DOMContentLoaded',function(){scrollToTop()})}})()

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.