-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.html
301 lines (294 loc) · 13.3 KB
/
play.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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="author" content="Mark Skinner">
<meta name="description" content="Play handybell music from our library or from your computer with this easy-to-use graphical way of viewing handbell music. By following the dots moving across the screen, anyone with any musical ability can have a great time!">
<meta name="keywords" content="handybells,8 note set,kid handbells,handbell,handbells,music,dots moving,handbell music visualized,lds handbell music">
<link rel="icon" href="favicon.png" type="image/gif">
<title>Handybells Play</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/p5.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Manjari&display=swap" rel="stylesheet">
<style> body { padding: 0; margin: 0; overflow: hidden}
.image-upload>input {
display: none;
}
*:not(input){
user-select: none;
-webkit-touch-callout: none;
-webkit-user-select: none;
}
img{
cursor: pointer;
}
img:hover:not(#loadingIcon) , button:hover {
filter: brightness(85%);
}
.fullinput {
text-align: center;
width: 90%;
padding: 12px 20px;
margin: 5px auto 2vh auto;
display: block;
border: 1px solid #ccc;
border-radius: 8px;
box-sizing: border-box;
font-family: 'Manjari', sans-serif;
}
.center{
text-align: center;
font-family: 'Manjari', sans-serif;
font-size: 25px;
}
.formbutton {
background-color: #7edf27;
color: black;
padding: 14px 20px;
margin: 8px 8px;
border: none;
cursor: pointer;
border-radius: 8px;
font-family: 'Manjari', sans-serif;
font-size: 20px
}
.smallertext{
font-size: 17px;
}
.library{
display: none;
position: absolute;
padding: 0;
margin: 0px;
vertical-align:middle;
border-radius: 8px;
background-color: #185162;
width: 80%;
left: 10%;
height: calc(100% - 150px);
top: 100px;
overflow:hidden;
font-family: Arial;
}
.entries{
display: inline;
position: absolute;
padding: 0;
margin: 0px;
vertical-align:middle;
border-radius: 8px;
background-color: #2d98b9;
width: calc(100% - 16px);
left: 8px;
height: calc(100% - 150px);
top: 100px;
overflow-y: auto;
overflow-x: hidden;
font-family: Arial;
}
.entry{
background-color: #32cd32;
width: calc(100% - 20px);
margin: 10px;
border-radius: 4px;
}
.entry:hover{
filter: brightness(85%);
cursor:pointer;
}
.public{
background-color: #5edbf7;
}
.innertext{
display: inline-block;
margin: 0px;
padding: 8px;
font-size: 20px;
}
.buttonLib {
background-color: #32cd32;
border: none;
color: white;
padding: 7px 20px;
text-align: center;
text-decoration: none;
font-size: 16px;
cursor: pointer;
border-radius: 8px;
}
.buttonLib:hover{
filter: brightness(85%);
}
.headertextlib{
font-family: Arial;
color: #2d98b9;
padding-left: 10px;
margin: 7px 0px;
white-space:nowrap;
}
.inputlib{
background-color: #2d98b9;
border-radius: 8px;
border: none;
height: 35px;
width: 30%;
margin-left: 4px;
color: #185162;
font-size: 20px;
}
.selectlib{
background-color: #2d98b9;
border-radius: 8px;
border: none;
height: 35px;
width: 33%;
margin-left: 9px;
color: #185162;
font-size: 20px;
}
.selectlib:hover{
cursor: pointer;
}
.buttonSearchLib {
background-color: #2d98b9;
border-radius: 8px;
border: none;
height: 35px;
width: 80px;
margin-left: 4px;
color: #185162;
font-size: 20px;
}
.buttonSearchLib:hover{
cursor: pointer;
filter: brightness(85%)
}
.newsong{
display: none;
position: absolute;
padding: 0;
margin: 0px;
vertical-align:middle;
border-radius: 8px;
background-color: #185162;
width: max(33%,300px);
left: 50%;
transform: translateX(-50%);
height: calc(100% - 150px);
top: 100px;
overflow:hidden;
font-family: Arial;
}
#hideonload{
position: fixed;
top:0px;
left:0px;
width:100%;
height:100%;
background-color: white;
z-index: 300;
transition: all 1s;
}
#loadingIcon{
position: fixed;
left:calc(50% - 140px);
top:calc(50% - 80px);
}
.topbutton{
position: absolute;
cursor: pointer;
}
</style>
</head>
<body>
<div id='hideonload'>
<img src='res/loading.gif' id='loadingIcon'/>
</div>
<div class="image-upload">
<label for="file-input">
<img src="playRes/openfile.png" style="position: absolute;
left: 79px;
top: 41px;" alt="open a file from your computer"/>
</label>
</div>
<a id = 'homeparent' href="index.html" style="position: fixed;z-index:100;"></a>
<a target="_blank" id = 'getcodeparent' href="maintenance.html"></a>
<h3 id="songinfo" style="position: absolute; top: -10px;text-align: left; color: white; width:200; left:920px; font-size:15px">London Bridge (6 bells)</h3>
<img onclick="hideSignin(); hideLib(); hideAcctMenu(); showLogin(); showCorrectLib()" src = 'res/login.png' id="Login" style="position: absolute; z-index: 98; top: 10px; color: black; right:8px;">
<img onclick="hideLogin(); hideLib(); hideAcctMenu(); showSignin()" src = 'res/signup.png' id="Signup" style="position: absolute; z-index: 98; top: 40px; color: black; right:8px;">
<p id='welcome' style="position: absolute; z-index: 98; top: 65px; color: black; right:1px;">Not signed in</p>
<button id='acctmenubtn' onclick="showAcctMenu()" class="btn" style="display: none;position: absolute;z-index: 0;top: 40px;color: #000;right: 105px;font-family: Arial;border: none;border-radius: 5px;height: 27px;background-color: #7edf27;">My Account</button>
<div id = 'acctmenu' class='newsong' style="height:400px">
<h1 class = "headertextlib">Account Settings</h1>
<h3 style="display:none"id='songplayelement' class="headertextlib">You have unlimited songplays left</h3>
<div class="entries" style="width: calc(100% - 16px)">
<!-- <button id='buysongs' onclick="buyMoreSongs()" class="formbutton btn" style="width:calc(100% - 10px);margin:5px 5px 0px 5px; background-color:#f1fe06">Buy 500 more song plays ($10.00 CAD)</button> -->
<button id='buysongs' class="formbutton btn" style="width:calc(100% - 10px);margin:5px 5px 0px 5px; background-color:#f1fe06">Currently unavailable</button>
</div>
<button onclick="hideAcctMenu();" class="buttonLib" style="position: absolute; bottom: 8px; right: 10px">Done</button>
<button onclick="showDeleteMenu();" class="buttonLib" style="position: absolute; bottom: 8px; left: 10px">Advanced</button>
</div>
<div id = 'deleteAcctmenu' class='newsong' style="height:400px">
<h1 class = "headertextlib">Delete Account</h1>
<h3 class="headertextlib">This action cannot be undone</h3>
<div class="entries" style="width: calc(100% - 16px)">
<input id='delpword' placeholder="enter password" type="password" class="formbutton btn" style="margin:5px 5px 0px 5px; width:calc(100% - 10px)">
<button id='delbtn' onclick="deleteAcct()" class="formbutton btn" style="width:calc(100% - 10px); margin:5px 5px 0px 5px; background-color:#df3b27">Delete</button>
</div>
<button onclick="hideDeleteAcctmenu();" class="buttonLib" style="position: absolute; bottom: 8px; left: 10px">Cancel</button>
</div>
<div id="Logindiv" style="position: absolute; display: none; color: #FFF; border-radius: 10px; top: 100px; left: 25%; width: max(50%,300px);left: 50%;transform: translateX(-50%); padding-bottom: 20px; background-color:#185162">
<h1 style="font-family: 'Manjari', sans-serif; text-align: center; font-size: 40px">Log in to Handybells</h1>
<div class="container center">
<label for="uname"><b class = "center">Email</b></label>
<input id='emaillogin' class = "fullinput" type="text" placeholder="Enter Email" name="uname" required>
<label for="pswlogin"><b class = "center">Password</b></label>
<input id='pswlogin' class = "fullinput" type="password" placeholder="Enter Password" name="psw" required>
<button id='forgotpasswordbtn'onclick="forgotPassword()" class="formbutton btn">Forgot Password</button>
<button onclick="hideLogin()" class="formbutton btn">Cancel</button>
<button id="loginenter" onclick="LogInAccount(); hideLogin();" class="formbutton btn">Login</button>
</div>
</div>
<div id="Signindiv" style="position: absolute; display: none; color: #FFF; border-radius: 10px; top: 100px; width: max(50%,300px);left: 50%;transform: translateX(-50%);;padding-bottom: 0px;background-color:#185162">
<h1 style="font-family: 'Manjari', sans-serif; text-align: center; font-size: 40px; margin-bottom:0px">Create Handybells Account</h1>
<h3 id='error' style="font-family: 'Manjari', sans-serif; color:#FF5555; text-align: center; margin-top:0px"></h3>
<div class="container center">
<label><b class = "center smallertext">Email</b></label>
<input id="email" class = "fullinput" type="text" placeholder="Enter Email" name="uname" required>
<label><b class = "center smallertext">Password</b></label>
<input id="psw" class = "fullinput" type="password" placeholder="Enter Password" name="psw" required>
<label><b class = "center smallertext">Display Name</b></label>
<input id="dispname" class = "fullinput" type="text" placeholder="Enter Nickname" required>
<button id="signinenter" onclick="createAccount()" class="formbutton">Create Account</button><button onclick="hideSignin()" class="formbutton">Cancel</button>
</div>
</div>
<div id = 'library' class='library'>
<h1 class = "headertextlib">Cloud Song Library</h1>
<select class = "selectlib" id='selectorLib'>
<option value='0'>Search By Title</option>
<option value='1'>Search Max Bell Count</option>
<option value='2'>Search Min Bell Count</option>
<option value='3'>Search By Creator</option>
</select>
<input id='searchLib'class="inputlib" type="text" placeholder="Search.." name="search">
<div id="entries" class="entries">
<div class="entry public demo cloud" id="songthumb" style="display: block;"><h1 class="innertext">The Wheels On The Bus (7 bells)</h1><h1 class="innertext"></h1></div>
<div class="entry public demo cloud" id="songthumb" style="display: block;"><h1 class="innertext">I'm A Little Tea Pot (7 bells)</h1><h1 class="innertext"></h1></div>
<div class="entry public demo cloud" id="songthumb" style="display: block;"><h1 class="innertext">Angels We Have Heard On High (6 bells)</h1><h1 class="innertext"></h1></div>
<div class="entry public demo cloud" id="songthumb" style="display: block;"><h1 class="innertext">London Bridge (6 bells)</h1><h1 class="innertext"></h1></div>
</div>
<button onclick="hideLib()" class="buttonLib" style="position: absolute; bottom: 8px; right: 10px">Cancel</button>
<h3 id='privateMessage'class="" style="display:none;position: absolute;bottom: -4px;left: 10px;color: #2d98b9;font-size: 15px; width:200px">Private songs (highlighted) are only visible to you</h3>
<h2 id='message' style="position: absolute; bottom: -4px; left: 10px; font-size: 15px; width:200px">Log in to see your songs, and the whole public library</h2>
</div>
<img onclick="openSongStringURL()"class='topbutton' style='left: 925px;top: 36px;'src='res/sheetmusic.png'></img>
<script src="https://code.createjs.com/1.0.0/soundjs.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-functions.js"></script>
<script src="https://js.stripe.com/v3/"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.15.5/firebase-analytics.js"></script>
<script src="firestuff.js"></script>
<script language="javascript" type="text/javascript" src="play.js"></script>
</body>
</html>