-
Notifications
You must be signed in to change notification settings - Fork 7
/
signup.html
executable file
·314 lines (314 loc) · 25.7 KB
/
signup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sign up</title>
<style>
@import url("https://fonts.googleapis.com/css?family=Ubuntu:700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Ubuntu", Arial, sans-serif;
text-decoration: none;
}
.form {
width: 1000px;
height: 600px;
margin: 50px auto;
padding: 45px 65px;
box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1), 0 1px 10px rgba(0, 0, 0, 0.3);
}
.form__box {
width: 100%;
height: 100%;
display: flex;
justify-content: space-around;
align-items: center;
background: #fff;
border-radius: 40px;
}
.form__left {
width: 50%;
}
.form__padding {
width: 210px;
height: 210px;
background: #f2f2f2;
border-radius: 50%;
margin: 0 auto;
line-height: 210px;
position: relative;
}
.form__image {
max-width: 100%;
width: 60%;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.form__right {
line-height: 26px;
width: 50%;
}
.form__padding-right {
padding: 0 25px;
}
.form__title {
font-size: 18px;
font-weight: bold;
text-align: center;
margin-bottom: 30px;
}
.form__submit-btn {
background: #333;
color: #fff;
cursor: pointer;
transition: background .5s;
}
.form__submit-btn:hover {
background: #555;
}
.form__email {
position: relative;
}
input {
display: block;
width: 100%;
margin-bottom: 25px;
height: 35px;
border-radius: 20px;
border: none;
background: #f2f2f2;
padding: 10px;
font-size: 14px;
position: relative;
}
input:after {
position: absolute;
}
a {
color: #333;
}
a:hover {
text-decoration: underline;
}
.swal-overlay {
z-index: 99999999999999 !important;
}
[class^="swal"] {
animation: none !important;
transition: none !important;
}
.swal-button {
background: #333 !important;
color: #fff;
border-radius: 2px;
box-shadow: none !important;
}
.swal-modal {
border-radius: 1px;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.24) !important;
}
.swal-overlay {
background: rgba(10, 10, 10, .3);
}
.swal-content__input {
border: 1px solid #333 !important;
outline: none;
}
.g-recaptcha > div {
transform: scale(.98);
}
</style>
<script src="https://www.google.com/recaptcha/api.js?onload=onReady"></script>
<!-- Google analytics -->
<script src="js/analytics.js"></script>
</head>
<script src="js/user/user.js"></script>
<script src="js/user/InfoVerifier.js"></script>
<script src="js/simplemailer.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script src="js/GamepadMenuControls.js"></script>
<script src="https://cdn.jsdelivr.net/gh/TSedlar/pseudo-styler@1.0.7/pseudostyler.js"></script>
<script src="https://cdn.jsdelivr.net/npm/simple-keyboard@latest/build/index.js"></script>
<body>
<div class="form">
<div class="form__box">
<div class="form__left">
<div class="form__padding">
<img class="form__image" src="images/html/mastery.png">
</div>
</div>
<div class="form__right">
<div class="form__padding-right">
<form onsubmit="event.preventDefault()">
<h1 class="form__title">Member Signup</h1>
<input class="form__email" type="text" placeholder="Email">
<input class="form__username" type="text" placeholder="Username">
<input class="form__password" type="text" placeholder="Password">
<div class="g-recaptcha" data-theme="light" data-sitekey="6LfBoIgkAAAAAOAb7YAlLXiaEPVGp0HvD4upxtqN" style="height: 100px !important; overflow: hidden; display: inline-block"></div>
<input class="form__submit-btn" type="submit" value="Submit">
</form>
<p><a class="form__link" href="login.html">Already have an account?</a></p>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/gh/notiflix/Notiflix@latest/dist/notiflix-aio-3.2.7.min.js"></script>
<script>
function onReady() {
if (document.getElementsByClassName("g-recaptcha").length > 0) {
let parentWidth = document.getElementsByClassName("g-recaptcha")[0].parentNode.clientWidth;
let childWidth = document.getElementsByClassName("g-recaptcha")[0].firstChild.clientWidth;
let scale = parentWidth / childWidth;
let new_width = childWidth * scale;
document.getElementsByClassName("g-recaptcha")[0].style.transform = "scale(" + scale + ")";
document.getElementsByClassName("g-recaptcha")[0].style.transformOrigin = "0 0";
}
}
(function() {
function uuidv4() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
}
window.addEventListener("load", () => {
if (new URLSearchParams(location.search).get("id") && new URLSearchParams(location.search).get("e") && new URLSearchParams(location.search).get("p") && new URLSearchParams(location.search).get("u")) {
let id = new URLSearchParams(location.search).get("id");
let email = atob(new URLSearchParams(location.search).get("e"));
let username = atob(new URLSearchParams(location.search).get("u"));
let password = atob(new URLSearchParams(location.search).get("p"));
let id1 = localStorage["verify-id"];
let email1 = atob(localStorage["verify-email"]);
let username1 = atob(localStorage["verify-username"]);
let password1 = atob(localStorage["verify-password"]);
if (email == email1 && password == password1 && username == username1 && id == id1) {
Notiflix.Block.hourglass("form", "Verifying...");
userMan.signUp(username, password, {
"key": uuidv4(),
"username": username,
"tuser": username,
"performance": true,
"email": email,
"tpass": password,
"temail": email,
"emails": 1,
"friends": [],
"picture": "https://cdn.jsdelivr.net/gh/Parking-Master/Parking-Master@latest/img/profile-picture.png",
"metadata": {
"points": 0,
"preferences": {
"theme": "Default",
"loadout": "Assault_Rifle-Glock_19",
"character": "Steve",
"bot": "Default",
"items": [
"Theme.Default",
"Character.Steve",
"Loadout.Assault_Rifle-Glock_19",
"Ammo.Heavy",
"Ammo.Sniper"
]
},
"history": {
"medals": [],
"kills": 0
},
"rewards": [
{
"title": "Sign up reward",
"description": "You've earned your first reward for signing up!",
"gift": {
"type": "points",
"item": "",
"value": 150
}
}
]
},
"mail": [
{
"sender": "System",
"message": "Welcome to FPS3! we are excited to show you the future of web gaming. Click \"Help\" to learn more about how to use things. Enjoy!"
}
],
"bio": "No information available for this user."
}, () => {
document.querySelector(".notiflix-block-message").textContent = "Success!";
localStorage.setItem("credentials", btoa(encodeURIComponent(username)) + ":" + btoa(encodeURIComponent(password)));
localStorage.removeItem("verify-id");
localStorage.removeItem("verify-email");
localStorage.removeItem("verify-username");
localStorage.removeItem("verify-password");
setTimeout(() => location.replace("login.html"), 1500);
}, (e) => {
Notiflix.Block.hourglass("form", "Verifying...");
document.querySelector(".notiflix-block-message").textContent = e;
setTimeout(() => Notiflix.Block.remove("form"), 1500);
});
}
}
});
const i = (e) => {
if (e.target == document.querySelector(".form__submit-btn")) {
Notiflix.Block.hourglass("form", "Verifying...");
InfoVerifier("username", document.querySelector(".form__username").value, (e) => (document.querySelector(".notiflix-block-message").textContent = e, setTimeout(() => Notiflix.Block.remove("form"), 1500)), () => {
InfoVerifier("password", document.querySelector(".form__password").value, (e) => (document.querySelector(".notiflix-block-message").textContent = e, setTimeout(() => Notiflix.Block.remove("form"), 1500)), () => {
if (!grecaptcha || !(grecaptcha.getResponse().length > 0)) return (Notiflix.Block.remove("form"), swal("Please verify the captcha"));
document.querySelector(".notiflix-block-message").textContent = "Success! Look for a verification email in your inbox.";
let id1 = btoa(Math.random().toString() + Math.random().toString());
let email1 = btoa(document.querySelector(".form__email").value);
let username1 = btoa(document.querySelector(".form__username").value);
let password1 = btoa(document.querySelector(".form__password").value);
let link = (location.protocol + "//" + location.host + location.pathname) + `?e=${email1}&u=${username1}&p=${password1}&id=${id1}`;
localStorage.setItem("verify-id", id1);
localStorage.setItem("verify-email", email1);
localStorage.setItem("verify-username", username1);
localStorage.setItem("verify-password", password1);
email(document.querySelector(".form__email").value, "FPS Account Verification", "Please verify your email to finish signup.", `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" style="font-family:arial, 'helvetica neue', helvetica, sans-serif"><head><meta charset="UTF-8"><meta content="width=device-width, initial-scale=1" name="viewport"><meta name="x-apple-disable-message-reformatting"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="telephone=no" name="format-detection"><title>New Template 2</title><!--[if (mso 16)]><style type="text/css"> a {text-decoration: none;} </style><![endif]--><!--[if gte mso 9]><style>sup { font-size: 100% !important; }</style><![endif]--><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG></o:AllowPNG> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--><style type="text/css">#outlook a { padding:0;}.es-button { mso-style-priority:100!important; text-decoration:none!important;}a[x-apple-data-detectors] { color:inherit!important; text-decoration:none!important; font-size:inherit!important; font-family:inherit!important; font-weight:inherit!important; line-height:inherit!important;}.es-desk-hidden { display:none; float:left; overflow:hidden; width:0; max-height:0; line-height:0; mso-hide:all;}[data-ogsb] .es-button { border-width:0!important; padding:10px 20px 10px 20px!important;}.es-button-border:hover a.es-button, .es-button-border:hover button.es-button { background:#56d66b!important; border-color:#56d66b!important;}.es-button-border:hover { border-color:#42d159 #42d159 #42d159 #42d159!important; background:#56d66b!important;}td .es-button-border-1:hover { border-style:solid solid solid solid!important; background:#333333!important; border-color:#4c4c4c #4c4c4c #4c4c4c #4c4c4c!important;}td .es-button-border:hover a.es-button-2 { background:#333333!important; border-color:#333333!important;}@media only screen and (max-width:600px) {p, ul li, ol li, a { line-height:150%!important } h1, h2, h3, h1 a, h2 a, h3 a { line-height:120% } h1 { font-size:30px!important; text-align:left } h2 { font-size:24px!important; text-align:left } h3 { font-size:20px!important; text-align:left } .es-header-body h1 a, .es-content-body h1 a, .es-footer-body h1 a { font-size:30px!important; text-align:left } .es-header-body h2 a, .es-content-body h2 a, .es-footer-body h2 a { font-size:24px!important; text-align:left } .es-header-body h3 a, .es-content-body h3 a, .es-footer-body h3 a { font-size:20px!important; text-align:left } .es-menu td a { font-size:14px!important } .es-header-body p, .es-header-body ul li, .es-header-body ol li, .es-header-body a { font-size:14px!important } .es-content-body p, .es-content-body ul li, .es-content-body ol li, .es-content-body a { font-size:14px!important } .es-footer-body p, .es-footer-body ul li, .es-footer-body ol li, .es-footer-body a { font-size:14px!important } .es-infoblock p, .es-infoblock ul li, .es-infoblock ol li, .es-infoblock a { font-size:12px!important } *[class="gmail-fix"] { display:none!important } .es-m-txt-c, .es-m-txt-c h1, .es-m-txt-c h2, .es-m-txt-c h3 { text-align:center!important } .es-m-txt-r, .es-m-txt-r h1, .es-m-txt-r h2, .es-m-txt-r h3 { text-align:right!important } .es-m-txt-l, .es-m-txt-l h1, .es-m-txt-l h2, .es-m-txt-l h3 { text-align:left!important } .es-m-txt-r img, .es-m-txt-c img, .es-m-txt-l img { display:inline!important } .es-button-border { display:inline-block!important } a.es-button, button.es-button { font-size:18px!important; display:inline-block!important } .es-adaptive table, .es-left, .es-right { width:100%!important } .es-content table, .es-header table, .es-footer table, .es-content, .es-footer, .es-header { width:100%!important; max-width:600px!important } .es-adapt-td { display:block!important; width:100%!important } .adapt-img { width:100%!important; height:auto!important } .es-m-p0 { padding:0px!important } .es-m-p0r { padding-right:0px!important } .es-m-p0l { padding-left:0px!important } .es-m-p0t { padding-top:0px!important } .es-m-p0b { padding-bottom:0!important } .es-m-p20b { padding-bottom:20px!important } .es-mobile-hidden, .es-hidden { display:none!important } tr.es-desk-hidden, td.es-desk-hidden, table.es-desk-hidden { width:auto!important; overflow:visible!important; float:none!important; max-height:inherit!important; line-height:inherit!important } tr.es-desk-hidden { display:table-row!important } table.es-desk-hidden { display:table!important } td.es-desk-menu-hidden { display:table-cell!important } .es-menu td { width:1%!important } table.es-table-not-adapt, .esd-block-html table { width:auto!important } table.es-social { display:inline-block!important } table.es-social td { display:inline-block!important } .es-desk-hidden { display:table-row!important; width:auto!important; overflow:visible!important; max-height:inherit!important } .h-auto { height:auto!important } }</style></head>
<body style="width:100%;font-family:arial, 'helvetica neue', helvetica, sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;padding:0;Margin:0"><div class="es-wrapper-color" style="background-color:#F6F6F6"><!--[if gte mso 9]><v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t"> <v:fill type="tile" color="#f6f6f6"></v:fill> </v:background><![endif]--><table class="es-wrapper" width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;padding:0;Margin:0;width:100%;height:100%;background-repeat:repeat;background-position:center top;background-color:#F6F6F6"><tr><td valign="top" style="padding:0;Margin:0"><table class="es-header" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top"><tr><td align="center" style="padding:0;Margin:0"><table class="es-header-body" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:600px"><tr><td align="left" style="Margin:0;padding-top:20px;padding-bottom:20px;padding-left:20px;padding-right:20px"><div style="position:relative;height:20px;background:#333;margin:0 !important;left:0;top:0;right:0;width:100%"></div><!--[if mso]><table style="width:560px" cellpadding="0" cellspacing="0"><tr><td style="width:270px" valign="top"><![endif]--><table class="es-left" cellspacing="0" cellpadding="0" align="left" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left"><tr><td class="es-m-p20b" align="left" style="padding:0;Margin:0;width:270px"><table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td style="padding:0;Margin:0;font-size:0px" align="center"><img class="adapt-img" src="https://unnqda.stripocdn.email/content/guids/CABINET_05009065b44b7d3e3cc9f06b19b9b2755fe0738de16ae781563ac51b9185ae9a/images/mastery.png" alt style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic" width="270"></td>
</tr></table></td></tr></table><!--[if mso]></td><td style="width:20px"></td><td style="width:270px" valign="top"><![endif]--><table class="es-right" cellspacing="0" cellpadding="0" align="right" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right"><tr><td align="left" style="padding:0;Margin:0;width:270px"><table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td class="h-auto" height="200" align="center" style="padding:0;Margin:0"><h1 style="Margin:0;line-height:200%;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;font-size:5em;font-style:normal;font-weight:bold;color:#333333;text-decoration:underline;text-align:center">FPS 3</h1>
<p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;line-height:21px;color:#333333;font-size:14px">Verify your email</p></td></tr></table></td></tr></table><!--[if mso]></td></tr></table><![endif]--></td></tr></table></td>
</tr></table><table class="es-content" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%"><tr><td align="center" style="padding:0;Margin:0"><table class="es-content-body" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:600px"><tr><td align="left" style="padding:0;Margin:0;padding-top:20px;padding-left:20px;padding-right:20px"><table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td valign="top" align="center" style="padding:0;Margin:0;width:560px"><table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td class="h-auto" valign="top" height="75" align="center" style="padding:0;Margin:0"><!--[if mso]><a href="${link}" target="_blank" hidden> <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" esdevVmlButton href="${link}" style="height:41px; v-text-anchor:middle; width:140px" arcsize="24%" strokecolor="#333333" strokeweight="3px" fillcolor="#535353"> <w:anchorlock></w:anchorlock> <center style='color:#ffffff; font-family:arial, "helvetica neue", helvetica, sans-serif; font-size:15px; font-weight:400; line-height:15px; mso-text-raise:1px'>Verify email</center> </v:roundrect></a><![endif]--><!--[if !mso]><!-- --><span class="msohide es-button-border-1 es-button-border" style="border-style:solid;border-color:#333333;background:#535353;border-width:3px;display:inline-block;border-radius:10px;width:auto;mso-hide:all"><a href="${link}" class="es-button msohide es-button-2" target="_blank" style="mso-style-priority:100 !important;text-decoration:none;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;color:#FFFFFF;font-size:18px;border-style:solid;border-color:#535353;border-width:10px 20px 10px 20px;display:inline-block;background:#535353;border-radius:10px;font-family:arial, 'helvetica neue', helvetica, sans-serif;font-weight:normal;font-style:normal;line-height:22px;width:auto;text-align:center;mso-hide:all">Verify email</a></span><!--<![endif]--></td>
</tr></table></td></tr></table></td></tr></table></td>
</tr></table><table class="es-footer" cellspacing="0" cellpadding="0" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;table-layout:fixed !important;width:100%;background-color:transparent;background-repeat:repeat;background-position:center top"><tr><td align="center" style="padding:0;Margin:0"><table class="es-footer-body" cellspacing="0" cellpadding="0" bgcolor="#ffffff" align="center" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;background-color:#FFFFFF;width:600px"><tr><td align="left" style="Margin:0;padding-top:20px;padding-bottom:20px;padding-left:20px;padding-right:20px"><!--[if mso]><table style="width:560px" cellpadding="0" cellspacing="0"><tr><td style="width:270px" valign="top"><![endif]--><table class="es-left" cellspacing="0" cellpadding="0" align="left" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left"><tr><td class="es-m-p20b" align="left" style="padding:0;Margin:0;width:270px"><table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="left" style="padding:0;Margin:0"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;line-height:21px;color:#333333;font-size:14px">If this user was not you or you accidentally sent this email, ignore/delete it.<br></p>
</td></tr></table></td></tr></table><!--[if mso]></td><td style="width:20px"></td><td style="width:270px" valign="top"><![endif]--><table class="es-right" cellspacing="0" cellpadding="0" align="right" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right"><tr><td align="left" style="padding:0;Margin:0;width:270px"><table width="100%" cellspacing="0" cellpadding="0" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"><tr><td align="right" style="padding:0;Margin:0"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:arial, 'helvetica neue', helvetica, sans-serif;line-height:28px;color:#999999;font-size:14px;font-style:italic">©2021-2023 Parking Master</p></td></tr></table></td></tr></table><!--[if mso]></td></tr></table><![endif]--></td></tr></table></td>
</tr></table></td></tr></table></div></body></html>
`);
});
});
}
};
document.body.addEventListener("click", (e) => {
i(e);
});
})();
window.addEventListener("load", () => {
// Gamepad setup
GamepadControls = new GamepadMenuControls([], false, true);
GamepadControls.action = function(type, element) {
if (type == "click") {
if (element.textContent.trim().toLowerCase().includes("play")) {
if (element.previousElementSibling.style.visibility != "visible") {
GamepadControls.elements.splice(GamepadControls.elements.indexOf(".holder"), 1);
GamepadControls.elements.splice(GamepadControls.elements.indexOf(".mini-button"), 1);
GamepadControls.update();
GamepadControls.focus = 0;
return;
}
document.querySelector(".holder").onclick = function() {
document.querySelectorAll(".arrow-holder")[1].click();
};
GamepadControls.elements.splice(1, 0, ".holder");
GamepadControls.elements.splice(2, 0, ".mini-button");
GamepadControls.update();
GamepadControls.focus = 4;
}
}
}
});
</script>
<div class="simple-keyboard"></div>
</body>
</html>