commit 41767f3ad4271933923f3010fae8b250a7b183ef
parent 0aa7f065896ae04fa85bbc11619047e1c8473784
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 9 Dec 2023 03:45:18 -0500
UI
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1409,18 +1409,25 @@ func drawSeatsHtml(authUser *database.User, g *PokerGame) string {
func drawCountDownStyle(evt PokerWaitTurnEvent) string {
html := "<style>"
html += `#countdown1, #countdown2, #countdown3, #countdown4, #countdown5, #countdown6 { display: none; }`
+ html += `#seat1, #seat2, #seat3, #seat4, #seat5, #seat6 { background-color: rgba(45, 45, 45, 0.4); }`
if evt.Idx == -1 {
} else if evt.Idx == 0 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown1 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
} else if evt.Idx == 1 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown2 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
} else if evt.Idx == 2 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown3 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
} else if evt.Idx == 3 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown4 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
} else if evt.Idx == 4 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown5 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
} else if evt.Idx == 5 {
+ html += `#seat` + itoa(evt.Idx+1) + ` { background-color: rgba(200, 45, 45, 0.7); }`
html += `#countdown6 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }`
}
html += "</style>"