-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
108 lines (102 loc) · 3.53 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en" class="h-100">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="" />
<title>Betafish.js | Chess AI</title>
<!-- Bootstrap core CSS -->
<link href="assets/dist/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="../assets/styles/cm-chessboard.css" />
<!-- Custom styles for this template -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="chessboard-1.0.0.min.css" type="text/css" />
</head>
<body class="d-flex flex-column h-100">
<!-- Begin page content -->
<main class="flex-shrink-0">
<div class="container">
<h1 class="mt-2">Betafish.js</h1>
<p class="lead">Status: <span id="uiState"></span></p>
<div class="input-group mb-2">
<input type="text" class="form-control fw-light" id="fen" />
<button class="btn btn-outline-secondary" id="copyFEN" type="button">
Copy FEN
</button>
<button class="btn btn-outline-secondary" id="setFEN" type="button">
Set FEN
</button>
</div>
<div id="board" style="width: 100%"></div>
<div>
<div class="my-2 d-flex">
<button
type="button"
class="btn btn-outline-danger me-2"
id="reset"
>
Reset
</button>
<button
type="button"
class="btn btn-outline-secondary me-2"
id="takeBack"
>
Take Back
</button>
<button
type="button"
class="btn btn-outline-primary me-2"
id="makeMove"
>
AI Move
</button>
<button
type="button"
class="btn btn-outline-primary me-4"
id="flipBoard"
>
Flip
</button>
<div class="flex-grow-1 d-sm-flex d-none">
<div class="input-group">
<label class="input-group-text" for="inputGroupSelect01"
>Thinking time:</label
>
<select class="form-select" id="thinkingTime">
<option selected value="1">1s</option>
<option value="3">3s</option>
<option value="5">5s</option>
<option value="10">10s</option>
</select>
</div>
</div>
</div>
<div class="flex-grow-1 d-sm-none d-flex">
<div class="input-group">
<label class="input-group-text" for="inputGroupSelect01"
>Thinking time:</label
>
<select class="form-select" id="thinkingTime">
<option selected value="1">1s</option>
<option value="3">3s</option>
<option value="5">5s</option>
<option value="10">10s</option>
</select>
</div>
</div>
</div>
</div>
</main>
<footer class="footer mt-auto py-3 bg-light">
<div class="container text-center">
<span class="text-muted"
>Made with ❤️ by Gavin. <br />
<a href="https://github.com/Strryke/betafish">View source</a></span
>
</div>
</footer>
</body>
<script src="js/betafish.js"></script>
<script type="module" src="js/main.js"></script>
</html>