-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorgame.html
36 lines (35 loc) · 895 Bytes
/
colorgame.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
<!DOCTYPE html>
<html>
<head>
<title>
Color Game
</title>
<link rel="stylesheet" type="text/css" href="colorgame.css">
</head>
<body>
<audio id="correctSound" src="correct.mp3"></audio>
<audio id="wrongSound" src="wrong.mp3"></audio>
<h1>
Color Guessing Game
<br>
<span id="colorDisplay">RGB</span>
</h1>
<div id="messageContainer">
<button id="resetBtn">Replay</button>
<span id="message"></span>
<button id="easyBtn">Easy</button>
<button id="hardBtn">Hard</button>
</div>
<progress id="progress" value="150" max="150"></progress>
<div id="container">
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div class="square"></div>
<div id="score">0</div>
</div>
<script type="text/javascript" src="colorgame.js"></script>
</body>
</html>