-
-
Notifications
You must be signed in to change notification settings - Fork 72
West midlands/Millena Mesfin/Module-Data-Flows/Book-lLibrary/Sprint #2 #197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Delete" button does not work.
There are also some improvements I think you can make.
debugging/book-library/index.html
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to https://validator.w3.org/, there are errors in your index.html
. Can you fix these errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you cj fixed it
debugging/book-library/script.js
Outdated
// submission handler | ||
function submit() { | ||
if ( | ||
title.value == null || | ||
title.value == "" || | ||
pages.value == null || | ||
author.value === "" || | ||
parseInt(pages.value) <=0 || | ||
isNaN(pages.value) || | ||
pages.value == "" | ||
) { | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ihave fixed it.
debugging/book-library/script.js
Outdated
|
||
//delete old table | ||
for (let n = rowsNumber - 1; n > 0; n-- { | ||
for (let n = rowsNumber - 1; n > 0; n--) { | ||
table.deleteRow(n); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of deleting the table rows one by one, can you think of a more efficient way to remove all rows (except the <th>...</th>
) in the table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Lines 82, 102:
- Is the value assigned to these
id
attribute unique? - Is there any need to assign an id attribute to either buttons?
- Is the value assigned to these
-
"Delete" does not work.
-
Lines 76:
- With the way the book's title is assigned to an HTML element, a book with a title containing special character sequence such as
<i>
can possibly ruin the display.
- With the way the book's title is assigned to an HTML element, a book with a title containing special character sequence such as
PAWEL BROILO I MODULE DATA FLOWS I BOOK LIBRARY
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.