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