From dfcf4abaa7857f40fc37fd804971ee297d304af3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 30 Oct 2024 19:59:52 +0530 Subject: [PATCH] Resolved the bug of the chatbot --- about.html | 195 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 186 insertions(+), 9 deletions(-) diff --git a/about.html b/about.html index e425ae4..5cf5b68 100644 --- a/about.html +++ b/about.html @@ -19,20 +19,193 @@ + + + + + +
+
Ticket Bot
+
+ + +
@@ -293,13 +466,17 @@

About Us 🚀

} }; -// Scroll to top function -scrollToTopBtn.onclick = function() { - window.scrollTo({ - top: 0, - behavior: "smooth" // Smooth scroll effect - }); -}; +// toggle chatbot function +function toggleChatbot() { + const chatbotContainer = document.getElementById("chatbot-container"); + chatbotContainer.classList.toggle("chatbot-show"); + } + window.addEventListener('scroll', () => { + const scrollProgressBar = document.getElementById('scrollProgressBar'); + const totalHeight = document.documentElement.scrollHeight - window.innerHeight; + const progressHeight = (window.scrollY / totalHeight) * 100; + scrollProgressBar.style.width = progressHeight + '%'; +});