forked from vimistify/AmbuFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeedback.html
872 lines (739 loc) · 24.5 KB
/
Feedback.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
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
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Feedback - AmbuFlow</title>
<link rel="stylesheet" href="preloaderStyle.css">
<link rel="stylesheet" href="src/css/index.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<div class="gtranslate_wrapper"></div>
<script>window.gtranslateSettings = {"default_language":"en","detect_browser_language":true,"wrapper_selector":".gtranslate_wrapper"}</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<style>
body {
font-family: "Poppins", sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
color: #333;
display: flex;
flex-direction: column;
min-height: 100vh;
}
/* font size of button */
.buttons .login,
.buttons .get-started,
.dark-mode-toggle {
font-size: 18px;
/* Increase font size */
padding: 10px 15px;
/* Adjust padding for better appearance */
}
/* dark mode toggle button styling */
body {
background-color: white;
/* Light mode background */
color: black;
transition: background-color 0.3s, color 0.3s;
}
.navbar {
background-color: lightblue;
/* Light mode navbar */
color: black;
padding: 10px;
}
ul li a:hover {
color: rgb(56, 56, 237) !important;
}
a:hover {
color: rgb(1, 4, 177) !important;
}
.navbar.dark-mode {
background-color: black;
/* Dark mode navbar */
color: white;
}
/* more addition for dark mode theme */
.dark-mode .logo img {
filter: brightness(0) invert(1);
/* Inverts the color to make it white */
}
/* dark mode hove effect on logo */
body.dark-mode #logo img:hover {
filter: brightness(0) invert(1);
/* Change black logo to white */
filter: brightness(0.8);
/* Change the brightness to light grey on hover */
}
.navbar.dark-mode .logo-img {
filter: brightness(0) invert(1);
/* Change logo color in dark mode */
}
.menu ul {
list-style-type: none;
padding: 0;
display: flex;
}
.menu li {
margin-right: 20px;
}
.menu a {
color: black;
/* Light mode link color */
border: 1px solid black;
/* Black border */
padding: 5px 10px;
text-decoration: none;
transition: all 0.3s;
}
.menu a:hover {
background-color: rgb(22, 160, 219);
/* Blue background on hover */
color: white;
/* White text on hover */
}
.dark-mode .menu a {
color: white;
/* Dark mode link color */
border: 1px solid lightgrey;
/* Light grey border in dark mode */
}
.dark-mode {
background-color: rgba(50, 50, 50, 0.95);
/* Slightly gray background with high opacity */
}
.dark-mode .menu a:hover {
background-color: white;
/* White background on hover in dark mode */
color: black;
/* Black text on hover in dark mode */
}
.light-dark-btn {
background-color: transparent;
border: 1px solid black;
/* Black border */
cursor: pointer;
color: black;
/* Default button color */
}
.light-dark-btn:hover {
color: blue;
/* Change color on hover */
}
.dark-mode .light-dark-btn {
color: white;
/* Button color in dark mode */
border: 1px solid lightgrey;
/* Light grey border */
}
.dark-mode .light-dark-btn:hover {
background-color: white;
/* Background on hover in dark mode */
color: black;
/* Text color on hover in dark mode */
}
.buttons {
display: flex;
align-items: center;
}
/* end */
/* adding dark mode for contact info */
.content {
transition: background-color 0.3s, color 0.3s;
/* Smooth transitions */
}
.dark-mode .content {
background-color: rgba(50, 50, 50, 0.95);
/* Match body background opacity */
padding: 20px;
/* Optional: add padding for better spacing */
}
/* end */
footer {
background-color: #C4D7FF;
color: white;
text-align: center;
padding: 10px 0;
position: relative;
bottom: 0;
width: 100%;
}
.content {
margin: 15px;
padding: 15px;
background-color: #fff;
border-radius: 5px;
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
text-align: center;
color: blue;
}
h2 {
text-align: center;
color: #2c3e50;
}
.star-rating {
display: flex;
justify-content: center;
margin-top: 10px;
flex-direction: row-reverse;
}
.star-rating input {
display: none;
/* Hide radio inputs */
}
.star-rating label {
font-size: 3.5rem;
/* Increased size for better visibility */
color: #ddd;
cursor: pointer;
transition: color 0.2s;
}
/* Color the stars based on the selected rating */
.star-rating input:checked~label {
color: #ffdd00;
/* Color for selected stars */
}
/* Color on hover */
.star-rating label:hover,
.star-rating label:hover~label {
color: #ffdd00;
/* Color on hover */
}
button {
padding: 10px 20px;
background-color: #ff5733;
color: white;
border: none;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
/* Smooth transition */
}
button:hover {
background-color: #e64a19;
}
textarea {
width: 100%;
/* Full width for better usability */
max-width: 500px;
/* Limiting max width */
padding: 10px;
margin-top: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
/* Added the hover animation on the footer social icons */
.social-icon {
transition: transform 0.3s ease;
/* Smooth transition effect */
}
.social-icon:hover {
transform: scale(1.3);
/* Scale the element to 1.3 times its size */
}
.fa-facebook:hover {
color: blue;
/* Icon color change to blue on hover */
}
.fa-x-twitter:hover {
color: black;
/* Icon color change to black on hover */
}
.fa-instagram:hover {
color: orangered;
/* Icon color change to orangered on hover */
}
.fa-linkedin-in:hover {
color: rgb(16, 13, 195);
/* Icon color change to rgb(16, 13, 195) on hover */
}
@keyframes logoAnimation {
0% {
opacity: 0;
transform: translateX(-100px);
/* Start from the left */
}
50% {
transform: translateX(10px);
/* Move slightly to the right */
}
100% {
opacity: 1;
transform: translateX(0);
/* End at original position */
}
}
/* Letter Drop Animation */
@keyframes letterDrop {
0% {
transform: translateY(-100%);
opacity: 0;
}
50% {
transform: translateY(10px);
/* Slight bounce */
opacity: 1;
}
100% {
transform: translateY(0);
}
}
.logo {
display: flex;
align-items: center;
animation: logoAnimation 1s ease forwards;
}
.brand-name {
display: flex;
flex-direction: row;
align-items: center;
margin-right: 10px;
/* Space between the text and the logo image */
}
.letter {
display: inline-block;
font-size: 2rem;
animation: letterDrop 0.5s ease forwards;
animation-delay: calc(var(--letter-index) * 0.1s);
}
.red {
color: red;
}
.social-icon {
transition: transform 0.3s ease;
/* Smooth transition effect */
}
.social-icon:hover {
transform: scale(1.3);
/* Scale the element to 1.2 times its size */
}
.fa-facebook:hover {
color: blue;
/* Scale the element to 1.2 times its size */
}
.fa-x-twitter:hover {
color: black;
/* Scale the element to 1.2 times its size */
}
.fa-instagram:hover {
color: orangered;
/* Scale the element to 1.2 times its size */
}
.fa-linkedin-in:hover {
color: rgb(16, 13, 195);
/* Scale the element to 1.2 times its size */
}
/* feedback form */
.feedback-box {
border: 1px solid #939aa1;
width: 40%;
min-width: 400px;
min-height: 350px;
border-radius: 15px;
background-color: #edf6ff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.feed-btn {
text-align: center;
margin-top: 2rem;
margin-bottom: 1rem;
font-weight: 600;
}
.feed-btn:hover {
transform: scale(1.03);
transition: all 0.3s ease;
}
.feed-msg {
border: none;
}
.feed-msg:focus {
outline: none;
}
.circle {
height: 35px;
width: 35px;
border-radius: 24px;
background-color: black;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 99999999;
}
#thank-you-message {
text-align: center;
display: none;
justify-content: center;
align-items: center;
border: 1px solid #939aa1;
width: 40%;
min-width: 400px;
min-height: 350px;
border-radius: 15px;
background-color: #edf6ff;
font-size: 2rem;
font-weight: 500;
color: green;
}
/* Add this new CSS for the cursor effect */
.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
.circle {
position: absolute;
width: 25px;
height: 25px;
border-radius: 50%;
pointer-events: none;
background: radial-gradient(circle, rgba(71, 240, 255, 0.3), rgba(0, 119, 255, 0.3));
transition: transform 0.1s, left 0.1s, top 0.1s;
}
#backToTopBtn {
display: none;
/* Hidden by default */
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color: #e81a1a;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 4px;
}
#backToTopBtn:hover {
background-color: #555;
}
.translate-btn {
background-color: #2980b9;
color: white;
border: none;
padding: 10px 15px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
.translate-btn:hover {
background-color: #3498db;
}
.g-translate-popup {
position: fixed;
top: 60px;
right: 20px;
background-color: white;
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
padding: 10px;
}
/* Adjust the header buttons to accommodate the new translate button */
.buttons {
display: flex;
align-items: center;
gap: 10px;
}
</style>
</head>
<header class="navbar">
<!-- preloader -->
<div id="preloader">
<div class="wrapper">
<div class="box-wrap">
<div class="box one"></div>
<div class="box two"></div>
<div class="box three"></div>
<div class="box four"></div>
<div class="box five"></div>
<div class="box six"></div>
</div>
</div>
</div>
<div class="container">
<div class="logo">
<div class="brand-name">
<span class="letter red" style="--letter-index: 1;">A</span>
<span class="letter red" style="--letter-index: 2;">m</span>
<span class="letter red" style="--letter-index: 3;">b</span>
<span class="letter red" style="--letter-index: 4;">u</span>
<span class="letter" style="--letter-index: 5;">F</span>
<span class="letter" style="--letter-index: 6;">l</span>
<span class="letter" style="--letter-index: 7;">o</span>
<span class="letter" style="--letter-index: 8;">w</span>
</div>
<a href="./index.html" >
<img src="images/logo2-w.webp" alt="Ambulance Monitoring System Logo" style="width: 50px; height: auto" />
</a>
</div>
<nav class="menu">
<ul>
<li><a href="index.html" id="home-link" onclick="changeContent('home')"><i class="fa-solid fa-house"></i>
Home</a></li>
<li><a href="features.html" id="features-link" onclick="changeContent('features')"><i
class="fa-solid fa-file"></i> Features</a></li>
<li><a href="team.html" id="team-link" onclick="changeContent('team')"><i class="fa-solid fa-user-group"></i>
Team</a></li>
<li><a href="contact.html" id="contact-link" onclick="changeContent('contact')"><i
class="fa-solid fa-phone"></i> Contact</a></li>
<li><a href="Feedback.html" id="Feedback-link" onclick="changeContent('Feedback')"><i
class="fa-solid fa-clipboard"></i> Feedback</a></li>
</ul>
</nav>
<div class="buttons">
<button id="translateBtn" class="translate-btn"><i class="fas fa-language"></i> Translate</button>
<button class="light-dark-btn dark-mode-toggle" id="dark-mode-toggle">
<i class="fa-solid fa-moon"></i>
</button>
<a href="login.html" class="login">Log in</a>
<a href="up.html" class="get-started">Get started</a>
</div>
</div>
</header>
<body>
<header>
<h1>AmbuFlow Feedback</h1>
</header>
<div class="content">
<h3>We Value Your Feedback</h3>
<div class="feedback-box">
<form id="feedback-box" action="#" method="post">
<div class="star-rating" aria-label="Rating" role="radiogroup">
<input type="radio" id="star5" name="rating" value="5" />
<label for="star5" title="5 stars">★</label>
<input type="radio" id="star4" name="rating" value="4" />
<label for="star4" title="4 stars">★</label>
<input type="radio" id="star3" name="rating" value="3" />
<label for="star3" title="3 stars">★</label>
<input type="radio" id="star2" name="rating" value="2" />
<label for="star2" title="2 stars">★</label>
<input type="radio" id="star1" name="rating" value="1" />
<label for="star1" title="1 star">★</label>
</div>
<textarea class="feed-msg" rows="7" cols="45" placeholder="Your Comments . . ." required></textarea><br />
<div class="feed-btn"><button style="border-radius: 10px;" type="submit">Submit Feedback</button></div>
</form>
</div>
<div id="thank-you-message" class="thank-feed">
Thank you for your response!
</div>
</div>
<footer style=" color: #f3f4f6; text-align: center; width: 100%;">
<div style="background-color: #C4D7FF; color: #f3f4f6; ">
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto;">
<!-- Quick Links Section -->
<div style="flex: 1; min-width: 200px; margin-bottom: 20px;">
<h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Quick Links</h3>
<ul style="list-style-type: none; padding: 0;">
<li><a href="about.html" style="color: #000000; text-decoration: none;">About Us</a></li>
<li><a href="contact.html" style="color: #000000; text-decoration: none;">Contact Us</a></li>
<li><a href="privacy.html" style="color: #000000; text-decoration: none;">Privacy Policy</a></li>
<li><a href="terms.html" style="color: #000000; text-decoration: none;">Terms of Service</a></li>
<li><a href="sitemap.html" style="color: #000000; text-decoration: none;">Site Map</a></li>
</ul>
</div>
<!-- Contact Information Section -->
<div style="flex: 1; min-width: 200px; margin-bottom: 10px;">
<h3 style="font-size: 1.5rem; color: #2980b9;">Contact Info</h3>
<p style="color: #000;">123 Emergency Lane, Mumbai, India</p>
<a href="mailto:[email protected]" style="color: #000000;">[email protected]</a></p>
<p style="color: #000000;">Phone: <a href="tel:+91-911-1234567" style="color: #000000;">+91-911-1234567</a>
</p>
</div>
<!-- Modified the looks of the social icons -->
<!-- Social Media Links -->
<div style="text-align: center; min-width: 200px; color: black;">
<h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Follow Us</h3>
<div style="display: flex; justify-content: center; align-items: center; gap: 15px; height: 50px;">
<a href="https://www.facebook.com" class="social-icon facebook"
style="color: black; text-decoration: none; font-size: 1.5rem;"><i class="fab fa-facebook"></i></a>
<a href="https://www.twitter.com" class="social-icon twitter"
style="color: black; text-decoration: none; font-size: 1.5rem;"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://www.instagram.com" class="social-icon instagram"
style="color: black; text-decoration: none; font-size: 1.5rem;"><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com" class="social-icon linkedin"
style="color: black; text-decoration: none; font-size: 1.5rem;"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<!-- Newsletter Subscription -->
<div style="flex: 1; min-width: 200px; margin-bottom: 20px;">
<h3 style="font-size: 1.5rem; margin-bottom: 10px; color: #2980b9;">Subscribe to Our Newsletter</h3>
<form action="#">
<input type="email" placeholder="Your Email"
style="padding: 10px; width: 80%; border: none; border-radius: 5px;" required><br><br>
<button type="submit"
style="background-color: #e81a1a; color: white; padding: 10px 20px; border: none; cursor: pointer; border-radius: 5px;">Subscribe</button>
</form>
</div>
</div>
</div>
<hr>
<!-- Copyright Section -->
<div
style="background-color: #C4D7FF; color: #000000; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;">
<strong>
<p>© 2024 AmbuFlow. All rights reserved.</p>
</strong>
<!-- Back to Top Button -->
<button id="backToTopBtn" style="
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
">↑</button>
</div>
</footer>
<!-- FAQ Popup Button -->
<button id="faqButton"
style="position: fixed; bottom: 20px; right: 80px; z-index: 1000; background-color: #2980b9; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; display: none;">FAQ</button>
<!-- FAQ Popup -->
<div id="faqPopup"
style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: white; padding: 20px; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.3); z-index: 1001; max-width: 80%; max-height: 80%; overflow-y: auto;">
<h2>Frequently Asked Questions</h2>
<div class="faq-content">
<div class="faq-item">
<h3>What is AmbuFlow?</h3>
<p>AmbuFlow is an advanced ambulance monitoring system designed to optimize emergency response times and improve
patient care.</p>
</div>
<div class="faq-item">
<h3>How does real-time tracking work?</h3>
<p>Our system uses GPS technology to track ambulances in real-time, allowing for efficient dispatch and route
optimization.</p>
</div>
<div class="faq-item">
<h3>Is the service available 24/7?</h3>
<p>Yes, AmbuFlow operates round the clock to ensure emergency services are always available when needed.</p>
</div>
<div class="faq-item">
<h3>How can hospitals benefit from AmbuFlow?</h3>
<p>Hospitals can improve resource management, reduce response times, and enhance overall patient care through
our integrated system.</p>
</div>
</div>
<!-- Add close button for FAQ Popup -->
<button id="closeFaqPopup" style="margin-top: 20px;">Close</button>
</div>
<!-- Add this div for the translator popup -->
<div id="gTranslate" class="g-translate-popup" style="display:none;">
<div class="gtranslate_wrapper"></div>
</div>
<script src="preloader.js"></script>
<!-- -->
<script>
// Back to top button functionality
const backToTopButton = document.getElementById('backToTopBtn');
// Show the button when scrolled down 100px from the top
window.onscroll = function () {
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
backToTopButton.style.display = "block";
} else {
backToTopButton.style.display = "none";
}
};
// Scroll to top when the button is clicked
backToTopButton.addEventListener('click', () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
});
</script>
<script>
// Dark mode functionality
document.addEventListener('DOMContentLoaded', function () {
const toggleButton = document.getElementById('dark-mode-toggle');
const darkModeButton = document.querySelector('.dark-mode-toggle');
const logoImage = document.querySelector('.logo img'); // Select the logo image
const navbar = document.querySelector('.navbar'); // Select the navbar
// Reset to light mode for the Contact page
document.body.classList.remove("dark-mode");
document.body.classList.add("light-mode");
darkModeButton.innerHTML = '<i class="fa-solid fa-moon"></i>'; // Set icon for light mode
navbar.classList.remove("dark-mode"); // Ensure navbar is in light mode
// Clear the sessionStorage for theme on this page
sessionStorage.removeItem("theme");
toggleButton.addEventListener('click', function () {
document.body.classList.toggle('dark-mode');
navbar.classList.toggle('dark-mode'); // Toggle dark mode for navbar
// Update sessionStorage based on current mode
if (document.body.classList.contains('dark-mode')) {
sessionStorage.setItem("theme", "dark");
darkModeButton.innerHTML = '<i class="fa-solid fa-sun"></i>'; // Change icon
} else {
sessionStorage.setItem("theme", "light");
darkModeButton.innerHTML = '<i class="fa-solid fa-moon"></i>'; // Change icon
}
});
});
// FAQ Popup functionality
const faqButton = document.getElementById('faqButton');
const faqPopup = document.getElementById('faqPopup');
const closeFaqPopup = document.getElementById('closeFaqPopup');
faqButton.addEventListener('click', () => {
faqPopup.style.display = 'block';
});
closeFaqPopup.addEventListener('click', () => {
faqPopup.style.display = 'none';
});
// Close popup when clicking outside
window.addEventListener('click', (event) => {
if (event.target === faqPopup) {
faqPopup.style.display = 'none';
}
});
// Show/hide buttons when user scrolls
window.onscroll = function () {
const backToTopBtn = document.getElementById('backToTopBtn');
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
backToTopBtn.style.display = "block";
faqButton.style.display = "block";
} else {
backToTopBtn.style.display = "none";
faqButton.style.display = "none";
}
};
// Add the translator popup functionality
const translateBtn = document.getElementById('translateBtn');
const gTranslate = document.getElementById('gTranslate');
translateBtn.addEventListener('click', function() {
gTranslate.style.display = gTranslate.style.display === 'none' ? 'block' : 'none';
});
// Close the translator popup when clicking outside
document.addEventListener('click', function(event) {
if (!gTranslate.contains(event.target) && event.target !== translateBtn) {
gTranslate.style.display = 'none';
}
});
</script>
<script>
window.gtranslateSettings = {
"default_language": "en",
"detect_browser_language": true,
"wrapper_selector": ".gtranslate_wrapper",
"alt_flags": {"en": "usa"}
}
</script>
<script src="https://cdn.gtranslate.net/widgets/latest/float.js" defer></script>
<!-- Add this if it's not already present -->
<div class="circle"></div>
</body>
</html>