commit 86ca8493d4e1d719a6045dd74773d8c896b0ddc8
parent 9607c28fbddf0800539c8d2505fd175403998a3b
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 11 Jun 2023 15:44:34 -0700
doc
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go
@@ -5239,6 +5239,7 @@ Loop:
animate(chess.A8, chess.D8, "img_56")
}
+ // Render last move
_, _ = c.Response().Write([]byte(`<style>.square { background-color: transparent !important; }</style>`))
_, _ = c.Response().Write([]byte(fmt.Sprintf(`<style>.square_%d, .square_%d { background-color: rgba(0, 255, 0, 0.2) !important; }</style>`, int(payload.Move.S1()), int(payload.Move.S2()))))