Skip to content

Commit

Permalink
Fix Show rules btn selector
Browse files Browse the repository at this point in the history
  • Loading branch information
an4s911 committed Nov 7, 2024
1 parent 0e3bf8b commit 3577ff0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ const winningScore = 100;
const overlay = document.getElementById("overlay");
const startBtn = document.getElementById("start-btn");

const showRulesBtn = document.getElementById("show-rules");
const showRulesBtn = document.getElementById("show-rules-btn");

startBtn.addEventListener("click", () => {
document.querySelector("body").style.overflow = "auto";
overlay.style.display = "none";

});

showRulesBtn.addEventListener("click", () => {
Expand Down

0 comments on commit 3577ff0

Please sign in to comment.