Dark toggle

This commit is contained in:
oitsjustjose 2020-03-03 17:12:22 -05:00
commit e87bc85a9b
14 changed files with 1127 additions and 158 deletions

View file

@ -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") {