-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (70 loc) · 2.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Chess Notation Trainer</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/chessboard-js/1.0.0/chessboard-1.0.0.min.css" integrity="sha512-TU/clvRaSqKB43MX6dvJPEWV8tEGDTbmT4mdxTs6DSYsBY9zKmiw4Qeykp0nS10ndH14HRNG2VWN+IjiMfA17Q==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="./css/app.css" />
</head>
<body>
<header>
<h1>Chess Notation Trainer</h1>
</header>
<main>
<div id="content">
<div id="board-container">
<b id="blackname"></b>
<div id="board"></div>
<b id="whitename">White: </b>
</div>
<div id="moves">
<table id="moves-table">
<thead>
<tr>
<th>No.</th>
<th>White</th>
<th>Black</th>
</tr>
</thead>
<tbody id="moves-list">
<!-- Las jugadas correctas se mostrarán aquí -->
</tbody>
</table>
</div>
</div>
<div id="move-input">
<input
type="text"
id="move-input-button"
placeholder="Enter your move"
/>
<button id="submit-move" class="button">Send</button>
</div>
</main>
<dialog id="correct">
<p>Correct!</p>
<form method="dialog">
<button id="nextmove" class="button">Next Move</button>
</form>
</dialog>
<dialog id="incorrect">
<p>Incorrect!</p>
<form method="dialog">
<button class="button">Try again</button>
</form>
</dialog>
<dialog id="end">
<p>Game Finished</p>
<form method="dialog">
<button class="button">Train again</button>
</form>
</dialog>
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chessboard-js/1.0.0/chessboard-1.0.0.min.js" integrity="sha512-WfASs5HtTgTL/eZsLaOftSN9wMQl7WZGlU5UiKx/yxTViMfGh9whWRwKAC27qH8VtZJqSMqDdbq2uUb1tY3jvQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="module" src="./js/app.js"></script>
</body>
</html>