Spaces:
Running
Running
Commit
·
e9eae31
1
Parent(s):
1a29994
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,23 +9,17 @@ def read_root():
|
|
| 9 |
<!DOCTYPE html>
|
| 10 |
<html>
|
| 11 |
<head>
|
| 12 |
-
<
|
| 13 |
-
<style>
|
| 14 |
-
body { font-family: Arial; max-width: 1200px; margin: 0 auto; padding: 20px; }
|
| 15 |
-
#board { width: 512px; height: 512px; }
|
| 16 |
-
</style>
|
| 17 |
</head>
|
| 18 |
<body>
|
| 19 |
<h1>Chess Position Search</h1>
|
| 20 |
-
<div id="board"></div>
|
| 21 |
-
|
| 22 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.3/chess.min.js"></script>
|
| 23 |
-
<script src="https://unpkg.com/@chessboardjs/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.js"></script>
|
| 24 |
-
<link rel="stylesheet" href="https://unpkg.com/@chessboardjs/chessboardjs@1.0.0/dist/chessboard-1.0.0.min.css">
|
| 25 |
|
|
|
|
|
|
|
| 26 |
<script>
|
| 27 |
var board = Chessboard('board', 'start');
|
| 28 |
</script>
|
| 29 |
</body>
|
| 30 |
</html>
|
| 31 |
-
"""
|
|
|
|
| 9 |
<!DOCTYPE html>
|
| 10 |
<html>
|
| 11 |
<head>
|
| 12 |
+
<link rel="stylesheet" href="/static/chessboard-1.0.0.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<h1>Chess Position Search</h1>
|
| 16 |
+
<div id="board" style="width: 400px"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
+
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
| 19 |
+
<script src="/static/chessboard-1.0.0.min.js"></script>
|
| 20 |
<script>
|
| 21 |
var board = Chessboard('board', 'start');
|
| 22 |
</script>
|
| 23 |
</body>
|
| 24 |
</html>
|
| 25 |
+
"""
|