dkforest

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

commit 40fb3c7680fb3670230906d4343209675a9e70c6
parent fb6294db61acc4db3ac45276a65ceae1a65a34a0
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Mon,  4 Dec 2023 21:44:14 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go @@ -237,6 +237,9 @@ func (g *PokerGame) Deal(roomID string) { // Wait for players to bet/call/check/fold... waitPlayersActionFn() + + // Wait a minimum of X seconds before allowing a new game + time.Sleep(10 * time.Second) }() } @@ -316,7 +319,7 @@ func PokerBetHandler(c echo.Context) error { default: } } - return c.HTML(http.StatusOK, `<form method="post"><input type="number" name="bet" value="`+strconv.Itoa(bet)+`" /><button>Bet</button></form>`) + return c.HTML(http.StatusOK, `<form method="post"><input type="number" name="bet" value="`+strconv.Itoa(bet)+`" style="width: 90px;" /><button>Bet</button></form>`) } func PokerCallHandler(c echo.Context) error { @@ -555,7 +558,7 @@ body { #checkBtn { width: 60px; height: 30px; } #foldBtn { width: 50px; height: 30px; } #callBtn { width: 50px; height: 30px; } -#betBtn { width: 200px; height: 30px; } +#betBtn { width: 145px; height: 30px; } </style>`) drawSeats := func() {