Skip to content

Tasks completed#160

Open
ArturDevCraft wants to merge 5 commits intodevmentor-pl:masterfrom
ArturDevCraft:master
Open

Tasks completed#160
ArturDevCraft wants to merge 5 commits intodevmentor-pl:masterfrom
ArturDevCraft:master

Conversation

@ArturDevCraft
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Owner

@devmentor-pl devmentor-pl left a comment

Choose a reason for hiding this comment

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

Arturze,

Wszystko ok! 👍 🥇


const dataInfo = commentsItem.querySelectorAll('[data-info]');

console.log(dataInfo.length);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

links.forEach((element) => {
const dataUrl = element.getAttribute('data-url');
element.setAttribute('href', dataUrl);
});
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍


button.innerText = buttonSettings.text;

buttonParent.appendChild(button);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

menu.appendChild(li);
});

document.querySelector('nav').appendChild(menu);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

👍

const siblingsArr = Array.from(siblings);

siblingsArr.forEach((element) => {
element !== curr ? element.classList.add('siblings') : '';
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Można też krócej: element !== curr && element.classList.add('siblings') - jeśli pierwsze jest prawą, wykonaj drugie

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.

2 participants