From 92d588348fca6493da5fc630962b0fab0bdfc861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=AE=D0=BB=D1=8F=20=D0=92=D0=B8=D0=BD=D0=BE=D0=B3=D1=80?= =?UTF-8?q?=D0=B0=D0=B4=D0=BE=D0=B2=D0=B0?= Date: Tue, 28 Jan 2025 16:16:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=82=D0=BE=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=B0=D0=BC=D1=8F=D1=82=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/errorForm.js | 2 +- js/form.js | 2 +- js/form/change-scale.js | 2 +- js/form/effects.js | 2 +- js/list-photo.js | 2 -- js/main.js | 2 +- js/server.js | 2 +- js/user/big-picture.js | 1 - js/user/card.js | 2 +- js/user/hashtegs-validation.js | 2 +- js/user/photo-state.js | 1 - js/user/thumbnails.js | 2 +- js/user/user-pictures.js | 2 +- js/util.js | 2 +- 14 files changed, 11 insertions(+), 15 deletions(-) diff --git a/js/errorForm.js b/js/errorForm.js index 1047ee6..2c66d71 100644 --- a/js/errorForm.js +++ b/js/errorForm.js @@ -35,4 +35,4 @@ export const renderErrorForm = () => { newErrorTemplate.remove(); } }; -// + diff --git a/js/form.js b/js/form.js index 8fd808d..7179ab2 100644 --- a/js/form.js +++ b/js/form.js @@ -64,4 +64,4 @@ form.addEventListener('submit', (evt) => { .finally (enableSubmitButton); } }); -// + diff --git a/js/form/change-scale.js b/js/form/change-scale.js index 8cba8d8..a303000 100644 --- a/js/form/change-scale.js +++ b/js/form/change-scale.js @@ -30,4 +30,4 @@ buttonBigger.addEventListener('click', onIncreaseStep); buttonSmaller.addEventListener('click', onDecreaseStep); export const resetScale = () => photoPreview.style.removeProperty('transform'); -// + diff --git a/js/form/effects.js b/js/form/effects.js index 24fe477..e969c46 100644 --- a/js/form/effects.js +++ b/js/form/effects.js @@ -75,4 +75,4 @@ const resetEffect = () => { effectsList.dispatchEvent(changeEvent); }; export {resetEffect}; -// + diff --git a/js/list-photo.js b/js/list-photo.js index 16ed4f1..8909602 100644 --- a/js/list-photo.js +++ b/js/list-photo.js @@ -41,7 +41,6 @@ function selectFilter() { filteredData = pictures; } renderThumbnails(filteredData); - } function sortPhotos (picturesData) { @@ -52,4 +51,3 @@ function sortPhotos (picturesData) { pictures = picturesData; } export {sortPhotos}; -// diff --git a/js/main.js b/js/main.js index 6086396..efd9518 100644 --- a/js/main.js +++ b/js/main.js @@ -12,4 +12,4 @@ getData () renderThumbnails(photos); }) .catch(renderError); -// + diff --git a/js/server.js b/js/server.js index d7bc423..748aff5 100644 --- a/js/server.js +++ b/js/server.js @@ -27,4 +27,4 @@ const getData = () => load(Route.GET_DATA, ErrorText.GET_DATA); const sendData = (body) => load(Route.SEND_DATA, ErrorText.SEND_DATA, Method.POST, body); export {getData, sendData}; -// + diff --git a/js/user/big-picture.js b/js/user/big-picture.js index 0feffaa..e46822f 100644 --- a/js/user/big-picture.js +++ b/js/user/big-picture.js @@ -40,4 +40,3 @@ const onCloseButtonClick = closeModal; closeButton.addEventListener('click', onCloseButtonClick); export {openModal}; -// diff --git a/js/user/card.js b/js/user/card.js index e192d7c..f0c4571 100644 --- a/js/user/card.js +++ b/js/user/card.js @@ -35,4 +35,4 @@ export const renderComments = (comments) => { currentComments = comments; loaderButton.click(); }; -// + diff --git a/js/user/hashtegs-validation.js b/js/user/hashtegs-validation.js index da89d21..3a5fed9 100644 --- a/js/user/hashtegs-validation.js +++ b/js/user/hashtegs-validation.js @@ -76,4 +76,4 @@ pristine.addValidator( ); export { validate, resetValidation }; -// + diff --git a/js/user/photo-state.js b/js/user/photo-state.js index b32f9d0..6844a6b 100644 --- a/js/user/photo-state.js +++ b/js/user/photo-state.js @@ -5,4 +5,3 @@ const savePhotos = (newPhotos) => { const getPhotoById = (id) => photos.find((photo) => photo.id === id); export { savePhotos, getPhotoById }; -// diff --git a/js/user/thumbnails.js b/js/user/thumbnails.js index fc77527..d7e2253 100644 --- a/js/user/thumbnails.js +++ b/js/user/thumbnails.js @@ -36,4 +36,4 @@ const clearThumbnails = () => container.querySelectorAll('.picture').forEach((it }); export {renderThumbnails, clearThumbnails}; -// + diff --git a/js/user/user-pictures.js b/js/user/user-pictures.js index ef67f11..8837a8d 100644 --- a/js/user/user-pictures.js +++ b/js/user/user-pictures.js @@ -15,4 +15,4 @@ fileField.addEventListener('change', () => { (it) => (it.style.backgroundImage = `url(${url})`)); } }); -// + diff --git a/js/util.js b/js/util.js index c4fd1e1..ccfc5b8 100644 --- a/js/util.js +++ b/js/util.js @@ -31,4 +31,4 @@ function debounce (callback, timeoutDelay = 500) { } export {getRandomInteger,isEscapeKey,isUniqueArray,renderError,debounce,getSortRandom}; -// +