From c448a63b7c39861ed7ebe1ff4e2740274f74a01b Mon Sep 17 00:00:00 2001 From: Sami Date: Fri, 1 Aug 2025 16:39:38 -0400 Subject: [PATCH] Celebrate then define --- script.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index a516a4e..759fb57 100644 --- a/script.js +++ b/script.js @@ -239,13 +239,15 @@ function shakeTiles(tiles) { ) }) } - +// IT'S RIGHT HERE YOU BLIND MOFO" function checkWinLose(guess, tiles) { if (guess === targetWord) { showAlert("Congratulations, You win!", 5000) danceTiles(tiles) celebrateWithConfetti() - showWordDefinition(targetWord, true) + setTimeout(() => { + showWordDefinition(targetWord, true) + },3000) stopInteraction() return } @@ -442,4 +444,4 @@ themeButton.addEventListener('click', () => { }) // Initialize the game when the page loads -document.addEventListener('DOMContentLoaded', initializeGame) \ No newline at end of file +document.addEventListener('DOMContentLoaded', initializeGame)