From 3040a329dbb2b38f67531a897d3edd72d3e11ad3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 19 Sep 2023 14:02:57 +0530 Subject: [PATCH] Fix scroll-up button issue --- .vscode/settings.json | 3 +++ css/faq.css | 16 ++++++++++++++++ faq.html | 4 ++++ js/faq.js | 38 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..6f3a2913 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "liveServer.settings.port": 5501 +} \ No newline at end of file diff --git a/css/faq.css b/css/faq.css index 97de94da..b4597b53 100644 --- a/css/faq.css +++ b/css/faq.css @@ -6,6 +6,22 @@ --color-events: #e30162; } +#scrollUpButton { + position: fixed; + bottom: 40px; + right: 20px; + background-color: #007BFF; + color: #ffffff; + border: none; + border-radius: 50%; + width: 40px; + height: 40px; + cursor: pointer; + z-index: 9999; +} + + + .dark-theme { --color-bg: #1c1b22; --color-text: #e1e1ec; diff --git a/faq.html b/faq.html index 8b25c567..835131bd 100644 --- a/faq.html +++ b/faq.html @@ -243,6 +243,9 @@

+ + +