christopher commited on
Commit
d32c74d
·
1 Parent(s): d46499b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -10,8 +10,6 @@ def read_root():
10
  <html>
11
  <head>
12
  <title>Chess Position Search</title>
13
- <link rel="stylesheet"
14
- href="https://unpkg.com/@lichess-org/chessground/dist/chessground.css">
15
  <style>
16
  body { font-family: Arial; max-width: 1200px; margin: 0 auto; padding: 20px; }
17
  #board { width: 512px; height: 512px; }
@@ -21,14 +19,12 @@ def read_root():
21
  <h1>Chess Position Search</h1>
22
  <div id="board"></div>
23
 
24
- <script type="module">
25
- import { Chessground } from 'https://unpkg.com/@lichess-org/chessground/dist/chessground.js';
26
-
27
- const board = Chessground(document.getElementById('board'), {
28
- movable: { free: true, color: 'both' },
29
- draggable: { enabled: true },
30
- fen: 'rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR'
31
- });
32
  </script>
33
  </body>
34
  </html>
 
10
  <html>
11
  <head>
12
  <title>Chess Position Search</title>
 
 
13
  <style>
14
  body { font-family: Arial; max-width: 1200px; margin: 0 auto; padding: 20px; }
15
  #board { width: 512px; height: 512px; }
 
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>