-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (85 loc) · 2.36 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Chess Engine</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/oakmac/chessboardjs/lib/chessboard.css" />
<style>
body {
font-family: Arial, sans-serif;
background: #000 url('https://www.transparenttextures.com/patterns/subtle-prism.png');
margin: 0;
padding: 0;
}
.board-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 20px;
}
.board {
width: 400px;
background: #111;
border-radius: 8px;
box-shadow: 0 10px 20px rgba(255, 255, 255, 0.19), 0 6px 6px rgba(255, 255, 255, 0.23);
}
.title {
text-align: center;
padding: 20px 0;
}
.control-panel {
display: flex;
justify-content: space-around;
width: 100%;
margin-bottom: 20px;
}
#info {
text-align: center;
padding: 20px 0;
}
.chessboard .square-55d63:hover {
background: #879aac !important;
}
</style>
</head>
<body>
<div class="board-container">
<h3 class="title">Chess Engine</h3>
<div class="control-panel">
<div>
Theme:
<select id="themeSelector" class="btn btn-light dropdown-toggle">
<option>Light</option>
<option>Dark</option>
<option>Classic</option>
<option>Minimal</option>
</select>
</div>
<div>
Search depth:
<select id="searchDepth" class="btn btn-light dropdown-toggle">
<option>1</option>
<option>2</option>
<option selected>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<button id="newGameButton" class="btn btn-light">New Game</button>
</div>
<div id="myBoard" class="board"></div>
<div id="info"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/@chrisoakman/[email protected]/dist/chessboard-1.0.0.min.js"></script>
<script src="https://cdn.rawgit.com/lhartikk/simple-chess-ai/master/lib/js/chess.js"></script>
<script src="script.js"></script>
</body>
</html>