diff --git a/index.html b/index.html index 80c939d6c..29e1ad9d9 100644 --- a/index.html +++ b/index.html @@ -5995,9 +5995,9 @@

Provides the user's zodiac sign by taking the date of birth as input.

- + - +
diff --git a/script.js b/script.js index 4985edf28..c82d1526c 100644 --- a/script.js +++ b/script.js @@ -343,3 +343,10 @@ function validateName(inputId) { input.value = value.replace(/[^A-Za-z ]/g, ''); // Remove any non-alphabetic characters } } + +function scrollToSearch() { + const searchBar = document.getElementById('searchBar'); + searchBar.scrollIntoView({ + behavior: "smooth" + }); +} \ No newline at end of file