diff --git a/scripts/script.js b/scripts/script.js index c8b8c05..8e99b6b 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -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} ${currentWord}`; + gameModal.querySelector("p").innerHTML = `
Tip: Close the game by clicking the X in the upper right corner.`; gameModal.classList.add("show"); if(isVictory) { document.getElementById("refreshButton").style.display = "block"; // or "inline-block" as needed