commit f36a6b8bf3dd69167c909515b0efbcfd301bcef8 parent 4442f8445fa4f1890e8cb89e943f0bcf08baf8e0 Author: n0tr1v <n0tr1v@protonmail.com> Date: Fri, 8 Dec 2023 20:05:31 -0500 display bet label on page load Diffstat:
| M | pkg/web/handlers/poker/poker.go | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1195,6 +1195,11 @@ func buildSeatsHtml(g *PokerGame) string { seats += `<style>` seats += `#seat` + itoa(i+1) + `:before { content: "` + p.Username + `"; }` seats += `#seat` + itoa(i+1) + `_cash:before { content: "` + itoa(p.getDisplayCash(g)) + `"; }` + if g.Ongoing != nil { + if op := g.Ongoing.GetPlayer(p.Username); op != nil && op.Bet > 0 { + seats += `#seat` + itoa(i+1) + `Pot:before { content: "` + itoa(op.Bet) + `"; }` + } + } seats += `</style>` } }