-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (38 loc) · 1.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--
This is the page head - it contains info the browser uses to display the page
You won't see what's in the head in the page
Scroll down to the body element for the page content
-->
<!--
This is an HTML comment
You can write text in a comment and the content won't be visible in the page
-->
<title>Hello World!</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>Light and Sound Memory Game</h1>
<p>
Welcome to the game! Repeat back the pattern by pressing buttons!
</p>
<button id="startBtn" onclick="startGame()">
Start
</button>
<button id="stopBtn" class="hidden" onclick="stopGame()">
End
</button>
<div id="gameButtonArea">
<button id="Button1" onclick="guess(1)" onmousedown="startTone(1)" onmouseup="stopTone()"></button>
<button id="Button2" onclick="guess(2)" onmousedown="startTone(2)" onmouseup="stopTone()"></button>
<button id="Button3" onclick="guess(3)" onmousedown="startTone(3)" onmouseup="stopTone()"></button>
<button id="Button4" onclick="guess(4)" onmousedown="startTone(4)" onmouseup="stopTone()"></button>
<button id="Button5" onclick="guess(5)" onmousedown="startTone(5)" onmouseup="stopTone()"></button>
</div>
</body>
</html>