- Local storage
- not calling saveToAdd function https://codepen.io/heggy231/pen/jOypQqp
- Redesign the application to your own aesthetic
- [] Some movies that come back from the API don’t have image urls. Maybe add a default “no image found” image for those movies!
- [] Allow users to rate and/or review movies that are on their watchlist
- [] Let users click on movies to show more details about the movie (rotten tomatoes rating, synopsis, etc.)
<div class="movie">
<div class="card" style="width: 18rem;">
<img src="https://m.media-amazon.com/images/M/MV5BMTMxNTMwODM0NF5BMl5BanBnXkFtZTcwODAyMTk2Mw@@._V1_SX300.jpg"
class="card-img-top" alt="The Dark Knight">
<div class="card-body">
<span class="badge badge-secondary">2008</span>
<h5 class="card-title">The Dark Knight</h5>
<button class="btn btn-primary add-movie" onclick="saveToWatchlist('tt0468569')"></button>
</div>
</div>
</div>
- SceneIt-Part3-Step 3- Create the “My Watchlist” page
Now that we know what movies the user wants to watch, we can give them an interface to see what movies they’ve saved.
- Somewhere in index.html, add a link that says “Go to my watchlist”
- Have that link navigate to “/watchlist.html”
- Create a new watchlist.html file
- Complete this html in a similar style to index.html
- Have the “Scene It” title at the top
- Don’t include a search bar this time
- Have a “movies-container” div to hold the list of saved movies
- Write a watchlist.js file that does the following:
- When the page loads, pull the watchlist from localStorage
- Use localStorage.getItem(‘watchlist’);
- Renders each movie to “movies-container”, just like in index.js
- You can have the movies render exactly like they did in index.js, or you can switch it up!
- When the page loads, pull the watchlist from localStorage
You’ll find that the above ^^ is almost identical to what you did in Part 1! The only difference is that instead of showing a list of movies from data.js*,*** you’ll be showing a list of movies from localStorage.getItem(‘watchlist’);