Skip to content

practice-js-dom-elements#157

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

practice-js-dom-elements#157
satoshi300 wants to merge 6 commits intodevmentor-pl:masterfrom
satoshi300:master

Conversation

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

Michale,

Super, o to chodziło! 👍
Zostawiłem parę drobnych uwag :)

Comment on lines +5 to +10
console.log(commentsItems);
const dataInfoElements = commentsItems.querySelectorAll('[data-info]');
if (dataInfoElements) {
console.log('data-info wystepuje ' + dataInfoElements.length + ' razy');
}
}
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.

Uwaga na formatowanie - coś nie tak z odstępami ;)

});


}
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.

👍

// },
// text: 'Click me!',
// }

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 on lines +40 to +47
links.forEach(function (link) {
const liEl = document.createElement('li');
const aEl = document.createElement('a');
aEl.innerText = link.text;
aEl.setAttribute('href', link.href);
liEl.appendChild(aEl);
navElement.appendChild(liEl);
})
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.

Super, o to chodziło! 👍

Comment on lines +34 to +38
const links = [
{ text: 'start', href: '/' },
{ text: 'galeria', href: '/gallery' },
{ text: 'kontakt', href: '/contact' }
];
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 było wykorzystać po prostu menuItems, nie trzeba było tworzyć nowej zmiennej.

}
}
}

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