Created svetle app

This commit is contained in:
2023-12-13 19:10:39 +01:00
parent ea34fa8eb4
commit 870769f95c
54 changed files with 3340 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// close on button
const close = qSA(".md-close")
close.forEach(one => {
one.addEventListener("click", (el) => {
qS(".md-active").classList.remove("md-active")
})
})
// close on backdrop
window.onclick = function(event) {
const active = qS(".md-active")
if (event.target == active) {
active.classList.remove("md-active")
}
}