PageSourceSearch

https://statearchive.ru/js/uptotop.js?banner=off

js statearchive.ru collected 2026-10-02 07:33:33 UTC 489 bytes, 19 lines download raw bytes

1let mybutton = document.getElementById("btn-back-to-top");
2window.onscroll = function () {
3  scrollFunction();
4};
5function scrollFunction() {
6  if (
7    document.body.scrollTop > 20 ||
8    document.documentElement.scrollTop > 20
9  ) {
10    mybutton.style.display = "block";
11  } else {
12    mybutton.style.display = "none";
13  }
14}
15mybutton.addEventListener("click", backToTop);
16function backToTop() {
17  document.body.scrollTop = 0;
18  document.documentElement.scrollTop = 0;
19}

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.