Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
MajesticWafer authored Nov 12, 2024
1 parent b6315e9 commit 4a1e9b0
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions slots/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,19 +181,15 @@ <h1>🎰 Slot Machine 🎰</h1>
updateHighScore();
slotMachine.style.boxShadow = "0 0 20px gold";
moneyRain();
setTimeout(() => {
slotMachine.style.boxShadow = "";
spinButton.disabled = false;
}, 500);
setTimeout(() => slotMachine.style.boxShadow = "", 500);
} else {
result.textContent = "Try Again!";
slotMachine.style.boxShadow = "0 0 20px red";
setTimeout(() => {
slotMachine.style.boxShadow = "";
spinButton.disabled = false;
}, 500);
setTimeout(() => slotMachine.style.boxShadow = "", 500);
}

setTimeout(() => spinButton.disabled = false, 800);

scoreDisplay.textContent = `Score: ${score} | High Score: ${highScore}`;
}

Expand Down

0 comments on commit 4a1e9b0

Please sign in to comment.