PageSourceSearch

https://nisrulz.com/main.js

js nisrulz.com collected 2026-09-24 09:43:12 UTC 421 bytes, 15 lines download raw bytes

1const html = document.documentElement;
2const toggle = document.getElementById('themeToggle');
3
4function setTheme(theme) {
5  html.setAttribute('data-theme', theme);
6  localStorage.setItem('theme', theme);
7}
8
9toggle.addEventListener('click', () => {
10  const next = html.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
11  setTheme(next);
12});
13
14const saved = localStorage.getItem('theme');
15setTheme(saved || 'dark');

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.