PageSourceSearch

https://verityrecord.com/js/theme-switcher.js

js verityrecord.com collected 2026-10-02 01:47:48 UTC 1,087 bytes, 1 lines download raw bytes

1const VRTheme=(()=>{const a="vr-theme",n=["dark","light"],i={dark:"\u{1F319}",light:"\u2600\uFE0F"},d={dark:"Dark",light:"Light"};function o(){try{const t=localStorage.getItem(a);if(t&&n.includes(t))return t}catch{}return"light"}function c(t){const e=document.documentElement;t==="dark"?e.removeAttribute("data-theme"):e.setAttribute("data-theme",t),e.setAttribute("data-vr-theme",t);const r=document.querySelector('meta[name="color-scheme"]');r&&(r.content=t==="dark"?"dark":"light");try{localStorage.setItem(a,t)}catch{}requestAnimationFrame(()=>{e.classList.add("theme-ready")}),document.dispatchEvent(new CustomEvent("vr-theme-change",{detail:{theme:t}}))}function s(){const t=o(),e=n.indexOf(t),r=n[(e+1)%n.length];return c(r),r}function l(t){return i[t]||i.dark}function u(t){return d[t]||d.dark}function m(){c(o());try{const t=window.matchMedia("(prefers-color-scheme: dark)");t&&t.addEventListener&&t.addEventListener("change",function(e){try{localStorage.getItem(a)||c("light")}catch{}})}catch{}}return{get:o,apply:c,toggle:s,icon:l,label:u,init:m,THEMES:n}})();VRTheme.init();

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.