dkforest

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

commit df9d08e6be87ce2ee2c8fb4f1f48058a80166db0
parent 7dd265abd0531b8f44b01d8e06b2b91631e4891c
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Tue, 19 Dec 2023 11:59:47 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1899,10 +1899,10 @@ func drawGameIsDoneHtml(g *PokerGame, evt GameIsDoneEvent) (html string) { } func drawPlayerFoldEvent(evt PlayerFoldEvent) (html string) { - idxStr := itoa(evt.Card1Idx) + idx1Str := itoa(evt.Card1Idx) + idx2Str := itoa(evt.Card2Idx) transition := fmt.Sprintf(`transition: 1s ease-in-out; transform: translateX(%spx) translateY(%spx) rotateY(%s);`, itoa(BurnStackX), itoa(BurnStackY), BackfacingDeg) - html = `<style>#card` + idxStr + ` { ` + transition + ` } - #card` + idxStr + ` { ` + transition + ` }</style>` + html = fmt.Sprintf(`<style>#card%s { %s } #card%s { %s }</style>`, idx1Str, transition, idx2Str, transition) return }