This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
simon.html
64 lines (52 loc) · 2.3 KB
/
simon.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
<!DOCTYPE html>
<html>
<head>
<title>Simon Game</title>
<meta charset="utf-8" lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet">
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" type="text/css" href="simon.css">
<script type="text/javascript" src="simon.js"></script>
</head>
<body>
<h1 class="text-center"> Simon Game <a href="https://en.wikipedia.org/wiki/Simon_(game)" target="_blank">?</a> </h1>
<div class="container">
<span id="green" class="colorDisplay">
<audio id="G" src="https://s3.amazonaws.com/freecodecamp/simonSound1.mp3" ></audio>
</span>
<span id="red" class="colorDisplay">
<audio id="R" src="https://s3.amazonaws.com/freecodecamp/simonSound2.mp3" ></audio>
</span>
<div id="result" class="hide">
<br><br><br>
<h1 class="text-center"> You Won </h1>
</div>
<div id="simon">
<h2 class="text-center"><b> Simon </b></h2>
<div id="switch">
<input type="checkbox" id="on-off" data-toggle="toggle" data-style="ios" data-onstyle="danger">
</div>
<audio id="wrong" src="http://www.freesound.org/data/previews/331/331912_3248244-lq.mp3"></audio>
<div id="buttons">
<input id="count" value="" disabled="true">
<button id="start" class="box-shadow">Start</button>
<button id="reset" class="hide">Reset</button>
<button id="strict" class="box-shadow">Strict</button>
</div>
</div>
<span id="yellow" class="colorDisplay">
<audio id="Y" src="https://s3.amazonaws.com/freecodecamp/simonSound3.mp3" ></audio>
</span>
<span id="blue" class="colorDisplay">
<audio id="B" src="https://s3.amazonaws.com/freecodecamp/simonSound4.mp3" ></audio>
</span>
</div>
<footer>
<h3>Coded by<a href="https://www.freecodecamp.com/iambk" target="_blank"> Bharath Kumar</a>.</h3>
</footer>
</body>
</html>