From 30473393415cab498c001934513e05f3e2a2d010 Mon Sep 17 00:00:00 2001 From: Son Nguyen Hoang Date: Tue, 27 Feb 2024 17:40:14 -0500 Subject: [PATCH] Fix: Enhanced user support (#42) --- index.html | 5 ----- index.js | 6 ------ 2 files changed, 11 deletions(-) diff --git a/index.html b/index.html index 19e2acd7..5ca1b43c 100644 --- a/index.html +++ b/index.html @@ -209,15 +209,10 @@

Popular Worldwide:

-
-
-

-
-

Award-Winning Movies:

diff --git a/index.js b/index.js index 35c334fe..a4f8c1eb 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,6 @@ const search = document.getElementById("search"); const searchButton = document.getElementById("button-search"); const searchTitle = document.getElementById("search-title"); const otherTitle = document.getElementById("other1"); -const clearButton = document.getElementById("button-clear"); let searchPerformed = false; @@ -37,7 +36,6 @@ async function getMovies(url, mainElement, isSearch = false) { if (isSearch) { searchPerformed = true; - clearButton.style.display = 'block'; } for (let page = 1; page <= pagesToFetch; page++) { @@ -109,10 +107,6 @@ function updateUniqueMoviesViewed(movieId) { } } -clearButton.addEventListener('click', () => { - window.location.reload(); -}); - function rotateUserStats() { const stats = [ {