feat(ui): abort-game button next to new-game

Shows only while a game is in progress (hidden otherwise), red-tinted
to distinguish from new-game. Hits POST /api/abort-game after a small
confirm prompt. Game-over event hides it again.
This commit is contained in:
ai-chess
2026-05-15 00:46:53 +03:00
parent 37bac9b0f6
commit e7c04a3d76
3 changed files with 21 additions and 9 deletions
+1
View File
@@ -23,6 +23,7 @@
<span id="sf-pv"></span>
<button id="live-btn" hidden>live</button>
<a id="games-link" href="/games">games & stats</a>
<button id="abort-game" hidden>abort game</button>
<button id="new-game">new game</button>
<button id="settings-btn" title="settings">⚙</button>
</div>