diff --git a/script.js b/script.js index 30e70b6..a5ba8ee 100644 --- a/script.js +++ b/script.js @@ -5,28 +5,6 @@ const searchInput = document.getElementById("search-input"); const searchForm = document.getElementById("search-form"); const searchResults = document.getElementById("search-results"); -function animateToTopCenter() { - container.style.justifyContent = "flex-start"; - title.style.fontSize = "30px"; - subtitle.style.fontSize = "14px"; - searchInput.style.fontSize = "14px"; -} - -function animateToMiddleCenter() { - container.style.justifyContent = "center"; - title.style.fontSize = "40px"; - subtitle.style.fontSize = "18px"; - searchInput.style.fontSize = "16px"; -} - -searchInput.addEventListener("input", function() { - if (searchInput.value.trim() !== "") { - animateToTopCenter(); - } else { - animateToMiddleCenter(); - } -}); - async function performSearch(query) { searchResults.textContent = "Searching..."; @@ -45,6 +23,7 @@ async function performSearch(query) { return `
${result.FirstURL}