forked from rDrama/rDrama
1
0
Fork 0

Re-enable wager after finishing up

master
Outrun Colors 2022-09-04 17:04:46 -05:00
parent 584a7fb9ed
commit 1a8c811faa
No known key found for this signature in database
GPG Key ID: 0426976DCEFE6073
1 changed files with 240 additions and 241 deletions

View File

@ -1,11 +1,11 @@
// Shared
function updatePlayerCoins(updated) {
if (updated.coins) {
document.getElementById('user-coins-amount').innerText = updated.coins;
document.getElementById("user-coins-amount").innerText = updated.coins;
}
if (updated.procoins) {
document.getElementById('user-bux-amount').innerText = updated.procoins;
document.getElementById("user-bux-amount").innerText = updated.procoins;
}
}
@ -212,9 +212,7 @@ function buildBlackjackAction(id, method, title, fullWidth = false) {
return `
<button
type="button"
class="btn btn-${
fullWidth ? "primary" : "secondary"
} lottery-page--action"
class="btn btn-${fullWidth ? "primary" : "secondary"} lottery-page--action"
id="${id}"
onclick="${method}()"
style="${fullWidth ? "width: 100%;" : ""}"
@ -261,6 +259,7 @@ function updateBlackjackActions(state) {
} else {
// Game is over, deal a new game.
document.getElementById("casinoBlackjackWager").style.display = "flex";
document.getElementById("casinoBlackjackBet").disabled = false;
const deal = buildBlackjackAction(
"casinoBlackjackDeal",