Skip to content

Commit

Permalink
Update: Enhanced loading times (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 23, 2024
1 parent c1c30a1 commit b23f545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions MovieVerse-Frontend/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,8 +753,7 @@ async function fetchMovieRatings(imdbId, tmdbMovieData) {
imdbRating = 'N/A';
}

const rtRatingObj = data.Ratings.find(rating => rating.Source === "Rotten Tomatoes");
let rtRating = rtRatingObj ? rtRatingObj.Value : 'N/A';
let rtRating = 'N/A';

let metascore = data.Metascore ? `${data.Metascore}/100` : 'N/A';
let awards = data.Awards;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ <h1 id="my-heading" style="margin-bottom: -25px" class="notranslate">
</button>
<form id="form">
<div class="search-container">
<input type="text" id="search" placeholder="Search For Films, Actors..." style="width: 250px; margin-right: 5px" class="search" title="Search for movies, actors, TV series, and more!" />
<input type="text" id="search" placeholder="Search For Films, Actors..." style="width: 250px; margin-right: 5px" class="search" title="Search for movies, actors, TV series, and more!" required />
<button type="button" id="button-search" onclick="handleSearch()">Search</button>
</div>
<div id="search-results" class="search-results"></div>
Expand Down

0 comments on commit b23f545

Please sign in to comment.