From 2918c7e6c04d6ad98573725b281781e1ade23e81 Mon Sep 17 00:00:00 2001
From: Tejashri Taral <160386036+Tejashri-Taral@users.noreply.github.com>
Date: Mon, 29 Jul 2024 20:13:58 +0530
Subject: [PATCH 01/47] Added dark/light mode toggle button in the website
---
public/index.html | 359 +++++++++++++++++++++++++++-------------------
1 file changed, 215 insertions(+), 144 deletions(-)
diff --git a/public/index.html b/public/index.html
index d8eb94c..8e58458 100644
--- a/public/index.html
+++ b/public/index.html
@@ -8,43 +8,37 @@
-
-
CareerZunction
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+ // Scroll to Top Button Functionality
+ let mybutton = document.getElementById("scrollToTopBtn");
+
+ window.onscroll = function () {
+ scrollFunction();
+ };
+
+ function scrollFunction() {
+ if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
+ mybutton.classList.add("show");
+ } else {
+ mybutton.classList.remove("show");
+ }
+ }
+
+ mybutton.onclick = function () {
+ window.scrollTo({ top: 0, behavior: 'smooth' });
+ };
+});
+
+
+
-