-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
117 lines (104 loc) · 4.13 KB
/
index.html
File metadata and controls
117 lines (104 loc) · 4.13 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>
<meta charset="Unicode">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles/index.css">
<link rel="stylesheet" href="./styles/loader.css">
<link rel="stylesheet" href="./styles/processing.css">
<link rel="stylesheet" href="./styles/settings.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="./sprites/pawn1.png">
<title>Chess</title>
</head>
<body>
<div id="loader" class="loader">
<div class="pair pair-1">
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
</div>
<div class="pair pair-2">
<div class="dot dot-1"></div>
<div class="dot dot-2"></div>
</div>
<p>
Nervously placing chess pieces
</p>
</div>
<div id="board-container">
<style>
.small {
font: bold 2px sans-serif;
fill: #32353ad8
}
</style>
<svg id="board" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg">
</svg>
</div>
<span id="processing-container" style="visibility: hidden">
<div id="processing" class="processing"></div>
</span>
<svg id="promotion-select" viewBox="0 0 40 10" xmlns="http://www.w3.org/2000/svg">
<image href="./sprites/queen.png" x="0" y="0" width="25%" height="100%" id="promQ"></image>
<image href="./sprites/rook.png" x="10" y="0" width="25%" height="100%" id="promR"></image>
<image href="./sprites/bishop.png" x="20" y="0" width="25%" height="100%" id="promB"></image>
<image href="./sprites/knight.png" x="30" y="0" width="25%" height="100%" id="promK"></image>
</svg>
<i id="settings-btn" class="fa fa-gear" style="font-size:25px;color:#F7F3E3"></i>
<div id="settings-modal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h1>Settings</h1>
<hr>
<h2>Play as:</h2>
<span id="radio-container">
<input type="radio" id="white" name="color_select" checked>
<label for="white">♙</label>
<input type="radio" id="black" name="color_select">
<label for="black">♟</label>
</span>
<p>NOTE: This will only take effect once the game has reset</p>
<hr>
<h2>Computer Depth:</h2>
<span>
<select id="depth-selector" name="depth" id="select-depth">
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6 selected>6</option>
<option value=7>7</option>
<option value=8>8</option>
</select>
</span>
<p>NOTE: any depth over 6 is not recomended unless you have some patience</p>
<hr>
<h2>Reset:</h2>
<span id="reset-container">
<a id="reset-btn" class="button">Reset Game</a>
</span>
</div>
</div>
<div id="termination-modal" class="modal">
<div class="modal-content">
<span class="termination-container">
<h1 id="termination-msg">Wins!</h1>
</span>
<span id="reset-container">
<a id="reset-btn2" class="button">Reset Game</a>
<a id="view-board-btn" class="button">View Board</a>
</span>
</div>
</div>
</body>
<script>
let api; // This is to make the api accessable globaly
</script>
<script src="./scripts/a.out.js"></script>
<script src="./scripts/SVGHandler.js"></script>
<script src="./scripts/mouseHandler.js"></script>
<script src="./scripts/settings.js"></script>
<script src="./scripts/api.js"></script>
</html>