-
-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (112 loc) · 5.84 KB
/
Copy pathindex.html
File metadata and controls
117 lines (112 loc) · 5.84 KB
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
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<title>Stockfish Web GUI - By BoldChess.com</title>
<link rel="icon" href="./favicon.png">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="./src/style.css" />
<script>
window.coi = {
doRegistration: (s) => {
const pathParts = window.location.pathname.split('/');
const scope = pathParts.slice(0, -1).join('/') + '/';
return navigator.serviceWorker.register(s, { scope: scope });
}
}
</script>
<script src="./coi-serviceworker.js"></script>
</head>
<body>
<div class="container-fluid">
<h1>Stockfish Chess Web GUI</h1>
<p>For <a href="https://boldchess.com" rel="noopener noreferrer">BoldChess.com</a> | Project by <a
href="https://labinator.com" rel="noopener noreferrer">Labinator.com</a></p>
<div id="console-container" class="mb-3">
<div class="row chess-console">
<div class="chess-console-center col-xl-7 order-xl-2 col-lg-8 order-lg-1 order-md-1 col-md-12">
<div class="chess-console-board flex-grow-1"></div>
<div
class="control-buttons buttons-grid mt-2 d-flex gap-1 flex-nowrap justify-content-center overflow-x-auto">
</div>
</div>
<div
class="chess-console-right chess-console-left col-xl-3 order-xl-3 col-lg-4 order-lg-2 col-md-8 order-md-3">
<div class="engine-state mb-2"></div>
<div id="analysis-output"></div>
<div class="mb-2">
<strong class="text-dark">Move History</strong>
</div>
<div class="chess-console-history mb-2"></div>
<div class="chess-console-captured mb-2"></div>
<div class="chess-console-notifications mb-4"></div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.slim.min.js"
integrity="sha384-5AkRS45j4ukf+JbWAfHL8P4onPA9p0KwwP7pUdjSQA3ss9edbJUJc/XcYAiheSSz"
crossorigin="anonymous"></script>
<!-- Import map and shims removed for Vite -->
<script type="module" src="./src/main.js"></script>
<!-- Game Setup Modal -->
<div class="modal fade" id="setupModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content text-dark">
<div class="modal-header">
<h5 class="modal-title">Game Setup & Import</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<ul class="nav nav-tabs mb-3" id="setupTabs">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="fen-tab" data-bs-toggle="tab" data-bs-target="#fen-pane"
type="button" role="tab">FEN</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pgn-tab" data-bs-toggle="tab" data-bs-target="#pgn-pane"
type="button" role="tab">PGN</button>
</li>
</ul>
<div class="tab-content">
<!-- FEN Tab -->
<div class="tab-pane fade show active" id="fen-pane" role="tabpanel">
<label for="fen-text" class="form-label">FEN String</label>
<div class="input-group mb-3">
<input type="text" class="form-control" id="fen-text" placeholder="Paste FEN here...">
<button class="btn btn-outline-secondary" type="button" id="btn-copy-fen">Copy</button>
<button class="btn btn-primary" type="button" id="btn-load-fen">Load FEN</button>
</div>
</div>
<!-- PGN Tab -->
<div class="tab-pane fade" id="pgn-pane" role="tabpanel">
<label for="pgn-text" class="form-label">PGN</label>
<textarea class="form-control mb-3" id="pgn-text" rows="5"
placeholder="Paste PGN here..."></textarea>
<div class="d-flex justify-content-end gap-2">
<button class="btn btn-outline-secondary" type="button" id="btn-copy-pgn">Copy
PGN</button>
<button class="btn btn-primary" type="button" id="btn-load-pgn">Load PGN</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Toast Container -->
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="notificationToast" class="toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<strong class="me-auto">Notification</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body" id="toastMessage">
Action successful.
</div>
</div>
</div>
</body>
</html>