PageSourceSearch

https://landmarkforumnews.com/wp-content/themes/magazine-elite-pro…/custom/js/dark-mode.min.js?ver=1790984187

js landmarkforumnews.com collected 2026-10-02 23:37:00 UTC 1,287 bytes, 1 lines download raw bytes

1let storageKey="theme-preference",getColorPreference=function(){return localStorage.getItem(storageKey)?localStorage.getItem(storageKey):document.firstElementChild.getAttribute("data-theme")?document.firstElementChild.getAttribute("data-theme"):window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},theme={value:getColorPreference()},setPreference=function(){localStorage.setItem(storageKey,theme.value),reflectPreference()},reflectPreference=function(){document.firstElementChild.setAttribute("data-theme",theme.value);let e=document.querySelectorAll(".magazine-elite-theme-mode-toggle");e&&e.forEach(e=>{e.setAttribute("aria-label",theme.value)})};reflectPreference(),window.addEventListener("load",function(){reflectPreference();let e=document.querySelectorAll(".magazine-elite-theme-mode-toggle");e&&e.forEach(e=>{e.addEventListener("click",function(){theme.value="light"===theme.value?"dark":"light",setPreference()})});let t=document.querySelectorAll(".magazine-elite-dark-mode-widget-label");t&&t.forEach(e=>{e.addEventListener("click",function(){document.querySelector(".magazine-elite-theme-mode-toggle").click()})})}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:e})=>{theme.value=e?"dark":"light",setPreference()});

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.