generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 142
London | 25-ITP-May | Houssam Lahlah | Sprint 2 | Feature/book library #322
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
Open
HoussamLh
wants to merge
18
commits into
CodeYourFuture:main
Choose a base branch
from
HoussamLh:feature/book-library
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8bd778e
- change title.value to author.value.
HoussamLh bcdfde3
Merge branch 'CodeYourFuture:main' into feature/book-library
HoussamLh fff1b69
Merge branch 'CodeYourFuture:main' into feature/book-library
HoussamLh f439e87
Validate my HTML code online using W3.org
HoussamLh 2537f48
Remove calling render() function to avoid duplicate
HoussamLh fd3649e
Fix the page number to passe and input as a number not as a string
HoussamLh 94f7e3c
add a suffix like El and rename them to indicate DOM elements
HoussamLh b5a0f4b
Removes leading/trailing spaces and converts pages to a number and re…
HoussamLh b0c6627
Update to remove all rows at once and use innerText instead innerHTML
HoussamLh 283fda2
Renamed submit() to submitBook() to avoid HTML form conflicts
HoussamLh b2a7d5e
fix: correct Book Library JS functionality
HoussamLh 9adee93
add validation for page count input in Book Library
HoussamLh b16c7f2
Refactor table row creation to centralize cell creation and modulariz…
HoussamLh 1de7803
update the render() function to delete just the the rows not the whol…
HoussamLh 9b6df60
update the code to handle the toggle checkbox Read or Not Read
HoussamLh e953bb4
validate pages input to accept only positive whole numbers
HoussamLh 25f7083
Refactor delete button to use index instead of book object
HoussamLh e5f6ec3
Refactor read/unread button creation to use a helper function
HoussamLh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What about the checkbox event handler?
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.
Hi cjyuan,
Thank you for your guidence.
I added an event handler for the Read/Not Read button, which toggles the check property on the correct book object and re-renders the table. This ensures the status updates immediately when clicked.