diff --git a/js/index.js b/js/index.js index 9ac3ea1..8822c63 100644 --- a/js/index.js +++ b/js/index.js @@ -134,7 +134,6 @@ $(document).on('click','#box li',function () { }) - var tabsSwiper = new Swiper('.swiper-container',{ autoplay:false, speed:1000, @@ -143,8 +142,8 @@ var tabsSwiper = new Swiper('.swiper-container',{ $("#controls li").on('touchstart mousedown',function(e){ var that=$(this); // e.preventDefault() - // $(".tabs .active").removeClass('active') - // $(this).addClass('active') + $("#controls li").removeClass('active') + $(this).addClass('active') tabsSwiper.slideTo( that.index() ) })