Skip to content

Commit

Permalink
Fix: Enhanced user support (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Feb 27, 2024
1 parent 843f632 commit 3047339
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,10 @@ <h1 id="my-heading" style="margin-bottom: 5px; margin-left: 0">

<div class="genres">
<h2 id="search-title" style="margin-top: 35px; cursor: pointer">Popular Worldwide: </h2>
<button type="button" id="button-clear" style="display: none;">Clear Search</button>
</div>

<main id="most-popular"></main>

<div class="genres">
<h1 id="other1"></h1>
</div>

<div class="genres">
<h2 style="margin-top: 35px; cursor: pointer">Award-Winning Movies:</h2>
</div>
Expand Down
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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++) {
Expand Down Expand Up @@ -109,10 +107,6 @@ function updateUniqueMoviesViewed(movieId) {
}
}

clearButton.addEventListener('click', () => {
window.location.reload();
});

function rotateUserStats() {
const stats = [
{
Expand Down

0 comments on commit 3047339

Please sign in to comment.