PageSourceSearch

https://dragon-ball-official.com/assets/js/page-top.js

js dragon-ball-official.com collected 2026-09-24 17:52:47 UTC 704 bytes, 24 lines download raw bytes

1document.addEventListener("DOMContentLoaded", () => {
2  const trigger = document.getElementById("scroll-trigger");
3  const backToTop = document.getElementById("back-to-top");
4
5  // ボタンをクリックした時のスムーススクロール
6  backToTop.addEventListener("click", () => {
7    window.scrollTo({
8      top: 0,
9      behavior: "smooth",
10    });
11  });
12
13  const observer = new IntersectionObserver((entries) => {
14    const entry = entries[0];
15    // トリガーが画面から消えたらボタン表示
16    if (!entry.isIntersecting) {
17      backToTop.classList.add("is-visible");
18    } else {
19      backToTop.classList.remove("is-visible");
20    }
21  });
22
23  observer.observe(trigger);
24});

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.