38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>ai-chess — games</title>
|
|
<link rel="stylesheet" href="/static/vendor/chessground.base.css" />
|
|
<link rel="stylesheet" href="/static/vendor/chessground.brown.css" />
|
|
<link rel="stylesheet" href="/static/vendor/chessground.cburnett.css" />
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body>
|
|
<main style="padding: 16px;">
|
|
<h1>Games</h1>
|
|
<a href="/">← back to live</a>
|
|
<table id="games-table" style="width: 100%; margin-top: 16px;">
|
|
<thead><tr><th>id</th><th>white</th><th>black</th><th>result</th><th>termination</th><th>moves</th><th>pgn</th></tr></thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
<hr />
|
|
<div id="replay-wrap" style="display: none;">
|
|
<h3 id="replay-title"></h3>
|
|
<div style="display: grid; grid-template-columns: 360px 1fr; gap: 16px;">
|
|
<div id="replay-board" style="width: 360px; aspect-ratio: 1/1;"></div>
|
|
<div>
|
|
<div>
|
|
<button id="prev">←</button>
|
|
<button id="next">→</button>
|
|
<span id="ply">ply 0</span>
|
|
</div>
|
|
<ol id="replay-history" style="max-height: 60vh; overflow: auto;"></ol>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<script src="/static/games.js" type="module"></script>
|
|
</body>
|
|
</html>
|