commit 76095ef63e70b7b1c2afe1cb385e773a61d16476
parent 1762eef263799d400fa92ec4899ee916a71d3b8a
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 15 Jun 2023 06:57:09 -0700
cleanup
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/chess.go b/pkg/web/handlers/chess.go
@@ -816,8 +816,8 @@ func arrow(s1, s2 chess.Square) (out string) {
cx2, cy2 := squareCoord(s2, false)
dist, isDiag, isLine := calcDisc(cx1, cy1, cx2, cy2)
a := math.Atan2(float64(cy1-cy2), float64(cx1-cx2)) + math.Pi/2 + math.Pi
- out += "#arrow { display: block !important; } "
out += fmt.Sprintf("#arrow { "+
+ "display: block !important; "+
"transform: rotate(%.9frad) !important; "+
"top: calc(%d*12.5%% + (12.5%%/2)) !important; "+
"left: calc(%d*12.5%% + (12.5%%/2) - 6.25%%) !important; "+