(tiles)
| 15443 | } |
| 15444 | |
| 15445 | function shakeTiles(tiles) { |
| 15446 | tiles.forEach(tile => { |
| 15447 | tile.classList.add("shake") |
| 15448 | tile.addEventListener( |
| 15449 | "animationend", |
| 15450 | () => { |
| 15451 | tile.classList.remove("shake") |
| 15452 | }, |
| 15453 | { once: true } |
| 15454 | ) |
| 15455 | }) |
| 15456 | } |
| 15457 | |
| 15458 | function checkWinLose(guess, tiles) { |
| 15459 | if (guess === targetWord) { |