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 3519da1 commit 7357683
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions MovieVerse-Mobile/www/MovieVerse-Frontend/js/comments-tv.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ commentForm.addEventListener("submit", async (e) => {
}
});

var modal = document.getElementById("comment-modal");
var btn = document.getElementById("toggle-comment-modal");
var span = document.getElementsByClassName("close")[0];
let modal = document.getElementById("comment-modal");
let btn = document.getElementById("toggle-comment-modal");
let span = document.getElementsByClassName("close")[0];

btn.onclick = function() {
modal.style.display = "block";
Expand Down
6 changes: 3 additions & 3 deletions MovieVerse-Mobile/www/MovieVerse-Frontend/js/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ commentForm.addEventListener("submit", async (e) => {
}
});

var modal = document.getElementById("comment-modal");
var btn = document.getElementById("toggle-comment-modal");
var span = document.getElementsByClassName("close")[0];
let modal = document.getElementById("comment-modal");
let btn = document.getElementById("toggle-comment-modal");
let span = document.getElementsByClassName("close")[0];

btn.onclick = function() {
modal.style.display = "block";
Expand Down
2 changes: 1 addition & 1 deletion MovieVerse-Mobile/www/MovieVerse-Frontend/js/tv-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ async function fetchTVRatings(imdbId) {
const response = await fetch(link);
const data = await response.json();

return imdbRating = data.imdbRating ? data.imdbRating : 'IMDb data unavailable but you can check it out by clicking here';
return data.imdbRating ? data.imdbRating : 'IMDb data unavailable but you can check it out by clicking here';
}
catch (error) {
console.log('Error fetching TV series ratings:', error);
Expand Down

0 comments on commit 7357683

Please sign in to comment.