Know what might be neato? I think it needs MOAR ... 🔔
Part 1: Persistodon
It'd be nice if we could close the window and not lose all of our data.
TODO (Part 1)
There are // TODO (Part 1)
comments in the JavaScript code to guide your way while you add
these features:
- persist the todo items to
localStorage
as they are added to the to do list
- load any todo items from
localStorage
when the page loads
Part 2: Sharasaurus
How could we view the same list on our phone as we are viewing on our laptop? Share the list with a friend?
TODO (Part 2)
There are // TODO (Part 2)
comments in the JavaScript to guide you in your way while you add these
features:
- notice if the page was passed a query string and to populate
localStorage
initially with the items in the query string
- modify the
Get Sharable URL
button so that it updates the url so that all of the todo
items currently stored in localStorage
are encoded in the query string
in the
browser's address bar