From 6ab6ce7be844918e911890cc697a104083b0ed0e Mon Sep 17 00:00:00 2001 From: pani2004 Date: Sat, 8 Jun 2024 14:18:10 +0530 Subject: [PATCH] Fixed the bug --- index.html | 44 +++++++++++++++++++++----------------------- styles.css | 1 + 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/index.html b/index.html index 735a1470..cff08275 100644 --- a/index.html +++ b/index.html @@ -1036,33 +1036,31 @@

Reach Out To Us

- - + + + + - // When the user scrolls down 20px from the top of the document, show the button - window.onscroll = function () { - scrollFunction(); - }; - - function scrollFunction() { - if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { - mybutton.style.display = "block"; - } else { - mybutton.style.display = "none"; - } - } - // When the user clicks on the button, scroll to the top of the document - function goToTop() { - document.body.scrollTop = 0; - document.documentElement.scrollTop = 0; - } -