mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-28 21:05:36 -04:00
feat: modal base styling complete
This commit is contained in:
parent
72997086cc
commit
068639b1fc
3 changed files with 57 additions and 6 deletions
|
@ -88,6 +88,10 @@ submitButton.addEventListener('click', event => {
|
|||
const readBtn = document.querySelector('#read-button').value;
|
||||
const bookIsRead = readBtn === 'on' ? true : false;
|
||||
|
||||
if (author === "" || title === "") {
|
||||
return
|
||||
}
|
||||
|
||||
// create book object
|
||||
const newBook = new Book(title, author, bookIsRead);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue