generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 161
Sheffield | May 2025 | Hassan Osman | Sprint 2 | Book Library Project | Feature/book library #279
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
Closed
HassanOHOsman
wants to merge
19
commits into
CodeYourFuture:main
from
HassanOHOsman:feature/book-library
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1b8bd32
submit function fixed so books can add properly
HassanOHOsman ed0ee61
code checks for missing field before adding book.
HassanOHOsman f7421a4
fixed bug for "delete old table" part
HassanOHOsman 38ba266
fixed delete button bugs
HassanOHOsman 0b17d3f
fixed read status check button
HassanOHOsman 783b2fe
HTML errors have been corrected
HassanOHOsman c010c24
removed extra render() call from populateStorage()
HassanOHOsman b4d3d8d
variable names changed to more descriptive ones
HassanOHOsman 3f2fa61
removed check for .value is null as it's useless
HassanOHOsman e74e343
validated & sanitised title, author & page inputs
HassanOHOsman adc9355
restricted the max page count
HassanOHOsman 9adf893
code now deletes all rows in one operation
HassanOHOsman c01bbc9
fixed bug
HassanOHOsman 9b511d4
replaced innerHTML with textContent
HassanOHOsman 3480561
IDs for changeBut & delButton removed - not used
HassanOHOsman d8221e1
renamed 2 btn variables meaningfully
HassanOHOsman df1d123
deletion msg now shows after operation is complete
HassanOHOsman d14a06c
indented if condition correctly
HassanOHOsman d2e13c1
replaced if condition with ? : condition operator
HassanOHOsman 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
Oops, something went wrong.
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.
Why not introduce variables with shorter names so that you don't have to type as much in the code?
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.
Are the variable names that long? 😅 For example, I could've changed "titleInput" to "titleInpt" or "titInput" but I didn't want to compromise on the meaningfulness of the variables. Having said that, I'll aim to produce as much shorter & meaningful variable names in the future moving forward. Thank you CJ 😁