diff --git a/themes/modern2/assets/new/scripts/core/affiche-item.js b/themes/modern2/assets/new/scripts/core/affiche-item.js index c159fff0c..f3b50b343 100644 --- a/themes/modern2/assets/new/scripts/core/affiche-item.js +++ b/themes/modern2/assets/new/scripts/core/affiche-item.js @@ -269,11 +269,15 @@ try { const afficheSwiper = new Swiper(".afficheSwiper", { slidesPerView: 1, spaceBetween: 0, - loop: false, navigation: { prevEl: ".affiche-prev", nextEl: ".affiche-next", }, + loop: false, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, }); if (afficheSwiper.slides.length < 2) { diff --git a/themes/modern2/assets/new/scripts/core/article.js b/themes/modern2/assets/new/scripts/core/article.js index de56e03d7..f9da216a0 100644 --- a/themes/modern2/assets/new/scripts/core/article.js +++ b/themes/modern2/assets/new/scripts/core/article.js @@ -198,6 +198,10 @@ const articleSwiper = new Swiper(".articleSwiper", { slidesPerView: 1, spaceBetween: 0, loop: false, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".article-prev", nextEl: ".article-next", @@ -215,7 +219,7 @@ const articleBottomSwiper = new Swiper(".articleBottomSwiper", { spaceBetween: 0, loop: false, autoplay: { - delay: 3000, + delay: 5000, disableOnInteraction: false, }, loop: true, diff --git a/themes/modern2/assets/new/scripts/core/main.js b/themes/modern2/assets/new/scripts/core/main.js index 374e1f582..e22db469f 100644 --- a/themes/modern2/assets/new/scripts/core/main.js +++ b/themes/modern2/assets/new/scripts/core/main.js @@ -223,6 +223,10 @@ const mainNewsSwiper = new Swiper(".mainNewsSwiper", { spaceBetween: 0, lazyLoading: true, loop: true, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".main-news-prev", nextEl: ".main-news-next", @@ -233,6 +237,10 @@ const videoSwiper = new Swiper(".videoSwiper", { slidesPerView: 3, spaceBetween: 60, lazyLoading: true, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".video-prev", nextEl: ".video-next", @@ -242,6 +250,10 @@ const videoSwiper = new Swiper(".videoSwiper", { const photoSwiper = new Swiper(".photoSwiper", { slidesPerView: 3, spaceBetween: 60, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".photo-prev", nextEl: ".photo-next", @@ -251,6 +263,10 @@ const photoSwiper = new Swiper(".photoSwiper", { const photoScrollerSwiper = new Swiper(".photoScrollerSwiper", { slidesPerView: 1, spaceBetween: 0, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".photo-scroller-prev", nextEl: ".photo-scroller-next", @@ -262,7 +278,8 @@ const bannerSwiper_1 = new Swiper(".bannerSwiper-1", { spaceBetween: 0, loop: true, autoplay: { - delay: "5000", + delay: 5000, + disableOnInteraction: false, }, }); @@ -272,7 +289,8 @@ const bannerSwiper_2 = new Swiper(".bannerSwiper-2", { loop: true, autoplay: { - delay: "5000", + delay: 5000, + disableOnInteraction: false, }, }); @@ -282,7 +300,8 @@ const mainAdvertSwiper = new Swiper(".mainAdvertSwiper", { loop: true, autoplay: { - delay: "5000", + delay: 5000, + disableOnInteraction: false, }, }); @@ -290,6 +309,10 @@ const partnerSwiper = new Swiper(".partnerSwiper", { slidesPerView: 5, spaceBetween: 60, centeredSlides: true, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, loop: true, navigation: { prevEl: ".partner-prev", @@ -409,7 +432,8 @@ const trendingSwiper = new Swiper(".trendingSwiper", { spaceBetween: 0, centeredSlides: true, autoplay: { - delay: "5000", + delay: 5000, + disableOnInteraction: false, }, }); diff --git a/themes/modern2/assets/new/scripts/core/rubric.js b/themes/modern2/assets/new/scripts/core/rubric.js index 548756efb..164c74fce 100644 --- a/themes/modern2/assets/new/scripts/core/rubric.js +++ b/themes/modern2/assets/new/scripts/core/rubric.js @@ -171,6 +171,10 @@ const mobileAsideCloser = new AssignEvent( const photoScrollerSwiper = new Swiper(".photoScrollerSwiper", { slidesPerView: 1, spaceBetween: 0, + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, navigation: { prevEl: ".photo-scroller-prev", nextEl: ".photo-scroller-next",