generated from jm1021/leuck_reunion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount.html
369 lines (358 loc) · 22.2 KB
/
account.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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
<!DOCTYPE html>
<html>
<head>
<title>Binary Games by JCK</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, user-scalable=no"
/>
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/account.css" />
<link rel="stylesheet" href="assets/css/showHideIcons.css" />
<noscript
><link rel="stylesheet" href="assets/css/noscript.css"
/></noscript>
</head>
<body class="is-preload" onload="displayInfo()">
<div id="wrapper">
<div
class="navContainer"
style="display: flex; justify-content: space-between"
>
<a
href="https://toby-leeder.github.io/binarygames-frontend/escaperoom.html/"
class="button"
style="margin: 2rem 0rem 0rem 0rem; font-size: 1rem"
onclick="localStorage.clear()"
>< <span style="font-size: 0.85rem">Log Out</span></a
>
<a
href="https://toby-leeder.github.io/binarygames-frontend/escaperoom.html/escaperoom.html"
class="button"
style="margin: 2rem 0rem 0rem 0rem; font-size: 1rem"
onclick=""
>Back to Room</a
>
</div>
<!-- Header -->
<header
id="header"
class="alt"
style="padding: 3rem 0rem 2rem 0rem"
>
<h1><strong>Binary Games</strong></h1>
<p>Account page</p>
</header>
<!-- Main -->
<div id="main">
<!-- First Section -->
<section id="first" class="main special">
<header class="major" style="width: 100%">
<h2>Account</h2>
<h3 id="usernameDisp">Username:</h3>
<h4 class="infoDisp" id="displayName">Loading...</h4>
<br />
<h3 id="usernameDisp">Best Time:</h3>
<h4 class="infoDisp" id="displayTime">Loading...</h4>
<br />
<a
class="button updaterBTN"
onclick=""
id="changeNameBTN"
>Change Name</a
>
<a
class="button updaterBTN"
onclick=""
id="changePwdBTN"
>Change Password</a
>
<a
class="button updaterBTN delAccBTN"
onclick=""
id="deleteAccBTN"
>Delete Account</a
>
<div id="blurryBoi" class="blur-container hidden"></div>
<div id="changeNameCont" class="popupCont hidden">
<ul class="features">
<li>
<h4>Enter Old Name:</h4>
<input id="inpUsrnmOld" type="username" />
<h4>Enter New Name:</h4>
<input id="inpUsrnmNew" type="username" />
<h4>Enter your password:</h4>
<div id="passwordCont">
<input id="inpPswd1" type="password" />
<div class="visCont">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="vis"
id="iconVis"
>
<path
id="visIcon1"
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
/>
</svg>
</div>
</div>
<p
id="message1"
class="message"
style="color: red"
></p>
<a
class="button"
style="margin: 1rem 0 1rem 0"
onclick="updateName()"
>Update</a
>
<a
class="button"
style="
margin: 1rem 0 1rem 0;
font-size: 0.9rem;
display: block;
width: 40%;
margin: 1rem auto;
"
onclick=""
id="cancel1"
>Cancel</a
>
</li>
</ul>
</div>
<div id="changePwdCont" class="popupCont hidden">
<ul class="features">
<li>
<h4>Enter username:</h4>
<input id="inpUsrnm-pswd" type="username" />
<h4>Enter old password:</h4>
<div id="passwordCont">
<input id="inpPswd4" type="password" />
<div class="visCont">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="vis"
id="iconVis4"
>
<path
id="visIcon4"
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
/>
</svg>
</div>
</div>
<h4>Enter new password:</h4>
<div id="passwordCont">
<input id="inpPswd2" type="password" />
<div class="visCont">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="vis"
id="iconVis2"
>
<path
id="visIcon2"
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
/>
</svg>
</div>
</div>
<h4>Confirm new password:</h4>
<div id="passwordCont">
<input id="inpPswd3" type="password" />
<div class="visCont">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="vis"
id="iconVis3"
>
<path
id="visIcon3"
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
/>
</svg>
</div>
</div>
<p
id="message2"
class="message"
style="color: red"
></p>
<a
class="button"
style="margin: 1rem 0 1rem 0"
onclick="updatePwd()"
>Update</a
>
<a
class="button"
style="
margin: 1rem 0 1rem 0;
font-size: 0.9rem;
display: block;
width: 40%;
margin: 1rem auto;
"
onclick=""
id="cancel2"
>Cancel</a
>
</li>
</ul>
</div>
<div id="deleteAccCont" class="popupCont hidden">
<ul class="features">
<li>
<h4>Enter username:</h4>
<input id="inpUsrnm-del" type="username" />
<h4>Enter password:</h4>
<div id="passwordCont">
<input id="inpPswd5" type="password" />
<div class="visCont">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512"
class="vis"
id="iconVis5"
>
<path
id="visIcon5"
d="M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zm151 118.3C226 97.7 269.5 80 320 80c65.2 0 118.8 29.6 159.9 67.7C518.4 183.5 545 226 558.6 256c-12.6 28-36.6 66.8-70.9 100.9l-53.8-42.2c9.1-17.6 14.2-37.5 14.2-58.7c0-70.7-57.3-128-128-128c-32.2 0-61.7 11.9-84.2 31.5l-46.1-36.1zM394.9 284.2l-81.5-63.9c4.2-8.5 6.6-18.2 6.6-28.3c0-5.5-.7-10.9-2-16c.7 0 1.3 0 2 0c44.2 0 80 35.8 80 80c0 9.9-1.8 19.4-5.1 28.2zm9.4 130.3C378.8 425.4 350.7 432 320 432c-65.2 0-118.8-29.6-159.9-67.7C121.6 328.5 95 286 81.4 256c8.3-18.4 21.5-41.5 39.4-64.8L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5l-41.9-33zM192 256c0 70.7 57.3 128 128 128c13.3 0 26.1-2 38.2-5.8L302 334c-23.5-5.4-43.1-21.2-53.7-42.3l-56.1-44.2c-.2 2.8-.3 5.6-.3 8.5z"
/>
</svg>
</div>
</div>
<br />
<p class="warningText">
WARNING: You are about to permanently
delete your account and all data stored
within it. This is an irreversible
action.
</p>
<p
id="message3"
class="message"
style="color: red"
></p>
<a
class="button delAccBTN"
style="margin: 1rem 0 1rem 0"
onclick="delAcc()"
>Delete</a
>
<a
class="button"
style="
margin: 1rem 0 1rem 0;
font-size: 0.9rem;
display: block;
width: 40%;
margin: 1rem auto;
"
onclick=""
id="cancel3"
>Cancel</a
>
</li>
</ul>
</div>
</header>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<header
id="header"
class="alt"
style="margin: 0px; padding: 0px"
>
<span
class="logo"
style="
width: 100%;
padding-bottom: 20px;
margin: 40px auto;
"
><img
src="https://user-images.githubusercontent.com/111464932/233187334-7ad51d02-50ad-46cc-b634-aa8359a152b3.png"
alt=""
style="width: 175px"
/></span>
</header>
<section>
<h2>Created by Team JCK</h2>
<p>
2022-2023 Trimester 3 final project. <br /><br />
Contributors: <br />
Aiden Huynh, Toby Leeder, Azeem Khan, Dash Penning, Ekam
Kaire, Nathan Capule, Colin Mills, Ishi Singh.
</p>
<div
class="navContainer"
style="
display: flex;
justify-content: center;
margin: 0.75rem 0rem 0rem 0rem;
"
>
<a
href="http://scrum.binarygames.tech/"
class="button"
style="
margin: 0rem 2rem 0rem 0rem;
font-size: 0.75rem;
"
onclick=""
target="_blank"
>Scrum Board</a
>
<a
href="http://calendar.binarygames.tech"
class="button"
style="
margin: 0rem 0rem 2rem 0rem;
font-size: 0.75rem;
"
onclick=""
target="_blank"
>Calendar</a
>
</div>
<ul class="icons">
<li>
<a
href="https://github.com/toby-leeder/binarygames-frontend"
class="icon brands fa-github alt"
target="_blank"
><span class="label">GitHub</span></a
>
</li>
</ul>
</section>
<p class="copyright">
Binary Games™ by JCK. Original template by:
<a href="https://html5up.net">HTML5 UP</a>.
</p>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/account.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="assets/js/stopCheating.js"></script>
</body>
</html>