let hash = window.location.hash; if(hash) { document.querySelectorAll("[name=toggles]").forEach((tog) => {tog.removeAttribute("checked")}); document.querySelector(`${hash}toggle`).setAttribute("checked", ""); }