dkforest

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

commit 2cc7bdf43fa68f8781e361c0a4cc5fb0dd002227
parent 74ed78ffaf9d20d5d874c183a4a4a1c6b3939224
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 28 Dec 2023 15:31:53 -0500

cleanup

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

diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1988,7 +1988,9 @@ func drawResetCardsEvent() (html string) { html += `<style>` for i := 1; i <= 52; i++ { idxStr := itoa(i) - html += `#card` + idxStr + ` { z-index: ` + itoa(53-i) + `; transition: ` + animationTime.String() + ` ease-in-out; transform: translateX(` + itoa(DealerStackX) + `px) translateY(` + itoa(DealerStackY) + `px) rotateY(` + BackfacingDeg + `); } + transition := fmt.Sprintf(` transition: %s ease-in-out; transform: translateX(%spx) translateY(%spx) rotateY(%s);`, + animationTime.String(), itoa(DealerStackX), itoa(DealerStackY), BackfacingDeg) + html += `#card` + idxStr + ` { z-index: ` + itoa(53-i) + `; ` + transition + ` } #card` + idxStr + ` .card .inner:before { content: ""; }` } html += ` @@ -2001,7 +2003,8 @@ func drawResetCardsEvent() (html string) { func drawPlayerFoldEvent(evt PlayerFoldEvent) (html string) { idx1Str := itoa(evt.Card1Idx) idx2Str := itoa(evt.Card2Idx) - transition := fmt.Sprintf(`transition: `+animationTime.String()+` ease-in-out; transform: translateX(%spx) translateY(%spx) rotateY(%s);`, itoa(BurnStackX), itoa(BurnStackY), BackfacingDeg) + transition := fmt.Sprintf(`transition: %s ease-in-out; transform: translateX(%spx) translateY(%spx) rotateY(%s);`, + animationTime.String(), itoa(BurnStackX), itoa(BurnStackY), BackfacingDeg) html = fmt.Sprintf(`<style>#card%s, #card%s { %s }</style>`, idx1Str, idx2Str, transition) return }