Skip to content

add tasks 1-5#163

Open
MagdalenaKoltuniak wants to merge 6 commits intodevmentor-pl:masterfrom
MagdalenaKoltuniak:master
Open

add tasks 1-5#163
MagdalenaKoltuniak wants to merge 6 commits intodevmentor-pl:masterfrom
MagdalenaKoltuniak:master

Conversation

@MagdalenaKoltuniak
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.

Magdo,

Bardzo dobrze sobie poradziłaś! 👍
Zostawiłem jedną drobną uwagę ;)

items.forEach(el => {
console.log(el.dataset.info);
});
}
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.

👍

if (url) {
link.href = 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.

👍

03/app.js Outdated
Comment on lines +20 to +21
for (const key in buttonSettings) {
if (key === 'attr') {
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.

Mocno się zastanawiam czy warto tutaj robić tą pętle skoro i tak rozważasz każdy przypadek z osobna.

Może lepiej pominąć pętlę zewnętrzną i zostawić to co w środku :)

});

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 newCurrBtn = newArticle.querySelector('.js-curr');
if (newCurrBtn) newCurrBtn.classList.remove('js-curr');
parent.parentElement.insertBefore(newArticle, parent);
}
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.

👍

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.

Magdo,

Super, o to chodziło! 👍

button.textContent = buttonSettings.text;
}

for (const key in buttonSettings.attr) {
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.

Teraz w moim odczuciu jest czytelniej :)

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