-
Notifications
You must be signed in to change notification settings - Fork 0
/
hacker.html
93 lines (91 loc) · 3.67 KB
/
hacker.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
<!DOCTYPE html>
<html>
<head>
<title>Color Tiles</title>
<meta charset="utf-8">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Titan+One&display=swap" rel="stylesheet">
<link rel="stylesheet" href="hacker.css">
</head>
<body>
<h1 id="heading">COLOR TILES</h1>
<hr>
<div class="wrapper">
<div class="target">
<div class="box" id="b1"></div>
<div class="box" id="b2"></div>
<div class="box" id="b3"></div>
<div class="box" id="b4"></div>
<div class="box" id="b5"></div>
<div class="box" id="b6"></div>
<div class="box" id="b7"></div>
<div class="box" id="b8"></div>
<div class="box" id="b9"></div>
<div class="box" id="b10"></div>
<div class="box" id="b11"></div>
<div class="box" id="b12"></div>
<div class="box" id="b13"></div>
<div class="box" id="b14"></div>
<div class="box" id="b15"></div>
<div class="box" id="b16"></div>
</div>
<br>
<div class="container">
<div class="item it" id='i1'></div>
<div class="item it" id='i2'></div>
<div class="item it" id='i3'></div>
<div class="item it" id='i4'></div>
<div class="item it" id='i5'></div>
<div class="item it" id='i6'></div>
<div class="item it" id='i7'></div>
<div class="item it" id='i8'></div>
<div class="item it" id='i9'></div>
<div class="item it" id='i10'></div>
<div class="item it" id='i11'></div>
<div class="item it" id='i12'></div>
<div class="item it" id='i13'></div>
<div class="item it" id='i14'></div>
<div class="item it" id='i15'></div>
<div class="item it" id='i16'></div>
<div class="item it" id='i17'></div>
<div class="item it" id='i18'></div>
<div class="item it" id='i19'></div>
<div class="item it" id='i20'></div>
<div class="item it" id='i21'></div>
<div class="item it" id='i22'></div>
<div class="item it" id='i23'></div>
<div class="item it" id='i24'></div>
<div class="item it" id='i25'></div>
<div class="item it" id='i26'></div>
<div class="item it" id='i27'></div>
<div class="item it" id='i28'></div>
<div class="item it" id='i29'></div>
<div class="item it" id='i30'></div>
<div class="item it" id='i31'></div>
<div class="item it" id='i32'></div>
<div class="item it" id='i33'></div>
<div class="item it" id='i34'></div>
<div class="item it" id='i35'></div>
<div class="it" id="empty"></div>
</div>
<div class="footer">
<button class="btn" onclick="location.reload()">RESET</button>
<span class="move">Move: 00</span>
<span id="sec">Time: 00</span>
</div>
</div>
<div id="overlay">
<h2>YOU WON!</h2>
<h4 id="score">Score: </h4>
<h4 id="highsc">High Score: </h4>
<button class="again" onclick="location.assign('index.html')">Play Again!</button>
</div>
<audio id="swap">
<source src="sounds/switch-1.mp3" type="audio/mp3">
</audio>
<audio id="victory">
<source src="sounds/win.mp3" type="audio/mp3">
</audio>
<script src="hacker.js"></script>
</body>
</html>