From eab337ea499498c9b2e1e4c0ae67720681fab2b3 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 24 Jul 2025 19:04:59 -0300 Subject: [PATCH] seo fixes --- public/app.js | 12 +----------- public/index.html | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/public/app.js b/public/app.js index 0ff60c1..bcb1f1c 100644 --- a/public/app.js +++ b/public/app.js @@ -1,9 +1,7 @@ -// Accordion script const accTitles = document.querySelectorAll('.accordion-title'); accTitles.forEach(title => { title.addEventListener('click', () => { - // Close all other accordions accTitles.forEach(otherTitle => { if (otherTitle !== title) { otherTitle.classList.remove('active'); @@ -11,7 +9,6 @@ accTitles.forEach(title => { } }); - // Toggle the clicked one const content = title.nextElementSibling; const isOpen = content.style.display === 'block'; title.classList.toggle('active'); @@ -19,7 +16,6 @@ accTitles.forEach(title => { }); }); -// Slider script const slides = document.querySelectorAll('.slide'); let currentIndex = 0; @@ -31,14 +27,11 @@ function nextSlide() { slides[currentIndex].classList.add('active'); } -// Initial display if (slides.length > 0) { slides[currentIndex].classList.add('active'); - // Change slide every 10 seconds setInterval(nextSlide, 10000); } -// Chat widget script (function () { const preamble = ` We use what we preach — this chatbot is powered by our own n8n automation 🤖 to help you quickly find what you need. @@ -111,7 +104,6 @@ If it’s not the right fit, no worries — we’ll refund you 💸. btn.addEventListener('click', (e) => { e.preventDefault(); - // Open chat if not already visible if (!chatWidget.classList.contains('active')) { chatWidget.classList.add('active'); if (!chatOpened) { @@ -120,7 +112,6 @@ If it’s not the right fit, no worries — we’ll refund you 💸. } } - // Send predefined message appendMessage(message, 'user'); fetch(api, { @@ -139,9 +130,8 @@ If it’s not the right fit, no worries — we’ll refund you 💸. }); } - // Attach all three buttons handleBuyClick('buy-3h', 'I want to buy the 3 Hours pack for $450.'); handleBuyClick('buy-5h', 'I want to buy the 5 Hours pack for $675.'); handleBuyClick('buy-10h', 'I want to buy the 10 Hours pack for $1200.'); handleBuyClick('buy-bundle', 'I want to buy the ODOO and N8N bundle for $395 per year.'); -})(); \ No newline at end of file +})(); diff --git a/public/index.html b/public/index.html index 20ebe3d..36be913 100644 --- a/public/index.html +++ b/public/index.html @@ -11,7 +11,7 @@
@@ -345,4 +345,4 @@ - \ No newline at end of file +