From 055a0f535b92e8a434e3bbeaf5ea2aacbd7daf60 Mon Sep 17 00:00:00 2001 From: Cursed Pakel Date: Wed, 11 Dec 2024 13:49:25 +0700 Subject: [PATCH] DONE --- assets/js/scripts.js | 6 ++++++ index.html | 1 + 2 files changed, 7 insertions(+) diff --git a/assets/js/scripts.js b/assets/js/scripts.js index d80ac05..720ac76 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -237,8 +237,14 @@ function checkResult() { } }); + // Show the win amount if there's a win + const winElement = document.getElementById("win"); if (totalWin > 0) { + winElement.textContent = totalWin; + winElement.style.display = "inline"; // Show the win element updateFirebaseBalance(totalWin); // Add winnings to balance + } else { + winElement.style.display = "none"; // Hide the win element if no win } } diff --git a/index.html b/index.html index 305d0b9..b4a642a 100644 --- a/index.html +++ b/index.html @@ -44,6 +44,7 @@
Bet: 50 Balance: + Win: