dkforest

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

commit 526dfe7aa2d1ee68cc5249e193a0edc4f7a7d6cb
parent ac8644d1c33cb65dfb541355805be6330301fce2
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue,  5 Dec 2023 23:46:58 -0500

ui

Diffstat:
Mpkg/web/handlers/poker/poker.go | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1051,7 +1051,12 @@ body { #seat4_cash { position: absolute; top: 400px; left: 485px; } #seat5_cash { position: absolute; top: 400px; left: 300px; } #seat6_cash { position: absolute; top: 400px; left: 95px; } -#seat1Pot { position: absolute; top: 80px; left: 500px; } +#seat1Pot { position: absolute; top: 80px; left: 530px; } +#seat2Pot { position: absolute; top: 170px; left: 530px; } +#seat3Pot { position: absolute; top: 230px; left: 530px; } +#seat4Pot { position: absolute; top: 280px; left: 485px; } +#seat5Pot { position: absolute; top: 280px; left: 300px; } +#seat6Pot { position: absolute; top: 280px; left: 95px; } .takeSeat1 { position: absolute; top: 80px; left: 700px; } .takeSeat2 { position: absolute; top: 200px; left: 670px; } .takeSeat3 { position: absolute; top: 300px; left: 610px; } @@ -1075,6 +1080,7 @@ body { #yourCard1 { font-size: 22px; display: inline-block; margin-right: 15px; } #yourCard2 { font-size: 22px; display: inline-block; } #errorMsg { position: absolute; top: 530px; left: 150px; color: darkred; } +#eventLogs { position: absolute; bottom: 5px; right: 5px; width: 200px; height: 200px; border: 1px solid black; background-color: #ccc; } .timer { @@ -1157,8 +1163,14 @@ func PokerHandler(c echo.Context) error { actions := `<iframe src="/poker/` + roomID + `/deal" id="dealBtn"></iframe>` actions += `<iframe src="/poker/` + roomID + `/unsit" id="unSitBtn"></iframe>` send(actions) + send(`<div id="eventLogs"></div>`) send(`<div id="errorMsg"></div>`) send(`<div id="seat1Pot"></div>`) // TODO + send(`<div id="seat2Pot"></div>`) // TODO + send(`<div id="seat3Pot"></div>`) // TODO + send(`<div id="seat4Pot"></div>`) // TODO + send(`<div id="seat5Pot"></div>`) // TODO + send(`<div id="seat6Pot"></div>`) // TODO send(buildMainPotHtml(g)) send(buildWinnerHtml()) send(buildCountdownsHtml())