-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
75 lines (65 loc) · 1.32 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<title>Simon says!</title>
<style>
*, *::before, *::after {
box-sizing: border-box;
}
body {
background-color: #cacaca;
}
#simon {
width: 402px;
height: 400px;
margin: auto;
border: solid black 1px;
}
#simon.clickable {
cursor: pointer;
}
.pad {
width: 200px;
height: 200px;
display: inline-block;
vertical-align: top;
opacity: 0.5;
}
.pad__selected {
opacity: 1;
}
.pad__green {
background-color: green;
}
.pad__red {
background-color: red;
}
.pad__blue {
background-color: blue;
}
.pad__yellow {
background-color: yellow;
}
</style>
</head>
<body>
<section id="controls">
<input id="play" type="button" value="Play" />
</section>
<hr/>
<section id="simon">
<div id="yellow" class="pad pad__yellow"></div><!--
--><div id="green" class="pad__green pad"></div><!--
--><div id="red" class="pad__red pad"></div><!--
--><div id="blue" class="pad__blue pad"></div>
<audio id="yellow" src="sounds/1.mp3"></audio>
<audio id="green" src="sounds/2.mp3"></audio>
<audio id="red" src="sounds/3.mp3"></audio>
<audio id="blue" src="sounds/4.mp3"></audio>
</section>
<section id="score">
Score : <span>0</span>
</section>
<script type="text/javascript" src="scripts/main.js"></script>
</body>
</html>