mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-01 03:25:04 +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')}; |