bribrunner commited on
Commit
49a54b8
·
verified ·
1 Parent(s): a9187be

Manual changes saved

Browse files
Files changed (1) hide show
  1. index.html +48 -1
index.html CHANGED
@@ -566,6 +566,53 @@
566
  });
567
  });
568
  </script>
569
- <script>feather.replace();</script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
570
  </body>
571
  </html>
 
566
  });
567
  });
568
  </script>
569
+
570
+ <script>
571
+ // FAQ accordion (only one open at a time)
572
+ document.querySelectorAll('.faq-btn').forEach((btn) => {
573
+ btn.addEventListener('click', () => {
574
+ const content = btn.nextElementSibling;
575
+ const isOpen = !content.classList.contains('hidden');
576
+ document.querySelectorAll('.faq-content').forEach(c => c.classList.add('hidden'));
577
+ document.querySelectorAll('.faq-btn i').forEach(i => i.style.transform = 'rotate(0deg)');
578
+ if (!isOpen) {
579
+ content.classList.remove('hidden');
580
+ btn.querySelector('i').style.transform = 'rotate(180deg)';
581
+ }
582
+ });
583
+ });
584
+
585
+ // CTA scroll to contact
586
+ document.getElementById('cta-scroll').addEventListener('click', () => {
587
+ const target = document.getElementById('contact');
588
+ target.scrollIntoView({ behavior: 'smooth', block: 'start' });
589
+ });
590
+
591
+ // Testimonials carousel
592
+ let index = 0;
593
+ const carousel = document.getElementById('testimonial-carousel');
594
+ const total = carousel.children.length;
595
+
596
+ function updateCarousel() {
597
+ carousel.style.transform = `translateX(-${index * 100}%)`;
598
+ feather.replace();
599
+ }
600
+
601
+ document.getElementById('next-review').addEventListener('click', () => {
602
+ index = (index + 1) % total;
603
+ updateCarousel();
604
+ });
605
+ document.getElementById('prev-review').addEventListener('click', () => {
606
+ index = (index - 1 + total) % total;
607
+ updateCarousel();
608
+ });
609
+
610
+ // Auto-slide every 7 seconds
611
+ setInterval(() => {
612
+ index = (index + 1) % total;
613
+ updateCarousel();
614
+ }, 7000);
615
+
616
+ feather.replace();</script>
617
  </body>
618
  </html>