PageSourceSearch

https://finveda.vercel.app/tools/smoothScroll.js

js finveda.vercel.app collected 2026-10-03 06:56:56 UTC 447 bytes, 18 lines download raw bytes

1window.addEventListener("scroll", function () {
2  const backToTopButton = document.querySelector(".back-to-top");
3  if (window.scrollY > 300) {
4    backToTopButton.style.display = "block";
5  } else {
6    backToTopButton.style.display = "none";
7  }
8});
9
10document
11  .querySelector(".back-to-top")
12  .addEventListener("click", function (event) {
13    event.preventDefault();
14    window.scrollTo({
15      top: 0,
16      behavior: "smooth",
17    });
18  });

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.