-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
214 lines (210 loc) · 7.23 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="icon" type="image/png" href="./assets/favicon.png" />
<title>Guess That Song</title>
<!-- font style -->
<link
href="https://fonts.googleapis.com/css?family=Fredoka+One|Open+Sans:400,800"
rel="stylesheet"
/>
<!-- font awesome -->
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.5.0/css/all.css"
integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"
crossorigin="anonymous"
/>
<!-- stylesheet link -->
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<main>
<section id="splashPage" class="splashPageTitle">
<div class="wrapper wrapper--splash">
<div
class="ball"
onmouseover="PlaySound('my-sound')"
onmouseout="StopSound('my-sound')"
>
<h1 class="title">
<span>Guess</span><span>That</span><span>Song</span>
</h1>
<audio id="my-sound" src="assets/guessThatSong.mp3" />
</div>
<section class="splashPageButtons">
<button class="btn splashButton" id="startButton" type="button">
Start Game
</button>
<button class="btn splashButton" id="settingsButton" type="button">
Settings
</button>
<button
class="btn splashButton"
id="leaderboardButton"
type="button"
>
Leaderboard
</button>
</section>
</div>
</section>
<article class="splashPopup hide" id="settingsPage">
<div class="overlay">
<div class="popup">
<button class="exitPopup" id="exitSettings" type="button">X</button>
<div class="instructions">
<h3 class="popup-title">INSTRUCTIONS</h3>
<p>
Game where player gets questions consisting of song lyrics and
have to guess the song name and artist. Each question gets
scored depending on number of hints revealed, number of guess
attempts made, and time left on the clock. Player gets three
lives - every question not answered correctly within the time
limit costs the player one life. The game is over when the
player runs out of lives.
</p>
</div>
<div class="difficulty">
<h3 class="popup-title">DIFFICULTY</h3>
<section class="difficultySelection">
<label for="easy">
<input
id="easy"
value="easy"
type="radio"
name="difficulty"
/>
Easy
</label>
<label for="normal">
<input
id="normal"
value="normal"
type="radio"
name="difficulty"
checked
/>
Normal
</label>
<label for="hard">
<input
id="hard"
value="hard"
type="radio"
name="difficulty"
/>
Hard
</label>
</section>
</div>
</div>
</div>
</article>
<article class="splashPopup hide" id="leaderboardPopup">
<div class="overlay">
<div class="popup">
<button class="exitPopup" id="exitLeaderboard">X</button>
<h3 class="popup-title">Leaderboard</h3>
<div class="popup-entries" id="popup-entries">
<!-- DYNAMICALLY ADDED LEADERBOARD ELEMENTS -->
</div>
</div>
</div>
</article>
<section id="gamePage" class="gamePage hide">
<div class="header">
<ul>
<li>
<!-- Timer -->
<p class="timer" id="timer"></p>
</li>
<li>
<h2 class="titleLogo">
<span>Guess</span><span>That</span><span>Song</span>
</h2>
</li>
<li>
<!-- Exit Button -->
<button class="exitButton" id="exitButton" type="button">
X
</button>
</li>
</ul>
</div>
<div class="gameContainer">
<div class="wrapper">
<div class="lyrics" id="lyrics">
<!-- DYNAMICALLY GENERATED STATUS SHOULD GO HERE -->
</div>
<section class="status" id="status">
<!-- DYNAMICALLY GENERATED STATUS SHOULD GO HERE -->
</section>
<div class="action">
<form action="">
<button class="btn btnGamePage" id="hintButton" type="button">
HINT
</button>
<label for="artistName">Artist Name</label>
<input
id="artistName"
class="artistName"
name="artistName"
type="text"
placeholder="Artist Name"
autocomplete="off"
/>
<label for="songTitle">Song Title</label>
<input
id="songTitle"
class="songTitle"
name="songTitle"
type="text"
placeholder="Song Title"
autocomplete="off"
/>
<section class="submitters">
<button
class="btn btnGamePage"
id="submitButton"
type="submit"
>
AM I RIGHT?!
</button>
<button class="btn btnGamePage" id="passButton" type="button">
PASS
</button>
</section>
</form>
</div>
</div>
</div>
</section>
</main>
<!-- Link jQuery -->
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"
></script>
<!-- Link Sweet Alerts -->
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"
></script>
<!-- Usage tracking required by musixmatch API -->
<script
type="text/javascript"
src="http://tracking.musixmatch.com/t1.0/AMa6hJCIEzn1v8RuOP"
></script>
<!-- Link Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase.js"></script>
<!-- Link JavaScript files -->
<script type="text/javascript" src="./js/data.js?v=2.0"></script>
<script type="text/javascript" src="./js/game.js?v=2.0"></script>
<script type="text/javascript" src="./js/leaderboard.js?v=2.0"></script>
<script type="text/javascript" src="./js/app.js?v=2.0"></script>
</body>
</html>