mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-23 08:09:08 +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')};
|