Skip to content

Commit

Permalink
Форматирует JS в тексте
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaFokina authored Jul 8, 2024
1 parent b45d682 commit 0fb4eff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions recipes/slider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,10 +648,8 @@ const slider = document.querySelector('.slider')
const slides = slider.querySelectorAll('.slide')
let currentSlide = 0

function updateSlider() {
slides.forEach((slide, index) => {
slide.hidden = index !== currentSlide
})
slides.forEach((slide, index) => {
slide.hidden = index !== currentSlide
})
```

Expand Down

0 comments on commit 0fb4eff

Please sign in to comment.