Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Отрисуй меня полностью #6

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

SergeyMedved
Copy link
Contributor

@SergeyMedved SergeyMedved commented Dec 5, 2024

js/preview.js Outdated
@@ -0,0 +1,24 @@
const appendPhotos = (data) => {

const pictures = document.querySelector('.pictures');
Copy link
Collaborator

Choose a reason for hiding this comment

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

const pictures = document.querySelector('.pictures'); название этой переменной и других, в которых содержаться DOM-элементы, нужно привести к виду в соответсвии с критерием Д6

js/preview.js Outdated
const pictureTemplate = document.querySelector('#picture').content;
const photos = new DocumentFragment();

data.forEach((element) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Деструктуризируй
data.forEach((element) => { -> data.forEach(({ url, description, likes, comments }) => {

@keksobot keksobot merged commit eeab96d into htmlacademy-javascript:master Dec 6, 2024
1 check passed
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.

3 participants