Small fixes

This commit is contained in:
Nikola Petrov
2023-06-25 14:50:56 +02:00
parent f945d1524e
commit 6f0632db6b
4 changed files with 5 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ const pages = document.querySelectorAll("[data-page]");
for (let i = 0; i < navigationLinks.length; i++) {
navigationLinks[i].addEventListener("click", function () {
for (let i = 0; i < pages.length; i++) {
for (let i = 0; i < navigationLinks.length; i++) {
if (this.innerHTML.toLowerCase() === pages[i].dataset.page) {
pages[i].classList.add("active");
navigationLinks[i].classList.add("active");

View File

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB