forked from mansiruhil13/Bobble-AI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
930 lines (801 loc) · 25.7 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
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
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AmbuFlow</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" />
<link rel="stylesheet" href="src/css/index.css" />
<link rel="stylesheet" href="style1.css">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<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">
<link rel="shortcut icon" href="ambulance.png" type="image/x-icon">
<!-- Updated to latest version -->
<style>
body {
font-family: "Poppins", sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 50px;
color: #333;
display: flex;
flex-direction: column;
min-height: 100vh;
}
nav ul {
list-style-type: none;
padding: 0;
margin: 0;
display: flex;
}
nav ul li a {
display: flex;
align-items: center;
padding: 10px 20px;
text-decoration: none;
border: 2px solid #000;
border-radius: 12px;
color: black;
font-weight: bold;
background-color: white;
text-transform: uppercase;
margin-right: 10px;
}
nav ul li a:hover {
background-color: #f0f0f0;
}
nav ul li a:active {
background-color: #000;
color: white;
}
nav ul li a i {
margin-right: 8px;
}
a.active,
a:hover {
background: #1b9bff;
transition: .5s;
}
/* Remove hover and active styles for specific links */
a.no-hover-effect.active,
a.no-hover-effect:hover {
background: inherit;
/* Retains the original background */
transition: none;
/* No transition effect */
}
#home-link:active {
background-color: black;
color: white;
}
.content {
margin: 20px;
padding: 20px;
background-color: #fff;
border-radius: 5px;
flex-grow: 1;
}
h1 {
color: #2c3e50;
text-align: center;
margin-bottom: 20px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
grid-template-rows: auto auto;
gap: 20px;
animation: fadeIn 1s ease-in-out;
}
.feature {
background-color: #e7f3fe;
align-items: center;
border-radius: 10px;
padding: 15px;
text-align: center;
transition: transform 0.3s, box-shadow 0.3s;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.feature:hover {
transform: translateY(-5px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.feature img {
width: 100px;
height: 100px;
object-fit: cover;
margin-bottom: 10px;
border-radius: 50%;
border: 3px solid #2980b9;
}
.feature h2 {
color: #2980b9;
margin-bottom: 10px;
}
.feature p {
color: #555;
}
.team-feature,
.contact-feature {
padding: 20px;
display: flex;
align-items: center;
text-align: left;
border-radius: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
grid-column: 1 / -1;
}
.team-feature {
background-color: #e7ffe7;
}
.contact-feature {
background-color: #f2e4aa;
}
.team-feature img,
.contact-feature img {
width: 150px;
height: auto;
margin-right: 20px;
border-radius: 10px;
}
.sticky {
display: flex;
position: fixed;
background-color: #C4D7FF;
top: 0;
left: 0;
z-index: 1000;
}
footer {
background-color: #C4D7FF;
color: #f3f4f6;
text-align: center;
padding: 15px 0;
width: 100%;
}
.checkbtn {
font-size: 30px;
color: #333;
float: right;
line-height: 80px;
margin-right: 40px;
cursor: pointer;
display: none;
}
#check {
display: none;
}
/* 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 */
}
@media (max-width:966px) {
label.logo {
font-size: 30px;
padding-left: 50px;
}
}
@media (max-width:858px) {
.checkbtn {
display: block;
}
ul {
position: fixed;
width: 100%;
height: 100vh;
background: #77a1cc;
top: 85px;
left: -200%;
text-align: center;
transition: all .5s;
height: 80px;
}
nav ul li {
display: block;
}
nav ul li a {
display: block;
font-size: 10px;
}
a:hover,
a.active {
background: none;
color: #000000;
}
#check:checked~ul {
left: 0;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Logo Animation */
@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;
}
.red {
color: red;
/* Change the color of letters in this class to red */
}
/* faq section styles */
.faq-section {
background-color: #e7f3fe;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.faq-h2 {
margin-bottom: 1.5rem;
font-size: 2.5rem;
font-weight: 600;
}
.faqs {
width: 100%;
}
.faq {
margin-bottom: 15px;
width: 100%;
/* Full width by default */
background-color: #fff;
border: 1px solid #ccc;
border-radius: 10px;
overflow: hidden;
}
.faq-question {
background-color: #e7ffe7;
color: #333;
padding: 10px;
width: 100%;
text-align: left;
border: none;
outline: none;
cursor: pointer;
font-size: 16px;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
}
.faq-question::after {
content: '';
display: inline-block;
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-top: 8px solid #333;
/* Downward pointing wide "V" */
transition: transform 0.3s ease;
margin-right: 10px;
}
.faq.active .faq-question::after {
border-top: none;
border-bottom: 8px solid #333;
/* Upward pointing wide "V" */
}
.faq-answer {
max-height: 0;
/* Initially hidden */
overflow: hidden;
/* Hide content when not visible */
padding: 0 10px;
background-color: #fff;
transition: max-height 0.3s ease;
/* Smooth transition */
border-top: 1px solid #ccc;
}
.faq-answer p {
margin-bottom: 10px;
}
.faq.active .faq-answer {
max-height: 200px; /* Set to a sufficient height to display content */
padding: 10px; /* Adds padding when expanded */
}
.logo a{
text-decoration: none;
}
.logo img:hover{
background-color: white;
}
.container{
width: 98vw;
}
#contact-hvr:hover{
background: none;
}
.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;
}
.circle-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 9999;
}
/* FAQ Popup Styles */
#faqPopup {
font-family: Arial, sans-serif;
}
#faqPopup h2 {
color: #2980b9;
margin-bottom: 20px;
}
.faq-item {
margin-bottom: 20px;
}
.faq-item h3 {
color: #34495e;
margin-bottom: 10px;
}
.faq-item p {
color: #7f8c8d;
}
#faqButton:hover {
background-color: #2c3e50;
}
/* FAQ Button Styles */
#faqButton {
position: fixed;
bottom: 20px;
right: 80px; /* Moved further to the left */
z-index: 1000;
background-color: #2980b9;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
#faqButton:hover {
background-color: #3498db;
}
/* Back to Top Button Styles */
#backToTopBtn {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
background-color: #e81a1a;
color: white;
border: none;
border-radius: 5px;
padding: 10px 15px;
font-size: 16px;
cursor: pointer;
display: none; /* Hidden by default */
transition: opacity 0.3s, visibility 0.3s;
}
#backToTopBtn:hover {
background-color: #c91515;
}
</style>
</head>
<body>
<div class="circle-container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
<header class="sticky">
<div class="container">
<div class="logo">
<div class="brand-name">
<span class="ambu">Ambu</span>Flow
</div>
<img src="images/logo2-w.webp" alt="Ambulance Monitoring System Logo" style="width: 50px; height: auto" />
</div>
<nav class="menu">
<ul>
<li>
<a href="/" 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>
</ul>
</nav>
<div class="buttons">
<button class="dark-mode-toggle" id="dark-mode-button">
<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>
<div class="content" id="main-content" >
<h1>Welcome to the Ambulance Monitoring System</h1>
<div class="grid">
<div class="feature">
<img src="images/emergency-w.jpg" alt="Emergency Response" />
<h2>Quick Emergency Response</h2>
<p>
Ensures patients receive timely medical assistance by locating the
nearest hospitals and ambulances.
</p>
</div>
<div class="feature">
<img src="images/ambulance-w.jpg" alt="Real-Time Tracking" />
<h2>Real-Time Tracking</h2>
<p>
Provides real-time updates on ambulance locations and traffic
conditions, optimizing route management.
</p>
</div>
<div class="feature">
<img src="images/24-w.jpg" alt="24/7 Availability" />
<h2>24/7 Availability</h2>
<p>
Ensures round-the-clock service, making sure that help is just a
call away, anytime, anywhere.
</p>
</div>
<div class="feature">
<img src="images/doctor-w.jpg" alt="Enhanced Communication" />
<h2>Enhanced Communication</h2>
<p>
Facilitates seamless communication between patients, hospitals, and
ambulance drivers.
</p>
</div>
<div class="feature">
<img src="images/hospital-w.jpg" alt="Resource Management" />
<h2>Resource Management</h2>
<p>
Helps hospitals manage their resources efficiently by providing
critical information and analytics.
</p>
</div>
<!-- Team Section in Full Row -->
<div class="team-feature">
<img src="images/team-w.png" alt="Meet the Team" />
<div>
<h2>Meet the Team</h2>
<p>
Learn more about our dedicated team working tirelessly to ensure
efficient ambulance monitoring and resource management.
</p>
<a href="team.html" class="button">Go to Team</a>
</div>
</div>
<!-- Contact Section in Full Row -->
<div class="contact-feature">
<img src="images/contact-w.avif" alt="Contact Us" />
<div>
<h2>Contact Us</h2>
<p>
Reach out to us for any inquiries or assistance. We're here to
help you 24/7 with our emergency services.
</p>
<a href="contact.html" class="button">Go to Contact</a>
</div>
</div>
</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; background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">About Us</a></li>
<li><a href="contact.html" style="color: #000000; background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">Contact Us</a></li>
<li><a href="privacy.html" style="color: #000000; background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">Privacy Policy</a></li>
<li><a href="terms.html" style="color: #000000; background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">Terms of Service</a></li>
<li><a href="sitemap.html" style="color: #000000;background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">Site Map</a></li>
<!-- Add FAQ link here -->
<li><a href="faq.html" style="color: #000000;background:none; cursor: pointer; text-decoration: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">FAQ</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; background:none; cursor: pointer;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">[email protected]</a></p>
<p style="color: #000000;">Phone: <a href="tel:+91-911-1234567" style="color: #000000; background: none;" onmouseover="this.style.color='blue'" onmouseout="this.style.color='black'">+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;">
<a href="https://www.facebook.com" class="social-icon facebook no-hover-effect"
style="color: black; text-decoration: none; font-size: 24px;"><i class="fab fa-facebook"></i></a>
<a href="https://www.twitter.com" class="social-icon twitter no-hover-effect"
style="color: black; text-decoration: none; font-size: 24px;"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://www.instagram.com" class="social-icon instagram no-hover-effect"
style="color: black; text-decoration: none; font-size: 24px;"><i class="fab fa-instagram"></i></a>
<a href="https://www.linkedin.com" class="social-icon linkedin no-hover-effect"
style="color: black; text-decoration: none; font-size: 24px;"><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>
<style>
.hover-link {
color: #000000;
text-decoration: none;
margin-right: 10px;
background:none;
cursor: pointer;
transition: color 0.3s ease;
}
.hover-link:hover {
color: blue;
background:none;
}
</style>
</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>
<script>
// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
var backToTopBtn = document.getElementById("backToTopBtn");
// Show/hide button based on scroll position
window.addEventListener('scroll', function() {
if (window.pageYOffset > 300) { // Show button after scrolling down 300px
backToTopBtn.style.display = "block";
} else {
backToTopBtn.style.display = "none";
}
});
// Smooth scroll to top when button is clicked
backToTopBtn.addEventListener('click', function(e) {
e.preventDefault();
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
</script>
<script>
function changeContent(page) {
var links = document.querySelectorAll(".menu ul li a");
links.forEach((link) => link.classList.remove("active"));
document.getElementById(page + "-link").classList.add("active");
}
window.onload = function () {
document.getElementById("home-link").classList.add("active");
// Add delay to each letter drop
const letters = document.querySelectorAll('.letter');
letters.forEach((letter, index) => {
letter.style.animationDelay = `${index * 0.1}s`;
});
};
const thankYouMessage = document.getElementById("thankYouMessage");
const form = document.getElementById("subscribeForm");
form.addEventListener("submit", function (event) {
event.preventDefault(); // Prevent form from refreshing the page
// Show Thank You Message after subscribing
thankYouMessage.style.display = 'block';
// Optionally clear the input field after subscribing
document.getElementById("emailInput").value = '';
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
const faqButtons = document.querySelectorAll('.faq-question');
<!-- Copyright Section -->
<div style="
text-align: center;
margin-top: 20px;
border-top: 1px solid white;
padding-top: 10px;
">
<p>© 2024 Ambulance Monitoring System. All rights reserved.</p>
</div>
</footer>
<!-- Back to Top Button -->
<button id="back-to-top">
<i class="fas fa-chevron-up" style="font-size: 30px;"></i>
</button>
<script src="script.js"></script>
</script>
<script>
// Back to Top Button functionality
document.addEventListener('DOMContentLoaded', function() {
var backToTopBtn = document.getElementById("backToTopBtn");
backToTopBtn.addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
});
form.addEventListener("submit", function(event) {
event.preventDefault();
thankYouMessage.style.display = 'block';
document.getElementById("emailInput").value = '';
});
});
</script>
<!-- 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;">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>
<button id="closeFaqPopup" style="background-color: #e74c3c; color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; margin-top: 10px;">Close</button>
</div>
<script>
// 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';
}
});
</script>