-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (39 loc) · 1.64 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="main.css"/>
<link href="https://fonts.googleapis.com/css?family=Titillium+Web" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="script.js"></script>
<title>The RGB Game</title>
</head>
<body>
<div id="header">
<h1>The RGB Game</h1>
<h2>Can you guess the color based off the RGB value?</h2>
<label class="switch">
<input type="checkbox" id="hardMode" onclick="changeMode()">
<span class="slider"></span>
</label>
<div id="score"></div>
</div>
<div id ="rgbContainer">
<span id="rgbContent">
<span id="rgbVal"></span>
<br><br>
<span id="result" class="resultAnim"></span>
</span>
</div>
<div id="choices">
<button id="0" type="button" onclick="checkRGB(this.id)"></button>
<button id="1" type="button" onclick="checkRGB(this.id)"></button>
<button id="2" type="button" onclick="checkRGB(this.id)"></button>
<div id="choicesHard">
<button id="3" type="button" onclick="checkRGB(this.id)"></button>
<button id="4" type="button" onclick="checkRGB(this.id)"></button>
<button id="5" type="button" onclick="checkRGB(this.id)"></button>
</div>
</div>
</body>
</html>