PageSourceSearch

https://locale-sagamiono.jp/js/hamburger.js

js locale-sagamiono.jp collected 2026-10-07 23:17:18 UTC 560 bytes, 19 lines download raw bytes

1const hamburger = document.getElementById("hamburger");
2const spNav = document.getElementById("sp-nav");
3const body = document.body;
4
5hamburger.addEventListener("click", () => {
6  hamburger.classList.toggle("active");
7  spNav.classList.toggle("active");
8  body.classList.toggle("no-scroll");
9});
10
11// ナビクリックで閉じる
12document.querySelectorAll(".sp-nav a").forEach(link => {
13  link.addEventListener("click", () => {
14    hamburger.classList.remove("active");
15    spNav.classList.remove("active");
16    body.classList.remove("no-scroll");
17  });
18});
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.