Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +9 -5
templates/index.html
CHANGED
|
@@ -11,11 +11,15 @@
|
|
| 11 |
<div class="container">
|
| 12 |
<div>
|
| 13 |
<div id="board"></div>
|
| 14 |
-
<div style="margin-top: 10px;
|
| 15 |
-
<
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</div>
|
| 20 |
</div>
|
| 21 |
</div>
|
|
|
|
| 11 |
<div class="container">
|
| 12 |
<div>
|
| 13 |
<div id="board"></div>
|
| 14 |
+
<div style="margin-top: 10px; width: var(--board-width);">
|
| 15 |
+
<div style="display: flex; gap: 10px; align-items: center;">
|
| 16 |
+
<input type="text" id="fen" placeholder="Paste FEN here..." style="flex: 1; padding: 8px; font-family: monospace; min-width: 0;">
|
| 17 |
+
<button onclick="let f=document.getElementById('fen').value.trim(); if(f) { board.position(f.split(' ')[0]); updateInfo(); }">Load</button>
|
| 18 |
+
</div>
|
| 19 |
+
<div style="display: flex; gap: 10px; margin-top: 10px;">
|
| 20 |
+
<button onclick="board.clear(); document.getElementById('results').innerHTML = ''; updateInfo();">Clear</button>
|
| 21 |
+
<button onclick="search()">Search</button>
|
| 22 |
+
</div>
|
| 23 |
</div>
|
| 24 |
</div>
|
| 25 |
</div>
|