-
Notifications
You must be signed in to change notification settings - Fork 1
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
Открывается и закрывается #7
Открывается и закрывается #7
Conversation
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
js/render-thumbnails.js
Outdated
}; | ||
|
||
export {renderThumbnails}; | ||
export {pictures}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
один экспорт на все
js/render-thumbnails.js
Outdated
@@ -0,0 +1,28 @@ | |||
import {createPhotoList} from './data.js'; | |||
|
|||
const pictures = document.querySelector('.pictures'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
совсем не явно что это элемент
укажи что picturesEl
или picturestContainer
js/render-thumbnails.js
Outdated
import {createPhotoList} from './data.js'; | ||
|
||
const pictures = document.querySelector('.pictures'); | ||
const thumbnailsTemplate = document.querySelector('#picture') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thumbnailsTemplate -> thumbnailTemplate тк это один элемент
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
♻️ Я собрал ваш пулреквест. Посмотреть можно здесь. |
import {CreatePhotoList} from './data.js'; | ||
import './thumbnails.js'; | ||
import {createPhotoList} from './data.js'; | ||
import {renderThumbnails, picturesContainer} from './render-thumbnails.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
picturesContainer не используется, подчищаем по возможности
document.removeEventListener('keydown', onDocumentKeydown); | ||
} | ||
|
||
const initClickListener = (data) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data бы обозвать более понятно, что это за данные
thumbsDataList например
|
||
commentsList.appendChild(commentsFragment); | ||
|
||
commentCount.firstChild.textContent = `${renderedCommentsLength} из `; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
обнови разметку хтмл, не надо мучаться с "из" еще изменять )
export {getRandomInteger}; | ||
export {isEscapeKey}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
объединяй экспорты
export {getRandomInteger}; | ||
export {isEscapeKey}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
объединяй экспорты
🎓 Открывается и закрывается
💥 https://htmlacademy-javascript.github.io/2357681-kekstagram-2/7/