mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-29 22:20:41 +03:00
3 lines
174 B
JavaScript
3 lines
174 B
JavaScript
|
for (const modal of document.querySelectorAll("[modal]"))
|
||
|
modal.onclick = () => {
|
||
|
document.querySelector(modal.getAttribute("modal")).classList.toggle('active')};
|