commit 3a6271b90701f9f202dbb739e0e0d9edb03fb097
parent 309e6fe11c1b710d4b90af19233d6cb951b04b12
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 7 Dec 2023 23:39:07 -0500
cleanup
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1220,7 +1220,7 @@ func drawYourCardEvent(evt YourCardEvent) string {
}
func drawGameStartedEvent(evt GameStartedEvent) string {
- return `<style>#deckHash:before { content: "` + evt.DeckHash + `"; }</style>`
+ return ``
}
func drawGameIsDoneHtml(g *PokerGame, evt GameIsDoneEvent) (html string) {
@@ -1253,7 +1253,6 @@ func drawResetCardsEvent() (html string) {
html += `
#yourCard1:before { content: ""; }
#yourCard2:before { content: ""; }
- #deckHash:before { content: ""; }
#winner:before { content: ""; }
#mainPot:before { content: "Pot: 0"; }
</style>`
@@ -1489,6 +1488,7 @@ body {
position: absolute; top: 20px; left: 20px; width: 750px; height: 400px; border-radius: 300px;
background: radial-gradient(#449144, #008a00);
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
+ border: 5px solid #2c692c;
}
.timer {
@@ -1631,13 +1631,11 @@ func PokerHandler(c echo.Context) error {
send(buildMainPotHtml(g))
send(buildWinnerHtml())
send(buildCountdownsHtml())
- send(`<div id="deckHash"></div>`)
if g.Ongoing != nil {
g.Ongoing.WaitTurnEventMtx.RLock()
send(drawCountDownStyle(g.Ongoing.WaitTurnEvent))
g.Ongoing.WaitTurnEventMtx.RUnlock()
- send(`<style>#deckHash:before { content: "` + g.Ongoing.GetDeckHash() + `"; }</style>`)
g.Ongoing.EventsMtx.RLock()
for _, evt := range g.Ongoing.Events {