added fixed header link/button style. more lighthouse optimisations
This commit is contained in:
parent
2dbed741a9
commit
a37ca06241
5 changed files with 34 additions and 28 deletions
|
@ -39,6 +39,7 @@ if (accessibility) {
|
|||
document.getElementById("toggle-crt").addEventListener("click", () => {
|
||||
toggle_accessibility_setting("disable_crt");
|
||||
document.querySelector('div#overlay').toggleAttribute("hidden");
|
||||
document.getElementById('toggle-crt').className = accessibility.disable_crt ? "disabled" : "";
|
||||
if (accessibility.disable_crt) document.getElementById('toggle-crt').classList.add("disabled");
|
||||
else document.getElementById('toggle-crt').classList.remove("disabled");
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue