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 #7

Closed
wants to merge 2 commits into from
Closed

Модуль 6 #7

wants to merge 2 commits into from

Conversation

dansergey
Copy link
Contributor

No description provided.

@jsru-1
Copy link
Contributor

jsru-1 commented Mar 5, 2025

Проверьте, пожалуйста, ваше решение, не все тесты прошли (PR не будет принят до тех пор, пока все добавленные задачи не будут решены).

@dansergey
Copy link
Contributor Author

Как узнать где ошибка в коде, если в тестах следующая ошибка?

✖ Error while running the tests! Exit code: 1

Error: Process completed with exit code 1.

@jsru-1
Copy link
Contributor

jsru-1 commented Mar 6, 2025

Проверьте, пожалуйста, ваше решение, не все тесты прошли (PR не будет принят до тех пор, пока все добавленные задачи не будут решены).

1 similar comment
@jsru-1
Copy link
Contributor

jsru-1 commented Mar 6, 2025

Проверьте, пожалуйста, ваше решение, не все тесты прошли (PR не будет принят до тех пор, пока все добавленные задачи не будут решены).

Comment on lines 62 to 66
#onMenuClick = (event) => {
const row = event.target.closest('tr');
row.remove();

}

Choose a reason for hiding this comment

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

тут не хватает отступов

temp.innerHTML = this.#template();
this.elem = temp.firstElementChild;

this.elem.addEventListener('click', this.#onMenuClick);

Choose a reason for hiding this comment

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

У тебя обработчик события, удаляет строчку если нажали куда-угодно, нужно учитывать, то что нажимать для удаления нужно только на кнопку <button class="remove-btn">X</button>

Comment on lines 81 to 82
const slideWidth = carouselInner.children[0].offsetWidth;
carouselInner.style.transform = `translateX(-${currentSlide * slideWidth}px)`;

Choose a reason for hiding this comment

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

тут не хватает отступов

@jsru-1
Copy link
Contributor

jsru-1 commented Mar 6, 2025

Проверьте, пожалуйста, ваше решение, не все тесты прошли (PR не будет принят до тех пор, пока все добавленные задачи не будут решены).

@dansergey dansergey closed this Mar 6, 2025
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