Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tokisuno/js-library


https://github.com/tokisuno/js-library

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Outline

1. All of your book objects are going to be stored in an array, so add a function to the script (not the constructor) that can take user’s input and store the new book objects into an array.

2. Add a “NEW BOOK” button that brings up a form allowing users to input the details for the new book:
* author
* title
* number of page
* whether it’s been read
* anything else you might want.

3. Add a button on each book’s display to remove the book from the library.
* You will need to associate your DOM elements with the actual book objects in some way.
* One easy solution is giving them a data-attribute that corresponds to the index of the library array.

4. Add a button on each book’s display to change its read status.
* To facilitate this you will want to create the function that toggles a book’s read status on your Book prototype instance.