PageSourceSearch

https://papayawhip-hornet-103735.hostingersite.com/wp-content/themes/mksingh/assets/js/dark-mode-switch.min.js

js papayawhip-hornet-103735.hostingersite.com collected 2026-10-03 04:47:32 UTC 685 bytes, 5 lines download raw bytes

1const darkSwitch = document.getElementById("darkSwitch");
2function initTheme() {
3    const e = null !== localStorage.getItem("darkSwitch") && "dark" === localStorage.getItem("darkSwitch");
4    darkSwitch.checked = e, e ? document.body.setAttribute("data-theme", "dark") : document.body.removeAttribute("data-theme")
5} function resetTheme() { darkSwitch.checked ? (document.body.setAttribute("data-theme", "dark"), localStorage.setItem("darkSwitch", "dark")) : (document.body.removeAttribute("data-theme"), localStorage.removeItem("darkSwitch")) } window.addEventListener("load", () => { darkSwitch && (initTheme(), darkSwitch.addEventListener("change", () => { resetTheme() })) });

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.