From 760481ba367a56c73b9571f63a2a536326988533 Mon Sep 17 00:00:00 2001
From: Ananya Gupta <145869907+ananyag309@users.noreply.github.com>
Date: Sat, 12 Oct 2024 19:09:30 +0530
Subject: [PATCH] Update Feedback.html
---
Feedback.html | 287 ++++++++++++++++++++++++++++++++------------------
1 file changed, 187 insertions(+), 100 deletions(-)
diff --git a/Feedback.html b/Feedback.html
index 1119839..3357d93 100644
--- a/Feedback.html
+++ b/Feedback.html
@@ -329,6 +329,26 @@
background: radial-gradient(circle, rgba(71, 240, 255, 0.3), rgba(0, 119, 255, 0.3));
transition: transform 0.1s, left 0.1s, top 0.1s;
}
+
+ #backToTopBtn {
+ display: none; /* Hidden by default */
+ position: fixed;
+ bottom: 20px;
+ right: 30px;
+ z-index: 99;
+ font-size: 18px;
+ border: none;
+ outline: none;
+ background-color: #e81a1a;
+ color: white;
+ cursor: pointer;
+ padding: 15px;
+ border-radius: 4px;
+ }
+
+ #backToTopBtn:hover {
+ background-color: #555;
+ }
@@ -491,116 +511,183 @@
Subscribe to
">↑
-
-
+
+ const nextCircle = circles[index + 1] || circles[0];
+ x += (nextCircle.x - x) * 0.3;
+ y += (nextCircle.y - y) * 0.3;
+ });
-
-
+ requestAnimationFrame(animateCircles);
+ }
+
+ animateCircles();
+
+ // Add this new code for the Back to Top functionality
+ const backToTopBtn = document.getElementById('backToTopBtn');
+ const faqButton = document.getElementById('faqButton');
+ const faqPopup = document.getElementById('faqPopup');
+ const closeFaqPopup = document.getElementById('closeFaqPopup');
+
+ // Show/hide buttons when user scrolls
+ window.onscroll = function() {
+ if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
+ backToTopBtn.style.display = "block";
+ faqButton.style.display = "block";
+ } else {
+ backToTopBtn.style.display = "none";
+ faqButton.style.display = "none";
+ }
+ };
+
+ // Scroll to top when button is clicked
+ backToTopBtn.addEventListener('click', function() {
+ document.body.scrollTop = 0; // For Safari
+ document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
+ });
+
+ // FAQ Popup functionality
+ faqButton.addEventListener('click', () => {
+ faqPopup.style.display = 'block';
+ });
+
+ closeFaqPopup.addEventListener('click', () => {
+ faqPopup.style.display = 'none';
+ });
+
+ // Close popup when clicking outside
+ window.addEventListener('click', (event) => {
+ if (event.target === faqPopup) {
+ faqPopup.style.display = 'none';
+ }
+ });
+
+
+
+