From 8013161319b1d39d6ee4dcbc2c1c9a03eab61ccf Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Fri, 4 Jan 2019 14:49:47 +0800 Subject: [PATCH] swaiper --- js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/index.js b/js/index.js index 9ac3ea1..09d43ec 100644 --- a/js/index.js +++ b/js/index.js @@ -143,8 +143,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() ) }) -- libgit2 0.21.4