const mySwiper = new Swiper('.slider-3steps', {
scrollbar: {
el: document.getElementById('swiperScrollbar') //где swiperScrollbar - id скорллбара соответственно
},
});
let containers = document.getElementsByClassName('promo-group__swiper-container');
Array.from(containers).forEach(function(element) {
var swiper = new Swiper(element, {
navigation: {
nextEl: element.querySelector('.swiper-button-next'),
prevEl: element.querySelector('.swiper-button-prev')
}
});
});
{'ключ_записи' | lexicon : $_modx->config.cultureKey}
var sliders = document.querySelectorAll('.swiper'),
prevArrow = document.querySelectorAll('.swiper-btn-prev'),
nextArrow = document.querySelectorAll('.swiper-btn-next');
sliders.forEach((slider, idx) => {
let swiper = new Swiper(slider, {
slidesPerView: 6,
spaceBetween: 10,
navigation: {
nextEl: nextArrow[idx],
prevEl: prevArrow[idx],
},
breakpoints: {
320: {
slidesPerView: 2,
spaceBetween: 10
},
480: {
slidesPerView: 3,
spaceBetween: 10
},
970: {
slidesPerView: 6,
spaceBetween: 10
}
}
})
})
assets/images/myimage.jpg
, то в письме должен быть путь http://site.ru/assets/images/myimage.jpg
$mes .= 'Фотография проблемной зоны: <img src="'.$file.'">';
// убрать Content-type:text/plain
Content-type:text/html