Dark toggle
This commit is contained in:
parent
62a64161c5
commit
e87bc85a9b
14 changed files with 1127 additions and 158 deletions
|
|
@ -26,11 +26,11 @@ window.addEventListener("DOMContentLoaded", (evt) => {
|
|||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||
let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
||||
modal.classList.remove("visible");
|
||||
modal.removeAttribute("active");
|
||||
});
|
||||
// document.querySelectorAll("[for-modal]").forEach((modalTrigerEl) => {
|
||||
// let modal = document.getElementById(modalTrigerEl.getAttribute("for-modal"));
|
||||
// modal.classList.remove("visible");
|
||||
// modal.removeAttribute("active");
|
||||
// });
|
||||
|
||||
document.body.addEventListener('keydown', (evt) => {
|
||||
if (evt.key == "Escape") {
|
||||
|
|
|
|||
Loading…
Reference in a new issue