commit c26c18541c7230d0615fe9c878366d299612ca8d parent ab545e31909f909e103373e5d019b23088864404 Author: n0tr1v <n0tr1v@protonmail.com> Date: Tue, 5 Dec 2023 01:31:14 -0500 cleanup Diffstat:
| M | pkg/web/handlers/poker.go | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pkg/web/handlers/poker.go b/pkg/web/handlers/poker.go @@ -788,8 +788,9 @@ Loop: continue } else if evt, ok := payload.(PlayerFoldEvent); ok { - html := `<style>#card` + strconv.Itoa(evt.Card1Idx) + ` { transition: 1s ease-in-out; transform: translateX(400px) translateY(30px) rotateY(-180deg); } - #card` + strconv.Itoa(evt.Card2Idx) + ` { transition: 1s ease-in-out; transform: translateX(400px) translateY(30px) rotateY(-180deg); }</style>` + transition := `transition: 1s ease-in-out; transform: translateX(400px) translateY(30px) rotateY(-180deg);` + html := `<style>#card` + strconv.Itoa(evt.Card1Idx) + ` { ` + transition + ` } + #card` + strconv.Itoa(evt.Card2Idx) + ` { ` + transition + ` }</style>` send(html) c.Response().Flush() continue