diff --git a/Public/Mobile/js/home.js b/Public/Mobile/js/home.js index a879052e2..9c8a6ef15 100644 --- a/Public/Mobile/js/home.js +++ b/Public/Mobile/js/home.js @@ -1,16 +1,17 @@ $(function(){ - + var img = $(".swiper-container .swiper-slide").length; var swiper = new Swiper('.swiper-container', { loop: true, pagination: { el: '.swiper-pagination', clickable: true, }, - autoplay: { + /*autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: false, - }, + },*/ + autoplay: img > 1, }); }); \ No newline at end of file