Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions JS_step_17/Food/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ window.addEventListener('DOMContentLoaded', function() {

slides[slideIndex - 1].style.display = 'block'; // Как ваша самостоятельная работа - переписать на использование классов show/hide

if (slides.length < 10) {
if (slideIndex < 10) {
current.textContent = `0${slideIndex}`;
} else {
current.textContent = slideIndex;
Expand All @@ -323,4 +323,4 @@ window.addEventListener('DOMContentLoaded', function() {
next.addEventListener('click', function(){
plusSlides(1);
});
});
});