Skip to content

Commit

Permalink
Fix navbar #2
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Oct 11, 2024
1 parent 41a67b6 commit 312567c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ function toggleHamburgerMenu() {
el.classList.add('is-hamburger-active');
});
} else {
headerLink.forEach((el) => {
el.classList.remove('is-hamburger-active');
});
headerLink.forEach(el => el.style.display = "none");
headerLink.forEach(el => el.classList.remove('is-hamburger-active'));
setTimeout(function() {
headerLink.forEach(el => el.style.display = "flex");
}, 100);
}
}

Expand Down

0 comments on commit 312567c

Please sign in to comment.