diff --git a/apache/tpl/main.js b/apache/tpl/main.js index 3ff7ed1..6044eb4 100644 --- a/apache/tpl/main.js +++ b/apache/tpl/main.js @@ -36,9 +36,9 @@ } // Toggle content -for (let el of document.getElementsByClassName("js__toggle_content")) { +document.querySelectorAll(".js__toggle_content").forEach((el) => { if (el.dataset.pathname == location.pathname) el.style.display = "block"; -} +}); // Pretty table const table = document.querySelector("table");