Skip to content

Commit

Permalink
refactor: update nav link logic on game.html
Browse files Browse the repository at this point in the history
  • Loading branch information
dvfrancis committed Oct 30, 2024
1 parent 772aaef commit ecd18d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/scripts/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ function noPoints() {
/**
* Leave the game
*/
const linkIds = ["home-page-link", "faq-page-link"];
const linkIds = ["home-page-link", "game-page-link", "faq-page-link"];
linkIds.forEach(id => {
const linkElement = document.getElementById(id);
if (linkElement) {
Expand Down
2 changes: 1 addition & 1 deletion game.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
aria-label="Link to home page">HOME</a>
</li>
<li class="nav-item me-2">
<a class="nav-link active game-link" aria-current="page" href="game.html"
<a class="nav-link active game-link" aria-current="page" id="game-page-link" href="game.html"
aria-label="Link to game page">GAME</a>
</li>
<li class="nav-item">
Expand Down

0 comments on commit ecd18d9

Please sign in to comment.