Skip to content

Commit

Permalink
Update: Enhanced app functionalities (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 26, 2024
1 parent 544bf84 commit 9e23eeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,11 @@ async function loadWatchLists() {
}
else {
displaySection.innerHTML = '';
displaySection.innerHTML += '<p style="text-align: center; margin-top: 20px; color: white"><strong>Your Watch Lists</strong></p>';
displaySection.innerHTML += '<p id="watchlist-header" style="text-align: center; font-size: 20px; margin-top: 20px; color: #ff8623; cursor: pointer"><strong>Your Watch Lists</strong></p>';
displaySection.addEventListener('click', function(e) {
e.preventDefault();
displaySection.scrollIntoView({behavior: 'smooth'});
});
watchlists.sort((a, b) => a.order - b.order);
watchlists.sort((a, b) => (b.pinned === a.pinned) ? 0 : b.pinned ? 1 : -1);
for (const watchlist of watchlists) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,11 @@ async function loadWatchLists() {
}
else {
displaySection.innerHTML = '';
displaySection.innerHTML += '<p style="text-align: center; margin-top: 20px; color: white"><strong>Your Watch Lists</strong></p>';
displaySection.innerHTML += '<p id="watchlist-header" style="text-align: center; font-size: 20px; margin-top: 20px; color: #ff8623; cursor: pointer"><strong>Your Watch Lists</strong></p>';
displaySection.addEventListener('click', function(e) {
e.preventDefault();
displaySection.scrollIntoView({behavior: 'smooth'});
});
watchlists.sort((a, b) => a.order - b.order);
watchlists.sort((a, b) => (b.pinned === a.pinned) ? 0 : b.pinned ? 1 : -1);
for (const watchlist of watchlists) {
Expand Down

0 comments on commit 9e23eeb

Please sign in to comment.