PageSourceSearch

https://www.nurgasemetey.com/assets/js/main.js

js nurgasemetey.com collected 2026-10-09 22:08:32 UTC 835 bytes, 31 lines download raw bytes

1(() => {
2  // Theme switch
3  const body = document.body;
4  const lamp = document.getElementById("mode");
5
6  const toggleTheme = (state) => {
7    if (state === "dark") {
8      localStorage.setItem("theme", "light");
9      body.removeAttribute("data-theme");
10    } else if (state === "light") {
11      localStorage.setItem("theme", "dark");
12      body.setAttribute("data-theme", "dark");
13    } else {
14      initTheme(state);
15    }
16  };
17
18  lamp.addEventListener("click", () =>
19    toggleTheme(localStorage.getItem("theme"))
20  );
21
22  // Blur the content when the menu is open
23  const cbox = document.getElementById("menu-trigger");
24
25  cbox.addEventListener("change", function () {
26    const area = document.querySelector(".wrapper");
27    this.checked
28      ? area.classList.add("blurry")
29      : area.classList.remove("blurry");
30  });
31})();

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.