forked from shivamgupta2020/ColorGame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (53 loc) · 2.11 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
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./styles.css">
<title>Color Games</title>
<link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
</head>
<body>
<nav id="navigation">
<ul>
<li class="nav"><a href="#">Play</a></li>
<li class="nav"><a href="./aboutme.html">About Me</a></li>
<li class="nav"><a href="./gameinfo.html">Game Info</a></li>
</ul>
</nav>
<!-- Hue hue hhue sexa -->
<div class="Heading" id="heading">
<h1 class="h1">THE GREAT</h1>
<br>
<h1 class="h1">COLOR GAME</h1>
<br>
<div id="color-code"></div>
</div>
<div class="options">
<button id="new-game" onclick="newGame()" style="cursor: pointer;" ">NEW GAME</button>
<div id="message"></div>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn" style="width: 122px; ">GAME MODES</button>
<div id="myDropdown" class="dropdown-content">
<a onclick="easy()">EASY</a>
<a onclick="hard()">HARD</a>
</div>
</div>
</div>
<div class="hardcontainer">
<span class="grid" id="box1" onclick="select(this.id)"></span>
<span class="grid" id="box2" onclick="select(this.id)"></span>
<span class="grid" id="box3" onclick="select(this.id)"></span>
<span class="grid" id="box4" onclick="select(this.id)"></span>
<span class="grid" id="box5" onclick="select(this.id)"></span>
<span class="grid" id="box6" onclick="select(this.id)"></span>
</div>
<div class="events">
<div id="score">Score: 0</div>
</div>
<div id="next-round" onclick="setRandomColor()" style="cursor: pointer;">NEXT ROUND</div>
<script src="./index.js"></script>
</body>
</html>