-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (27 loc) · 1.19 KB
/
index.html
File metadata and controls
33 lines (27 loc) · 1.19 KB
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
<!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">
<title>Hello!</title>
<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="/style.css">
<!-- import the webpage's javascript file -->
<script src="/script.js" defer></script>
</head>
<body>
<h1>Simon Says... (visual and auditory)</h1>
<p>
Welcome to this game created using instructions from CodePath!
</p>
<button onclick="startGame()" id="startBtn">Start</button>
<button onclick="stopGame()" class="hidden" id="stopBtn">Stop</button>
<div id="gameButtonArea">
<button onclick="guess(1)" onmousedown="startTone(1)" onmouseup="stopTone()" id="button1"></button>
<button onclick="guess(2)" onmousedown="startTone(2)" onmouseup="stopTone()" id="button2"></button>
<button onclick="guess(3)" onmousedown="startTone(3)" onmouseup="stopTone()" id="button3"></button>
<button onclick="guess(4)" onmousedown="startTone(4)" onmouseup="stopTone()" id="button4"></button>
</div>
</body>
</html>