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

Library project #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Library project #11

wants to merge 2 commits into from

Conversation

DenisSteshin
Copy link
Owner

No description provided.

@DenisSteshin DenisSteshin changed the title task is done Library project May 19, 2022
<!--***************************************-->
<div class="cart_book">
<div class="cover"></div>
<span class="name-book">Name book 6</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

список книг должен создаваться динамически из массива

const books = Array.from(contentMain.children);

books.forEach((book) => {
const ratingBook = Array.from(book.children[3].children[0].children).filter(
Copy link
Collaborator

Choose a reason for hiding this comment

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

book.children[3].children[0].children - не очень понятная запись, а если структура изменится? Может можно сразу напрямую обратиться к элементу?

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.

3 participants