PageSourceSearch

https://wtcrp.com/_content/NovaSingular.BaseTheme.ThemeComponents/…/theme-color-modes-module.min.bty6vymb2g.js

js wtcrp.com collected 2026-10-05 23:37:22 UTC 1,708 bytes, 1 lines download raw bytes

1function r(n){let t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.querySelectorAll("source[data-bs-theme]").forEach(i=>{i.media=`(prefers-color-scheme: ${i.dataset.bsTheme})`,n!==t&&(i.media=`(prefers-color-scheme: ${i.dataset.bsTheme==="dark"?"light":"dark"})`)})}function t(n){let i=n!=="light"&&n!=="dark";i&&(n=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");localStorage.setItem("theme",n);document.body.setAttribute("data-bs-theme",n);r(n);i&&(localStorage.removeItem("theme",n),n="auto");let t=document.querySelector(`button[data-bs-theme-target='${n}']`);if(t){let n=document.querySelector("#themeIcon");n.classList=t.querySelector("i").classList;let i=document.querySelectorAll(`button.dropdown-item.active[data-bs-theme-target]`);i?.forEach(n=>{const t=bootstrap.Button.getOrCreateInstance(n);t.toggle()});t.classList.add("active")}}function i(){let n=window.matchMedia("(prefers-color-scheme: dark)").matches,t=document.querySelector("link[rel='icon']");t.href=`favicon-${n?"light":"dark"}.png`}export function registerThemeToggle(){if(n=JSON.parse(document.body.getAttribute("data-bs-theme-disabled"))??!1,window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{if(!n){let n=localStorage.getItem("theme");t(n)}i()}),!n){document.querySelectorAll("[data-bs-theme-target]").forEach(n=>{n.addEventListener("click",()=>{t(n.dataset.bsThemeTarget)})});let n=localStorage.getItem("theme");n??=document.body.getAttribute("data-bs-theme");t(n)}i()}export function setUserPreferredTheme(){if(n=JSON.parse(document.body.getAttribute("data-bs-theme-disabled"))??!1,!n){let n=localStorage.getItem("theme");t(n)}}let n=!1;

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.