Spaces:
Running
Running
Update index.html
Browse files- index.html +4 -1
index.html
CHANGED
|
@@ -2385,6 +2385,9 @@
|
|
| 2385 |
AppState.isCorrect = true;
|
| 2386 |
AppState.isFirstTry = AppState.attempts === 1 && AppState.hintsUsed === 0;
|
| 2387 |
|
|
|
|
|
|
|
|
|
|
| 2388 |
// Play sound effect
|
| 2389 |
if (AppState.isFirstTry) {
|
| 2390 |
playSound('perfect');
|
|
@@ -2446,7 +2449,7 @@
|
|
| 2446 |
// Enable next word
|
| 2447 |
document.getElementById('nextWordBtn').disabled = false;
|
| 2448 |
|
| 2449 |
-
//
|
| 2450 |
document.getElementById('wordDisplay').classList.add('correct');
|
| 2451 |
|
| 2452 |
// Update interface
|
|
|
|
| 2385 |
AppState.isCorrect = true;
|
| 2386 |
AppState.isFirstTry = AppState.attempts === 1 && AppState.hintsUsed === 0;
|
| 2387 |
|
| 2388 |
+
// REVEAL THE WORD FOR REINFORCEMENT
|
| 2389 |
+
document.getElementById('currentWord').textContent = AppState.currentWord.split('').join(' ');
|
| 2390 |
+
|
| 2391 |
// Play sound effect
|
| 2392 |
if (AppState.isFirstTry) {
|
| 2393 |
playSound('perfect');
|
|
|
|
| 2449 |
// Enable next word
|
| 2450 |
document.getElementById('nextWordBtn').disabled = false;
|
| 2451 |
|
| 2452 |
+
// SHOW THE WORD - keep it revealed
|
| 2453 |
document.getElementById('wordDisplay').classList.add('correct');
|
| 2454 |
|
| 2455 |
// Update interface
|