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

Надо подкачаться #14

Merged
merged 6 commits into from
Jan 17, 2025

Conversation

generalofgotei
Copy link
Contributor

@generalofgotei generalofgotei commented Jan 16, 2025

@keksobot keksobot changed the title Module11 task1 Надо подкачаться Jan 16, 2025
@keksobot
Copy link
Contributor

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

keksobot pushed a commit that referenced this pull request Jan 16, 2025
@keksobot
Copy link
Contributor

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

keksobot pushed a commit that referenced this pull request Jan 16, 2025
@keksobot
Copy link
Contributor

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

keksobot pushed a commit that referenced this pull request Jan 16, 2025
js/form.js Outdated
const imgUploadElement = formElement.querySelector('.img-upload__input');
const imgEditElement = formElement.querySelector('.img-upload__overlay');
const imgEditCloseButtonElement = formElement.querySelector('.img-upload__cancel');
const body = document.body;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Или удали и используй document.body или переименуй в bodyELement

imgUploadElement.value = '';
stopValidator();
resetSettings();
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

У формы должно быть собственное api для сброса параметров
Скорее всего вот это https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset, я точно не помню

js/form.js Outdated
newHashTagsElement.value = '';
}

function blockSubmitButton() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Убери эту функцию. Нет смысла делать целую процедуру ради одной строчки

js/form.js Outdated
function blockSubmitButton() {
submitButtonElement.disabled = true;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

Аналогично. Удали пожалуйста функцию, в ней нет смысла

js/form.js Outdated
}

function blockSubmitButton() {
submitButtonElement.disabled = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Атрибуты здесь и далее нужно менять через setAttribute, а не напрямую

@@ -70,7 +69,7 @@ const formatScale = (value) => `${value * 100}%`;

const changeScale = (value) => {
scaleValue = value;
ImageElement.style.transform = `scale(${scaleValue})`;
imageElement.style.transform = `scale(${scaleValue})`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Здесь и далее стилевые атрибуты нужно менять через style.setProperty

@keksobot
Copy link
Contributor

♻️ Я собрал ваш пулреквест. Посмотреть можно здесь.

keksobot pushed a commit that referenced this pull request Jan 17, 2025
@keksobot keksobot merged commit d648072 into htmlacademy-javascript:master Jan 17, 2025
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