Skip to content
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

Add dynamic book list using JavaScript #1

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Conversation

pachicodes
Copy link
Owner

@pachicodes pachicodes commented Feb 17, 2025

Add dynamic book list display using JavaScript.

  • index.html

    • Add a div with id book-container to hold dynamically added books.
    • Remove hardcoded book information within div elements with class book.
  • script.js

    • Remove the author element creation from createBookCard function.
    • Update the class name from book to book-card in createBookCard function.
    • Add a DOMContentLoaded event listener to call displayBooks function when DOM content is loaded.
  • style.css

    • Update the class name from book to book-card in the styles.

For more details, open the Copilot Workspace session.

Add dynamic book list display using JavaScript.

* **index.html**
  - Add a `div` with id `book-container` to hold dynamically added books.
  - Remove hardcoded book information within `div` elements with class `book`.

* **script.js**
  - Remove the `author` element creation from `createBookCard` function.
  - Update the class name from `book` to `book-card` in `createBookCard` function.
  - Add a DOMContentLoaded event listener to call `displayBooks` function when DOM content is loaded.

* **style.css**
  - Update the class name from `book` to `book-card` in the styles.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pachicodes/livros-umbanda?shareId=XXXX-XXXX-XXXX-XXXX).
@pachicodes pachicodes merged commit 8c59edb into main Feb 17, 2025
@pachicodes pachicodes deleted the add-dynamic-book-list branch February 17, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant