-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
66 lines (61 loc) · 2.37 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ukulele Hero</title>
<link rel="stylesheet" href="styles/fonts.css">
<link rel="stylesheet" href="styles/main.css">
<script src="js/helpers.js" defer></script>
<script src="js/live.js" defer></script>
<script src="js/gamelogic.js" defer></script>
<script src="js/offline-data.js" defer></script>
<script src="js/visualize.js" defer></script>
<script src="js/app-navigation.js" defer></script>
</head>
<body>
<div id="start" class="screen is-active">
<h1>Ukulele Hero</h1>
<button type="button" data-screen="allowmic" class="js-toggle">Start</button>
</div>
<div id="allowmic" class="screen">
<h2>We need your input!</h2>
<p>Allow this website to use your computer's microphone, <br> so we can actually hear what you play!</p>
<!-- <button type="button" data-screen="choose">take the mic</button> -->
<button type="button" data-screen="allowmic">take the mic</button>
</div>
<div id="choose" class="screen">
<h2>Choose a song</h2>
<ul class="songlist">
<li data-url="songs/jonathan-mann-i-wont-lock-it-down.mp3">Jonathan Mann - I Won't Lock It Down</li>
<li data-url="songs/the-fisherman-another-day.mp3">The Fisherman - Another Day</li>
</ul>
<button type="button" data-screen="loading" class="js-toggle is-hidden">choose selected song</button>
</div>
<div id="loading" class="screen">
<h2>Preparing the stage</h2>
<div>
<span class="indicator"></span>
</div>
</div>
<div id="stage" class="screen">
<div class="ui">
<div>Score: <span id="score"></span></div>
<div>Countdown: <span id="timeleft"></span></div>
<div>You played: <span id="userplayed"></span></div>
</div>
<div>
<canvas id="playalong"></canvas>
</div>
<div id="startgame" class="popup">
<h2>Sweet!</h2>
<p>We're all set. Hit the button to start!</p>
<button type="button" data-screen="juststart">Start</button>
</div>
<canvas id="prettyviz"></canvas>
</div>
<div id="gameend" class="screen">
<h2>You completed <span id="songtitle"></span> with a score of <span id="totalscore"></span>!</h2>
<button type="button" data-screen="start" class="js-toggle">Start over</button>
</div>
</body>
</html>