-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (39 loc) · 1.45 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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Simon Game</title>
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
</head>
<body>
<h1 id="level-title">Press A Key or Tap to Start</h1>
<button id="instructions-button">Show Instructions</button>
<div id="instructions" class="hidden">
<h2>How to Play The Simon Game:</h2>
<p>1. The game starts by showing you a colored button.</p>
<p>2. Click the buttons in the same order they were shown.</p>
<p>3. Every time you get it right, the game adds another color to remember.</p>
<p>4. Repeat the entire sequence correctly to move to the next level.</p>
<p>5. The game ends if you make a mistake.</p>
<h3>Try to remember and repeat the longest sequence possible!</h2>
</div>
<div class="container">
<div class="row">
<div type="button" id="green" class="btn green">
</div>
<div type="button" id="red" class="btn red">
</div>
</div>
<div class="row">
<div type="button" id="yellow" class="btn yellow">
</div>
<div type="button" id="blue" class="btn blue">
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="game.js"></script>
</body>
</html>