Skip to content

Zadania DOM#145

Open
Amanitus wants to merge 2 commits intodevmentor-pl:masterfrom
Amanitus:master
Open

Zadania DOM#145
Amanitus wants to merge 2 commits intodevmentor-pl:masterfrom
Amanitus:master

Conversation

@Amanitus
Copy link
Copy Markdown

@Amanitus Amanitus commented Dec 6, 2024

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.

Piotrze,

Wszystko jest ok! 👍

const item = document.querySelector('.comments__item.comments__item--newest');
console.log(item);
const spanList = item.querySelectorAll('[data-info]');
console.log(spanList.length); No newline at end of file
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 url = item.getAttribute('data-url')
item.setAttribute('href', url);
console.log(url)
})
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 parent = document.querySelector('.parent-for-button');
parent.appendChild(button); No newline at end of file
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.

👍

a.setAttribute('href', item.url);
a.innerText = item.text;
});
nav.appendChild(ul); No newline at end of file
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.

👍

lastButton.innerText = 'Wkrótce';
firstArticle.appendChild(lastButton);
const addArticle = curr.parentElement.parentElement;
addArticle.insertBefore(firstArticle, addArticle.firstChild); No newline at end of file
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.

👍

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