@@ -1384,6 +1384,10 @@ async function loadWatchLists() {
1384
1384
const title = document . createElement ( 'h3' ) ;
1385
1385
title . textContent = "Favorite Movies" ;
1386
1386
title . className = 'watchlist-title' ;
1387
+ title . style . cursor = 'pointer' ;
1388
+ title . addEventListener ( 'click' , ( ) => {
1389
+ favoritesDiv . scrollIntoView ( { behavior : 'smooth' } ) ;
1390
+ } ) ;
1387
1391
1388
1392
const description = document . createElement ( 'p' ) ;
1389
1393
description . textContent = "A collection of your favorite movies." ;
@@ -1419,6 +1423,10 @@ async function loadWatchLists() {
1419
1423
const title = document . createElement ( 'h3' ) ;
1420
1424
title . textContent = "Favorite TV Series" ;
1421
1425
title . className = 'watchlist-title' ;
1426
+ title . style . cursor = 'pointer' ;
1427
+ title . addEventListener ( 'click' , ( ) => {
1428
+ favoritesDiv . scrollIntoView ( { behavior : 'smooth' } ) ;
1429
+ } ) ;
1422
1430
1423
1431
const description = document . createElement ( 'p' ) ;
1424
1432
description . textContent = "A collection of your favorite TV series." ;
@@ -1762,6 +1770,10 @@ function createWatchListDiv(watchlist) {
1762
1770
const title = document . createElement ( 'h3' ) ;
1763
1771
title . textContent = watchlist . name ;
1764
1772
title . className = 'watchlist-title' ;
1773
+ title . style . cursor = 'pointer' ;
1774
+ title . addEventListener ( 'click' , ( ) => {
1775
+ watchlistDiv . scrollIntoView ( { behavior : 'smooth' } )
1776
+ } ) ;
1765
1777
1766
1778
const description = document . createElement ( 'p' ) ;
1767
1779
description . textContent = watchlist . description ;
0 commit comments