|
|
@ -3,24 +3,28 @@ import {tns} from "tiny-slider/src/tiny-slider";
|
|
|
|
var sliderSimple ;
|
|
|
|
var sliderSimple ;
|
|
|
|
|
|
|
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
document.querySelectorAll('.SliderSimple')?.forEach(function (el) {
|
|
|
|
try {
|
|
|
|
if (el.classList.contains('.tns-slider')){
|
|
|
|
document.querySelectorAll('.SliderSimple')?.forEach(function (el) {
|
|
|
|
console.log('ignore');
|
|
|
|
if (el.classList.contains('.tns-slider')){
|
|
|
|
return 'ignore';
|
|
|
|
console.log('ignore');
|
|
|
|
}
|
|
|
|
return 'ignore';
|
|
|
|
sliderSimple = tns({
|
|
|
|
}
|
|
|
|
container: el,
|
|
|
|
sliderSimple = tns({
|
|
|
|
items: 1,
|
|
|
|
container: el,
|
|
|
|
autoplay: true,
|
|
|
|
items: 1,
|
|
|
|
autoplayButton: false,
|
|
|
|
autoplay: true,
|
|
|
|
// nextButton: false,
|
|
|
|
autoplayButton: false,
|
|
|
|
controls: false,
|
|
|
|
// nextButton: false,
|
|
|
|
autoplayHoverPause: true,
|
|
|
|
controls: false,
|
|
|
|
mouseDrag: true,
|
|
|
|
autoplayHoverPause: true,
|
|
|
|
slideBy: 1,
|
|
|
|
mouseDrag: true,
|
|
|
|
autoplayTimeout: 5000,
|
|
|
|
slideBy: 1,
|
|
|
|
// speed:10000,
|
|
|
|
autoplayTimeout: 5000,
|
|
|
|
});
|
|
|
|
// speed:10000,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|