commit f1ba978a755f85839b3d1fe81ac311a2241a7451
parent 08f1b0d91bac9612df7ca8dc3a03acd12d76f636
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 11 Jun 2023 22:57:33 -0700
fix mate bug
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pkg/web/handlers/interceptors/chess.go b/pkg/web/handlers/interceptors/chess.go
@@ -195,7 +195,7 @@ func (g *ChessGame) renderBoardHTML1(position *chess.Position, isFlipped bool, i
{{ $p := PieceFromSq $sq }}
<td class="square square_{{ $id }}" style="background-color: {{ if IsLastMove $sq }}{{ $.LastMoveColor | css }}{{ else }}transparent{{ end }};">
<div id="{{ $pidStr }}" class="img" style="
- left: calc({{ $col }}*12.5%%); top: calc({{ $row }}*12.5%%);
+ left: calc({{ $col }}*12.5%); top: calc({{ $row }}*12.5%);
background-image: url(/public/img/chess/{{ GetPieceFileName $p }}.png);
background-color: {{ if PieceInCheck $p }}{{ .CheckColor | css }}{{ else }}transparent{{ end }};"></div>
</td>