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