-
Notifications
You must be signed in to change notification settings - Fork 0
/
chess-board.html
179 lines (162 loc) · 10.2 KB
/
chess-board.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<!--All the svg files are taken from https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>chess-board</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Chess Board</h1>
<div class="container">
<div class="board">
<div class="row odd eight-rank">
<div class="col a-file">
<img id="black-rook-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Chess_rdt45.svg/68px-Chess_rdt45.svg.png" alt="black-rook-2d-model">
</div>
<div class="col b-file">
<img id="black-knight-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Chess_ndt45.svg/68px-Chess_ndt45.svg.png" alt="black-knight-2d-model">
</div>
<div class="col c-file">
<img id="black-bishop-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Chess_bdt45.svg/68px-Chess_bdt45.svg.png" alt="black-bishop-2d-model">
</div>
<div class="col d-file">
<img id="black-queen" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/Chess_qdt45.svg/68px-Chess_qdt45.svg.png" alt="black-queen-2d-model">
</div>
<div class="col e-file">
<img id="black-king" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f0/Chess_kdt45.svg/68px-Chess_kdt45.svg.png" alt="black-king-2d-model">
</div>
<div class="col f-file">
<img id="black-bishop-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Chess_bdt45.svg/68px-Chess_bdt45.svg.png" alt="black-bishop-2d-model">
</div>
<div class="col g-file">
<img id="black-knight-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Chess_ndt45.svg/68px-Chess_ndt45.svg.png" alt="black-knight-2d-model">
</div>
<div class="col h-file">
<img id="black-rook-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Chess_rdt45.svg/68px-Chess_rdt45.svg.png" alt="black-rook-2d-model">
</div>
</div>
<div class="row even seventh-rank">
<div class="col a-file" >
<img id="black-pawn-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col b-file">
<img id="black-pawn-two"src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col c-file">
<img id="black-pawn-three" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col d-file">
<img id="black-pawn-four" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col e-file">
<img id="black-pawn-five" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col f-file">
<img id="black-pawn-six" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col g-file">
<img id="black-pawn-seven" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
<div class="col h-file" id="pawn-eight">
<img id="black-pawn-eight" src="https://upload.wikimedia.org/wikipedia/commons/thumb/c/c7/Chess_pdt45.svg/68px-Chess_pdt45.svg.png" alt="black-pawn-2d-model">
</div>
</div>
<div class="row odd sixth-rank">
<div class="col a-file"></div>
<div class="col b-file"></div>
<div class="col c-file"></div>
<div class="col d-file"></div>
<div class="col e-file"></div>
<div class="col f-file"></div>
<div class="col g-file"></div>
<div class="col h-file"></div>
</div>
<div class="row even fifth-rank">
<div class="col a-file"></div>
<div class="col b-file"></div>
<div class="col c-file"></div>
<div class="col d-file"></div>
<div class="col e-file"></div>
<div class="col f-file"></div>
<div class="col g-file"></div>
<div class="col h-file"></div>
</div>
<div class="row odd fourth-rank">
<div class="col a-file" id="a4"></div>
<div class="col b-file" id="b4"></div>
<div class="col c-file" id="c4"></div>
<div class="col d-file" id="d4"></div>
<div class="col e-file" id="e4"></div>
<div class="col f-file" id="f4"></div>
<div class="col g-file" id="g4"></div>
<div class="col h-file" id="h4"></div>
</div>
<div class="row even third-rank">
<div class="col a-file" id="a3"></div>
<div class="col b-file" id="b3"></div>
<div class="col c-file" id="c3"></div>
<div class="col d-file" id="d3"></div>
<div class="col e-file" id="e3"></div>
<div class="col f-file" id="f3"></div>
<div class="col g-file" id="g3"></div>
<div class="col h-file" id="h3"></div>
</div>
<div class="row odd second-rank">
<div class="col a-file">
<img id="white-pawn-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col b-file">
<img id="white-pawn-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col c-file">
<img id="white-pawn-three" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col d-file">
<img id="white-pawn-four" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col e-file">
<img id="white-pawn-five" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col f-file">
<img id="white-pawn-six" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col g-file">
<img id="white-pawn-seven" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
<div class="col h-file">
<img id="white-pawn-eight" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/Chess_plt45.svg/68px-Chess_plt45.svg.png" alt="white-pawn-2D-model">
</div>
</div>
<div class="row even first-rank">
<div class="col a-file">
<img id="white-rook-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Chess_rlt45.svg/68px-Chess_rlt45.svg.png" alt="white-rook-2d-model">
</div>
<div class="col b-file">
<img id="white-knight-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Chess_nlt45.svg/68px-Chess_nlt45.svg.png" alt="white-knight-2d-model">
</div>
<div class="col c-file">
<img id="white-bishop-one" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Chess_blt45.svg/68px-Chess_blt45.svg.png" alt="white-bishop-2d-model">
</div>
<div class="col d-file">
<img id="white-king" src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Chess_klt45.svg/68px-Chess_klt45.svg.png" alt="white-king-2d-model">
</div>
<div class="col e-file">
<img id="white-queen" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Chess_qlt45.svg/68px-Chess_qlt45.svg.png" alt="white-queen-2d-model">
</div>
<div class="col f-file">
<img id="white-bishop-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Chess_blt45.svg/68px-Chess_blt45.svg.png" alt="white-bishop-2d-model">
</div>
<div class="col g-file">
<img id="white-knight-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/70/Chess_nlt45.svg/68px-Chess_nlt45.svg.png" alt="white-knight-2d-model">
</div>
<div class="col h-file">
<img id="white-rook-two" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/72/Chess_rlt45.svg/68px-Chess_rlt45.svg.png" alt="white-rook-2d-model">
</div>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>