diff --git a/index.html b/index.html index 2afa9bc..87865ae 100644 --- a/index.html +++ b/index.html @@ -393,15 +393,14 @@ margin-bottom: 15px; width: 100%; /* Full width by default */ - background-color: #000000; + /* background-color: #000000; */ border: 1px solid #ccc; border-radius: 10px; overflow: hidden; transition: background-color 0.3s ease; + transition: all 0.3s ease; } - .faq:hover { - background-color: #e31616; /* Slight hover effect for FAQs */ - } + .faq-question { background-color: #e7ffe7; color: #333; @@ -774,8 +773,6 @@

Contact Us

Stay calm, ensure the patient is in a safe environment, and prepare any relevant medical information. If possible, clear a path for the ambulance and stay on the line with emergency services if needed.

-

Stay calm, ensure the patient is in a safe environment, and prepare any relevant medical information. If - possible, clear a path for the ambulance and stay on the line with emergency services if needed.

@@ -784,8 +781,6 @@

Contact Us

After requesting an ambulance, you can track it in real-time by logging into the system and accessing the live map feature.

-

After requesting an ambulance, you can track it in real-time by logging into the system and accessing the - live map feature.

@@ -793,8 +788,6 @@

Contact Us

If the ambulance is delayed, you will receive updates through the system. In case of a significant delay, please contact emergency services for further instructions.

-

If the ambulance is delayed, you will receive updates through the system. In case of a significant delay, - please contact emergency services for further instructions.

@@ -802,8 +795,6 @@

Contact Us

Yes, during your request, you can provide essential medical details to help paramedics prepare better for the situation.

-

Yes, during your request, you can provide essential medical details to help paramedics prepare better for - the situation.

@@ -826,15 +817,12 @@

Contact Us

If the ambulance location is not updating, try refreshing the page. If the issue persists, report a technical issue through the system or contact support.

-

If the ambulance location is not updating, try refreshing the page. If the issue persists, report a - technical issue through the system or contact support.

Yes, the system allows you to schedule an ambulance for non-emergency situations in advance.

-

Yes, the system allows you to schedule an ambulance for non-emergency situations in advance.

@@ -1021,20 +1009,27 @@

button.addEventListener('click', function () { const faq = button.parentElement; const answer = faq.querySelector('.faq-answer'); - - // Toggle active class + + // Collapse all other answers + document.querySelectorAll('.faq').forEach(item => { + if (item !== faq) { + item.classList.remove('active'); + item.querySelector('.faq-answer').style.maxHeight = '0'; + } + }); + + // Toggle active class for clicked FAQ faq.classList.toggle('active'); - - // Control the max-height for slide effect if (faq.classList.contains('active')) { - answer.style.maxHeight = answer.scrollHeight + 'px'; // Set height based on content + answer.style.maxHeight = answer.scrollHeight + 'px'; } else { - answer.style.maxHeight = '0'; // Set height to zero to collapse + answer.style.maxHeight = '0'; } }); }); }); + //enabling the Dark mode toggle button added document.addEventListener("DOMContentLoaded", () => { const darkModeButton = document.getElementById("dark-mode-button");