diff --git a/server/public/index.html b/server/public/index.html index 4a4428e..5283ccb 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -40,13 +40,13 @@

v.0.0.1

-
+

Updates

Check the GitHub repository

Suggest new features and report bugs!

-
+

GET STARTED

Check the documentation

Read the documentation to find out how things work!

diff --git a/server/public/js/script.js b/server/public/js/script.js index 15b39b2..ff2d4e7 100644 --- a/server/public/js/script.js +++ b/server/public/js/script.js @@ -1,6 +1,5 @@ document.addEventListener('DOMContentLoaded', () => { const navItems = document.querySelectorAll('.nav-item'); - navItems.forEach(item => { let currentHref = window.location.href; @@ -14,14 +13,10 @@ document.addEventListener('DOMContentLoaded', () => { }); }); -const side_bar_btns = document.querySelectorAll("#sidebar-btn"); - -side_bar_btns.forEach((elem) => { - elem.addEventListener("click", () => { - for (let index = 0; index < side_bar_btns.length; index++) { - side_bar_btns[index].classList.remove("active"); - } - elem.classList.add("active"); +const idea_btns = document.querySelectorAll(".idea"); +idea_btns.forEach((btn) => { + btn.addEventListener("click", () => { + window.open(btn.getAttribute("href"), "_blank"); }); });