PageSourceSearch

https://tabiri.ai/javascripts/homepage.js

js tabiri.ai collected 2026-10-05 13:37:52 UTC 1,047 bytes, 35 lines download raw bytes

1(function () {
2    const menuIcon = document.getElementById("homeMenuIcon");
3    const mobileNav = document.getElementById("homeMobileNav");
4    const closeButton = document.getElementById("homeMobileNavClose");
5
6    if (menuIcon && mobileNav && closeButton) {
7        menuIcon.addEventListener("click", () => {
8            mobileNav.classList.add("is-open");
9        });
10
11        closeButton.addEventListener("click", () => {
12            mobileNav.classList.remove("is-open");
13        });
14
15        mobileNav.querySelectorAll("a").forEach((link) => {
16            link.addEventListener("click", () => {
17                mobileNav.classList.remove("is-open");
18            });
19        });
20    }
21
22    function scrollToSection() {
23        const hash = window.location.hash;
24        if (!hash) {
25            return;
26        }
27
28        const target = document.querySelector(hash);
29        if (target) {
30            target.scrollIntoView({ behavior: "smooth", block: "start" });
31        }
32    }
33
34    window.addEventListener("load", scrollToSection);
35})();

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.