Skip to content

Commit

Permalink
How to close the game
Browse files Browse the repository at this point in the history
  • Loading branch information
Elointz authored Apr 22, 2024
1 parent 489bc00 commit 5e3490b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const gameOver = (isVictory) => {
gameModal.querySelector("img").src = `images/${isVictory ? 'victory' : 'lost'}.gif`;
gameModal.querySelector("h4").innerText = isVictory ? 'Congrats!' : 'Game Over!';
gameModal.querySelector("p").innerHTML = `${modalText} <b>${currentWord}</b>`;
gameModal.querySelector("p").innerHTML = `<br><b>Tip: Close the game by clicking the X in the upper right corner.</b>`;
gameModal.classList.add("show");
if(isVictory) {
document.getElementById("refreshButton").style.display = "block"; // or "inline-block" as needed
Expand Down

0 comments on commit 5e3490b

Please sign in to comment.