From 3577ff0883d080435f43b9f12fa7d486eff87cc5 Mon Sep 17 00:00:00 2001 From: Anas Bashir Date: Fri, 8 Nov 2024 00:24:16 +0300 Subject: [PATCH] Fix Show rules btn selector --- script.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script.js b/script.js index 2be2da8..b6fb982 100644 --- a/script.js +++ b/script.js @@ -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", () => {