-
Notifications
You must be signed in to change notification settings - Fork 0
/
knights.html
47 lines (43 loc) · 1.63 KB
/
knights.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<link rel="shortcut icon" href="./knight.svg"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Chess's Knights</title>
<link rel="stylesheet" href="./knights.css">
</head>
<body>
<div class="board">
<div class="read">Click a square to add a knight!</div>
</div>
<div class="card">
<button type="button" onclick="fight()" id="fight" class="btn one-part">Fight</button>
<!-- btn -->
<div class="btn parts">
<div class="side" id="up">
<svg version="1.1" class="up-down"xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
<polygon class="st0" points="31.5,13.5 11.58,48 51.42,48 "/>
</svg>
</div>
<div class="middle">speed</div>
<div class="side" id="down">
<svg version="1.1" class="up-down"xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">
<polygon class="st0" points="31.5,48 11.58,13.5 51.42,13.5 "/>
</svg>
</div>
</div>
<!-- btn -->
<div class="btn parts">
<div class="first">Color</div>
<div class="side">
<input type="color" onchange="knightColor()" id="color" value="">
</div>
</div>
</div>
<script type="text/javascript" src="./knights.js"></script>
</body>
</html>