dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit dfb4be39ad99d214bd404969bfd683b47ff3d952
parent 7042d73144fc72407fc3d2229aed0a3876814f5d
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat,  9 Dec 2023 00:26:45 -0500

UI

Diffstat:
Mpkg/web/handlers/poker/poker.go | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1354,17 +1354,17 @@ func drawCountDownStyle(evt PokerWaitTurnEvent) string { html += `#countdown1, #countdown2, #countdown3, #countdown4, #countdown5, #countdown6 { display: none; }` if evt.Idx == -1 { } else if evt.Idx == 0 { - html += `#countdown1 { top: 50px; left: 600px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown1 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } else if evt.Idx == 1 { - html += `#countdown2 { top: 150px; left: 574px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown2 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } else if evt.Idx == 2 { - html += `#countdown3 { top: 250px; left: 530px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown3 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } else if evt.Idx == 3 { - html += `#countdown4 { top: 300px; left: 380px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown4 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } else if evt.Idx == 4 { - html += `#countdown5 { top: 300px; left: 210px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown5 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } else if evt.Idx == 5 { - html += `#countdown6 { top: 300px; left: 40px; display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` + html += `#countdown6 { display: block; animation: time calc(var(--duration) * 1s) steps(1000, start) forwards; }` } html += "</style>" return html @@ -1573,12 +1573,12 @@ body { #foldBtn { width: 50px; height: 30px; } #callBtn { width: 50px; height: 30px; } #betBtn { width: 145px; height: 70px; } -#countdown1 { position: absolute; display: none; z-index: 100; } -#countdown2 { position: absolute; display: none; z-index: 100; } -#countdown3 { position: absolute; display: none; z-index: 100; } -#countdown4 { position: absolute; display: none; z-index: 100; } -#countdown5 { position: absolute; display: none; z-index: 100; } -#countdown6 { position: absolute; display: none; z-index: 100; } +#countdown1 { top: 74px; left: 617px; position: absolute; display: none; z-index: 100; } +#countdown2 { top: 194px; left: 630px; position: absolute; display: none; z-index: 100; } +#countdown3 { top: 309px; left: 589px; position: absolute; display: none; z-index: 100; } +#countdown4 { top: 330px; left: 440px; position: absolute; display: none; z-index: 100; } +#countdown5 { top: 332px; left: 250px; position: absolute; display: none; z-index: 100; } +#countdown6 { top: 291px; left: 78px; position: absolute; display: none; z-index: 100; } #mainPot { position: absolute; top: 240px; left: 250px; } #winner { position: absolute; top: 265px; left: 250px; } #yourCard1 { font-size: 22px; display: inline-block; margin-right: 15px; }