-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
84 lines (68 loc) · 2.53 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
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="shortcut icon" href="img/game.svg" type="image/x-icon">
<meta name="theme-color" content="#1E003D"/>
<link rel="apple-touch-icon" href="img/game.png"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />
<title>Simon Game</title>
<meta name="description" content="Play the classic simon game online"/>
<meta name="viewport" content="width=device-width" initial-scale=1.0>
<link rel="stylesheet" href="styles.css">
<link rel="manifest" href="manifest.json">
<!-- Google fonts -->
<link href="https://fonts.googleapis.com/css2?family=Prompt&family=Righteous&display=swap" rel="stylesheet">
</head>
<body>
<!-- Instruction -->
<div id="card">
<span id="close">×</span>
<h3>
How to play
</h3>
<ul>
<li>Press 'Start' to play the game</li>
<li>Automatically a key is pressed by the computer, press that key.</li>
<li>After you press, again a key is press by the computer you have to press the previous key and the current key.</li>
<li>This way a pattern is created, you have to follow the pattern to get the highest score.</li>
</ul>
<p>Made by <a target="_blank" href="https://instagr.am/zippytyro">this</a> noob.</p>
</div>
<h1 id="level-title">Simon Game</h1>
<div class="container">
<div lass="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>
<div class="again"></div>
<button type="button">Start</button>
<div id="highestLevel"></div>
<div id="instruction">
<i class="far fa-lg fa-question-circle"></i>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="game.js"></script>
<audio src="/sounds/blue.mp3"></audio>
<audio src="/sounds/red.mp3"></audio>
<audio src="/sounds/green.mp3"></audio>
<audio src="/sounds/yellow.mp3"></audio>
<audio src="/sounds/wrong.mp3"></audio>
<script>
if('serviceWorker' in navigator){
navigator.serviceWorker.register('/service-worker.js');
} else {
console.log("Service worker is not supported");
}
</script>
</body>
</html>