document.querySelectorAll('.productItem').forEach(n => {
const thumbs = new Swiper(n.querySelector('.product-thumbs'), {
spaceBetween: 10,
centeredSlides: true,
slidesPerView: 'auto',
touchRatio: 0.2,
slideToClickedSlide: true,
slidesPerView: 3,
});
const slider = new Swiper(n.querySelector('.product-top'), {
navigation: {
nextEl: n.querySelector('.swiper-button-next'),
prevEl: n.querySelector('.swiper-button-prev'),
},
spaceBetween: 10,
thumbs: {
swiper: n.querySelector('.product-thumbs'),
}
});
slider.controller.control = thumbs;
thumbs.controller.control = slider; - эти строки не нужны?
});
noUiSlider.create(asideRange, {
connect: true,
start: [500, 4000],
range: {
'min': [0],
'10%': [500, 500],
'50%': [4000, 1000],
'max': [10000]
},
cssPrefix: 'noUi-', // defaults to 'noUi-',
// cssClasses: {
// handle: 'custom-handle',
// }
});