From 9d8752ab40d0542bdb1c5c9083e57ab79385107a Mon Sep 17 00:00:00 2001 From: Maik Date: Sat, 13 Jun 2026 22:56:24 +0200 Subject: [PATCH] bug fixes --- static/index.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/static/index.html b/static/index.html index 3eaa83f..1418b62 100644 --- a/static/index.html +++ b/static/index.html @@ -163,19 +163,16 @@ async function startRound(){ btnNext.disabled=true; enableActions(true); resetButtonColors(); + btnSplit.disabled=!d.can_split; if(d.has_blackjack){ feedback.textContent='Blackjack! You win or get a push!'; feedback.style.color='green'; enableActions(false); btnNext.disabled=false; + }else if(d.can_split){ + feedback.textContent='You have a pair! Consider splitting.'; + feedback.style.color='white'; } - if(d.can_split){ - btnSplit.disabled=false; - if(!d.has_blackjack){ - feedback.textContent='You have a pair! Consider splitting.'; - feedback.style.color='white'; - } - }else{btnSplit.disabled=true} }catch(e){feedback.textContent='Error connecting to server';feedback.style.color='red'} }