Spaces:
Sleeping
Sleeping
Commit
·
da43e69
1
Parent(s):
580136b
Update templates/index.html
Browse files- templates/index.html +17 -6
templates/index.html
CHANGED
|
@@ -4,7 +4,10 @@
|
|
| 4 |
<link rel="stylesheet" href="/static/chessboard-1.0.0.min.css">
|
| 5 |
<style>
|
| 6 |
body { font-family: Arial; max-width: 1200px; margin: 50px auto; padding: 20px; }
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
| 8 |
button { padding: 10px 20px; margin: 5px; cursor: pointer; }
|
| 9 |
#fen { background: #f0f0f0; padding: 10px; margin: 10px 0; font-family: monospace; }
|
| 10 |
#results { margin-top: 30px; }
|
|
@@ -19,11 +22,19 @@
|
|
| 19 |
</head>
|
| 20 |
<body>
|
| 21 |
<h1>Chess Position Search</h1>
|
| 22 |
-
<div
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
<div id="results"></div>
|
| 28 |
|
| 29 |
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
|
|
| 4 |
<link rel="stylesheet" href="/static/chessboard-1.0.0.min.css">
|
| 5 |
<style>
|
| 6 |
body { font-family: Arial; max-width: 1200px; margin: 50px auto; padding: 20px; }
|
| 7 |
+
.container { display: flex; gap: 40px; margin: 20px 0; }
|
| 8 |
+
#board { width: 400px; }
|
| 9 |
+
.info-panel { flex: 1; }
|
| 10 |
+
.info-panel h3 { margin-top: 0; }
|
| 11 |
button { padding: 10px 20px; margin: 5px; cursor: pointer; }
|
| 12 |
#fen { background: #f0f0f0; padding: 10px; margin: 10px 0; font-family: monospace; }
|
| 13 |
#results { margin-top: 30px; }
|
|
|
|
| 22 |
</head>
|
| 23 |
<body>
|
| 24 |
<h1>Chess Position Search</h1>
|
| 25 |
+
<div class="container">
|
| 26 |
+
<div>
|
| 27 |
+
<div id="board"></div>
|
| 28 |
+
<button onclick="board.start()">Reset</button>
|
| 29 |
+
<button onclick="board.clear()">Clear</button>
|
| 30 |
+
<button onclick="search()">Search</button>
|
| 31 |
+
</div>
|
| 32 |
+
<div class="info-panel">
|
| 33 |
+
<h3>Position Info</h3>
|
| 34 |
+
<div id="fen"></div>
|
| 35 |
+
<p id="position-info"></p>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
<div id="results"></div>
|
| 39 |
|
| 40 |
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|