Can you please help me to create a sales funnel for our business, our business Name is MarketingROI.Ai our services offer is LeadPro 365 below about our business , and here's the font color were using
2106848 verified Download script.js from MarketingROI/leadpro-funnel-master-365: direct link, hf CLI and curl.
- Browser
- Download file 1.96 kB
-
https://huggingface.co/spaces/MarketingROI/leadpro-funnel-master-365/resolve/main/script.js
- Command line
-
hf download hf://spaces/MarketingROI/leadpro-funnel-master-365/script.js
-
curl -L -o script.js https://huggingface.co/spaces/MarketingROI/leadpro-funnel-master-365/resolve/main/script.js
1.96 kB
| // FAQ Toggle Functionality | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const faqToggles = document.querySelectorAll('.faq-toggle'); | |
| faqToggles.forEach(toggle => { | |
| toggle.addEventListener('click', function() { | |
| const content = this.nextElementSibling; | |
| const icon = this.querySelector('i'); | |
| this.classList.toggle('active'); | |
| content.classList.toggle('show'); | |
| if (content.classList.contains('show')) { | |
| content.style.display = 'block'; | |
| icon.style.transform = 'rotate(180deg)'; | |
| } else { | |
| content.style.display = 'none'; | |
| icon.style.transform = 'rotate(0deg)'; | |
| } | |
| }); | |
| }); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| if (targetId === '#') return; | |
| const targetElement = document.querySelector(targetId); | |
| if (targetElement) { | |
| window.scrollTo({ | |
| top: targetElement.offsetTop - 80, | |
| behavior: 'smooth' | |
| }); | |
| } | |
| }); | |
| }); | |
| // Mailchimp Form Submission (example) | |
| const demoForm = document.querySelector('#demo form'); | |
| if (demoForm) { | |
| demoForm.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const formData = new FormData(this); | |
| // Here you would typically send the form data to your backend | |
| // For demo purposes, we'll just show a success message | |
| alert('Thank you for your interest! We will contact you shortly to schedule your demo.'); | |
| this.reset(); | |
| }); | |
| } | |
| }); |