-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
54 lines (54 loc) · 1.72 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
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<title>Color Game</title>
<link href="https://fonts.googleapis.com/css?family=Titan+One" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/color.css">
</head>
<body>
<h1>The Great
<br>
<span id="colordisplay">
RGB
</span>
<br>
Color Game
</h1>
<div id="stripe">
<button id="myBtn">Instructions</button>
<button id="reset">New Colors</button>
<span id="message"></span>
<button id="easybtn">Easy</button>
<button id="medbtn">Medium</button>
<button id="hardbtn" class="selected">Hard</button>
</div>
<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 class="square"></div>
<div class="square"></div>
<div class="square"></div>
</div>
<div id="myModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>How To Play?!</h2>
</div>
<div class="modal-body">
<p>This game follows rgb color model which ranges from 0 to 255 for each color(Red, Green, Blue)</p>
<p>There is a rgb code written on the top</p>
<p>All you have to do is guess the correct tile color from the code given</p>
<p>You can restart the game anytime to get a new set of colored tiles</p>
<p>Choose the difficulty to change the number of tiles</p>
<p>To know more about rgb color code <a href="https://en.wikipedia.org/wiki/RGB_color_model" target="_blank">click here</a></p>
</div>
</div>
</div>
<script type="text/javascript" src="assets/js/color.js"></script>
</body>
</html>