Celebrate then define
This commit is contained in:
@@ -239,13 +239,15 @@ function shakeTiles(tiles) {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// IT'S RIGHT HERE YOU BLIND MOFO"
|
||||||
function checkWinLose(guess, tiles) {
|
function checkWinLose(guess, tiles) {
|
||||||
if (guess === targetWord) {
|
if (guess === targetWord) {
|
||||||
showAlert("Congratulations, You win!", 5000)
|
showAlert("Congratulations, You win!", 5000)
|
||||||
danceTiles(tiles)
|
danceTiles(tiles)
|
||||||
celebrateWithConfetti()
|
celebrateWithConfetti()
|
||||||
showWordDefinition(targetWord, true)
|
setTimeout(() => {
|
||||||
|
showWordDefinition(targetWord, true)
|
||||||
|
},3000)
|
||||||
stopInteraction()
|
stopInteraction()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user