-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
500 lines (446 loc) · 21.6 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
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
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<!DOCTYPE html>
<!-- saved from url=(0026)https://onlyfake.org/login -->
<html class="default" lang="en">
<div id="in-page-channel-node-id" data-channel-name="in_page_channel_iiWeTh"></div>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="yKBH2JOL1G8BtKW46nnAMfG8y7LnjJ7FHq9R7cA6">
<title>
Login | Document Templates Generator
</title>
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="icon" type="image/svg+xml" href="https://onlyfake.org/assets/css/mainpage/favicon.svg">
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
</style>
<link href="./login_files/select2.min.css" rel="stylesheet">
<link rel="preload" as="style" href="./login_files/app-c8823e58.css">
<link rel="stylesheet" href="./login_files/app-c8823e58.css">
<style>
body {
font-family: montserrat, sans-serif !important;
}
@font-face {
font-family: montserrat;
src: url(/font/Montserrat-Regular.eot);
src: url(/font/Montserrat-Regular.eot?#iefix) format('embedded-opentype'), url(/font/Montserrat-Regular.woff) format('woff'), url(/font/Montserrat-Regular.ttf) format('truetype');
font-weight: 400;
font-style: normal
}
@font-face {
font-family: montserrat;
src: url(/font/Montserrat-Medium.eot);
src: url(/font/Montserrat-Medium.eot?#iefix) format('embedded-opentype'), url(/font/Montserrat-Medium.woff) format('woff'), url(/font/Montserrat-Medium.ttf) format('truetype');
font-weight: 500;
font-style: normal
}
@font-face {
font-family: montserrat;
src: url(/font/Montserrat-SemiBold.eot);
src: url(/font/Montserrat-SemiBold.eot?#iefix) format('embedded-opentype'), url(/font/Montserrat-SemiBold.woff) format('woff'), url(/font/Montserrat-SemiBold.ttf) format('truetype');
font-weight: 600;
font-style: normal
}
@font-face {
font-family: montserrat;
src: url(/font/Montserrat-Bold.eot);
src: url(/font/Montserrat-Bold.eot?#iefix) format('embedded-opentype'), url(/font/Montserrat-Bold.woff) format('woff'), url(/font/Montserrat-Bold.ttf) format('truetype');
font-weight: 700;
font-style: normal
}
</style>
<style>
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTucXtAKPY.woff2) format('woff2');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTufntAKPY.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTucHtA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins light */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 300;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Light.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins regular */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins thin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Thin.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins medium */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Medium.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins semi bold */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins bold */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 700;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Bold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
</style>
</head>
<body class="font-sans text-gray-900 antialiased"
style="background-image: url(../../newBarLogin/svg/back.png)!important;">
<div class="min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-900"
style="background-image: url(../../newBarLogin/svg/back.png)!important;">
<div class="wrapper1" style="box-sizing: border-box !important;
padding: 20px 15px 40px 15px !important;
width: 447px !important;
height: 38px !important;
background: #252b33!important;
border: 2px solid #4ECCA3 !important;
box-shadow: -10px -13px 27px -6px rgba(92, 92, 92, 0.25), 8px 11px 15px -2px rgba(0, 0, 0, 0.25) !important;
backdrop-filter: blur(15px) !important;
/* border-radius: 26px !important; */
border-radius: .5rem;
font-size: 21px;
font-weight: bolder;max-width:100%!important;">
<div
style="margin-bottom:10px;text-align:center;color: #4ECCA3;text-shadow: 0px 4px 15px rgba(78, 204, 163, 0.8);margin-top: -3px !important;user-select: none;"
class="text-center mt-4 name">
GENERATOR 3.0
</div>
</div>
<div
class="wrapper w-full sm:max-w-md mt-6 px-6 py-4 bg-white dark:bg-gray-800 shadow-md overflow-hidden sm:rounded-lg"
style="box-sizing: border-box !important;
padding: 20px 15px 40px 15px !important;
background: #252b33!important;
border: 2px solid #4ECCA3 !important;
box-shadow: -10px -13px 27px -6px rgba(92, 92, 92, 0.25), 8px 11px 15px -2px rgba(0, 0, 0, 0.25) !important;
backdrop-filter: blur(15px) !important;
border-radius: .5rem;
font-size: 21px;
font-weight: bolder;">
<form id="login-form">
<div>
<label class="block font-medium text-sm text-gray-700 dark:text-gray-300" style="color: white;
font-family: montserrat,sans-serif;
font-weight: 600;
font-size: 0.9rem;
;" for="name">
Login or Email
</label>
<input
class="border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm block mt-1 w-full"
style="color: #eee;
font-weight: 600;
font-size: 16px;
background: 0 0;
border-radius: 10px;
background: #232931;
background-color: rgb(35, 41, 49);
border: 2px solid #4ecca3;
border-top-color: rgb(78, 204, 163);
border-right-color: rgb(78, 204, 163);
border-bottom-color: rgb(78, 204, 163);
border-left-color: rgb(78, 204, 163);
border-top-color: rgb(78, 204, 163);
border-right-color: rgb(78, 204, 163);
border-bottom-color: rgb(78, 204, 163);
border-left-color: rgb(78, 204, 163);
background-color: #232931;
border-color: #4ecca3;" id="username" type="text" name="username" required="required" autofocus="autofocus"
autocomplete="username">
</div>
<div class="mt-4">
<label class="block font-medium text-sm text-gray-700 dark:text-gray-300" style="color: white;
font-family: montserrat,sans-serif;
font-weight: 600;
font-size: 0.9rem;
;" for="password">
Password
</label>
<input
class="border-gray-300 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 focus:border-indigo-500 dark:focus:border-indigo-600 focus:ring-indigo-500 dark:focus:ring-indigo-600 rounded-md shadow-sm block mt-1 w-full"
style="color: #eee;
font-weight: 600;
font-size: 16px;
background: 0 0;
border-radius: 10px;
background: #232931;
background-color: rgb(35, 41, 49);
border: 2px solid #4ecca3;
border-top-color: rgb(78, 204, 163);
border-right-color: rgb(78, 204, 163);
border-bottom-color: rgb(78, 204, 163);
border-left-color: rgb(78, 204, 163);
border-top-color: rgb(78, 204, 163);
border-right-color: rgb(78, 204, 163);
border-bottom-color: rgb(78, 204, 163);
border-left-color: rgb(78, 204, 163);
background-color: #232931;
border-color: #4ecca3;" id="password" type="password" name="password" required="required"
autocomplete="current-password">
</div>
<div class="block mt-4">
<label for="remember_me" class="inline-flex items-center">
<input id="remember_me" type="checkbox"
class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800"
name="remember">
<span class="ms-2 text-sm text-gray-600 dark:text-gray-400" style="color: white;
font-family: montserrat,sans-serif;
font-weight: 600;
font-size: 0.9rem;">Remember me</span>
</label>
<a style="float: right;
margin-top: 4.8px;color: white;
font-family: montserrat,sans-serif;
font-weight: 600;
font-size: 0.9rem;"
class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800"
href="https://onlyfake.org/register">
Haven't registered yet?
</a>
</div>
<div class="flex items-center justify-end mt-4">
<a style="color: white;
font-family: montserrat,sans-serif;
font-weight: 600;
font-size: 0.9rem;"
class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800"
href="https://onlyfake.org/forgot-password">
Forgot your password?
</a>
<button type="submit"
class="inline-flex items-center px-4 py-2 bg-gray-800 dark:bg-gray-200 border border-transparent rounded-md font-semibold text-xs text-white dark:text-gray-800 uppercase tracking-widest hover:bg-gray-700 dark:hover:bg-white focus:bg-gray-700 dark:focus:bg-white active:bg-gray-900 dark:active:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800 transition ease-in-out duration-150 ms-3"
style="background: #4ecca3;">
Log in
</button>
</div>
</form>
<!-- Error Message -->
<div id="error-message" style="color: red; font-weight: bold; margin-top: 10px; display: none;"></div>
</div>
</div>
<div id="fs_div_all" style="all:initial;"><template shadowrootmode="open">
<div class="mainExtCont"
style="position:fixed; top:20px;right:20px; z-index:2147483647;box-shadow: 1px -1px 17px #888888;border-radius:10px;">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap"
rel="stylesheet">
<div class="mainExtSubCont"></div>
</div>
<div class="extOtherPopups"></div>
<style>
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTucXtAKPY.woff2) format('woff2');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTufntAKPY.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiGyp8kv8JHgFVrLPTucHtA.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins light */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 300;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Light.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins regular */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins thin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 100;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Thin.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins medium */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 500;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Medium.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins semi bold */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* poppins bold */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 700;
src: url(chrome-extension://dgejbgnnbfnaleggmgdmmdkklpgfkcdp/assets/poppins/Poppins-Bold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.extOtherPopups {
margin: 0;
padding: 0;
position: fixed;
top: 240px;
right: 0;
z-index: 2147483647;
}
[event_type="click"] {
cursor: pointer;
}
</style>
</template></div>
<!-- Client-side JavaScript -->
<script>
const loginForm = document.getElementById('login-form');
loginForm.addEventListener('submit', async function (event) {
event.preventDefault(); // Prevent form submission
const username = document.getElementById('username').value;
const password = document.getElementById('password').value;
try {
// Fetch the user data from user_data.json
const response = await fetch('user_data.json');
const data = await response.json();
// Find the user in the JSON data
const user = data.users.find(u => u.username === username && u.password === password);
if (user) {
const token = generateToken(); // Generate token after successful login
// Store the token in localStorage
localStorage.setItem('authToken', token);
// Redirect to home page
window.location.href = 'home.html';
} else {
show('Oops', 'Invalid username or password.', 'error');
}
} catch (error) {
show('Oops', 'Error occurred while logging in.', 'error');
}
});
// Simple token generator (for demonstration purposes)
function generateToken() {
return Math.random().toString(36).substr(2); // Random string as token
}
function show(title, text, icon) {
Swal.fire({
title,
text,
icon,
});
}
</script>
</body>
</html>