Skip to content

Zadania DOM#145

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

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

Conversation

@Amanitus

@Amanitus Amanitus commented Dec 6, 2024

Copy link
Copy Markdown

No description provided.

@devmentor-pl devmentor-pl left a comment

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.

Piotrze,

Wszystko jest ok! 👍

Comment thread 01/app.js
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.

👍

Comment thread 02/app.js
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.

👍

Comment thread 03/app.js


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.

👍

Comment thread 04/app.js
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.

👍

Comment thread 05/app.js
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