Skip to content

PAWEL BROILO I MODULE DATA FLOWS I BOOK LIBRARY #220

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
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

PawelBroilo
Copy link

Learners, PR Template

Self checklist

  • [x ] I have committed my files one by one, on purpose, and for a reason
  • [ x] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • [x ] I have tested my changes
  • [x ] My changes follow the style guide
  • [x ] My changes meet the requirements of this task

Changelist

Briefly explain your PR.
I completed corrections for Book Library with Java Script. Files Index.html and script.js are included in Debugging/Book Library Folder in Book Library Project Folder.

Questions

Ask any questions you have for your reviewer.

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

Why did you close PR #218 and delete its branch?

My requests still stand:

  • You need to make changes in debugging/book-library
  • Your need to make changes to HTML code in index.html
  • You need to make changes to JavaScript code in script.js
  • You need to apply label to your PR properly to avoid delay in review
  • Do not create another PR

Please address these issues.

@cjyuan cjyuan added the Reviewed Volunteer to add when completing a review label Apr 23, 2025
@PawelBroilo PawelBroilo added the Complete Participant to add when work is complete and review comments have been addressed label Apr 23, 2025
@cjyuan
Copy link

cjyuan commented Apr 23, 2025

The code was not working when I tested them in the browser.

Did you forget to transfer the code from your implementation to these files?

Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please transfer your code from Book Library.html to index.html and script.js.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why yo deleted the <script> tag in this file that imports the code from script.js?

You have a working implementation in Book Library.html. You can transfer the HTML code (only HTML code) from that file to this file.

@@ -1,3 +1,4 @@
<script>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should only contain JavaScript code.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code in this script has bug and is not working properly. You will need to fix them.

Why don't you transfer your JS code from Book Library.html to this file?

@cjyuan cjyuan removed the Complete Participant to add when work is complete and review comments have been addressed label Apr 23, 2025
Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are getting closer. But you have to make some more changes to make the app work. Please refer to the feedback I left in your code.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't add a proper <script> tag to include your code from script.js, the app won't work properly.

deleteCell.appendChild(delBtn);
});
}
</script>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are <script> at line 1, and </script> at line 103 valid JS code?

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

You app still would not run. Your changes does not address my feedback. Please refer to my previous feedback left in your code.

@PawelBroilo
Copy link
Author

PawelBroilo commented Apr 23, 2025 via email

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

I left you two specific comments:

In your index.html: If you don't add a proper <script> tag to include your code from script.js, the app won't work properly.
In your script.js, are <script> at line 1, and </script> at line 104 valid JS code?

Which part of the comment do you not understand?

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

Don't update Book Library.html. Make change in index.html and script.js.

@PawelBroilo
Copy link
Author

PawelBroilo commented Apr 23, 2025 via email

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

How do we include JS code in a file named script.js into a HTML file?

Feed your JS code to ChatGPT to see if ChatGPT can point out the error in your code.

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

You only need to delete 2 lines of code from script.js for it to work. (You deleted the wrong code)

You only need to add one tag to index.html for it to work.

@PawelBroilo
Copy link
Author

PawelBroilo commented Apr 23, 2025 via email

@cjyuan
Copy link

cjyuan commented Apr 23, 2025

Well, can you delete "<script>" and "</script>" from script.js?

Then next you will just need to include JS code to your HTML using a <script src="..."> tag.

@PawelBroilo PawelBroilo added the Complete Participant to add when work is complete and review comments have been addressed label Apr 23, 2025
@PawelBroilo
Copy link
Author

PawelBroilo commented Apr 23, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Participant to add when work is complete and review comments have been addressed Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants