File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h1>Library</h1>
1818 < p > Add books to your virtual library</ p >
1919 </ div >
2020
21- < button data-toggle ="collapse " data-target ="#demo " class ="btn btn-info ">
21+ < button data-toggle ="collapse " data-target ="#demo " class ="btn btn-info ">
2222 Add new book
2323 </ button >
2424
Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ function populateStorage() {
2020 }
2121}
2222
23- const titleInput = document . getElementById ( "title" ) ;
24- const authorInput = document . getElementById ( "author" ) ;
25- const pagesInput = document . getElementById ( "pages" ) ;
26- const readCheckBox = document . getElementById ( "check" ) ;
23+ function Book ( title , author , pages , check ) {
24+ this . title = title ;
25+ this . author = author ;
26+ this . pages = pages ;
27+ this . check = check ;
28+ }
2729
2830//check the right input from forms and if its ok -> add the new book (object in array)
2931//via Book function and start render function
You can’t perform that action at this time.
0 commit comments