Skip to content

Commit

Permalink
Merge pull request #12 from julia1121i1/module12-task2
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Jan 28, 2025
2 parents dd0293c + 92d5883 commit 998cbf6
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion js/errorForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ export const renderErrorForm = () => {
newErrorTemplate.remove();
}
};
//

2 changes: 1 addition & 1 deletion js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ form.addEventListener('submit', (evt) => {
.finally (enableSubmitButton);
}
});
//

2 changes: 1 addition & 1 deletion js/form/change-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ buttonBigger.addEventListener('click', onIncreaseStep);
buttonSmaller.addEventListener('click', onDecreaseStep);

export const resetScale = () => photoPreview.style.removeProperty('transform');
//

2 changes: 1 addition & 1 deletion js/form/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ const resetEffect = () => {
effectsList.dispatchEvent(changeEvent);
};
export {resetEffect};
//

2 changes: 0 additions & 2 deletions js/list-photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function selectFilter() {
filteredData = pictures;
}
renderThumbnails(filteredData);

}

function sortPhotos (picturesData) {
Expand All @@ -52,4 +51,3 @@ function sortPhotos (picturesData) {
pictures = picturesData;
}
export {sortPhotos};
//
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ getData ()
renderThumbnails(photos);
})
.catch(renderError);
//

2 changes: 1 addition & 1 deletion js/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
//

1 change: 0 additions & 1 deletion js/user/big-picture.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ const onCloseButtonClick = closeModal;
closeButton.addEventListener('click', onCloseButtonClick);

export {openModal};
//
2 changes: 1 addition & 1 deletion js/user/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ export const renderComments = (comments) => {
currentComments = comments;
loaderButton.click();
};
//

2 changes: 1 addition & 1 deletion js/user/hashtegs-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ pristine.addValidator(
);

export { validate, resetValidation };
//

1 change: 0 additions & 1 deletion js/user/photo-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ const savePhotos = (newPhotos) => {
const getPhotoById = (id) => photos.find((photo) => photo.id === id);

export { savePhotos, getPhotoById };
//
2 changes: 1 addition & 1 deletion js/user/thumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ const clearThumbnails = () => container.querySelectorAll('.picture').forEach((it
});

export {renderThumbnails, clearThumbnails};
//

2 changes: 1 addition & 1 deletion js/user/user-pictures.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ fileField.addEventListener('change', () => {
(it) => (it.style.backgroundImage = `url(${url})`));
}
});
//

0 comments on commit 998cbf6

Please sign in to comment.