//移动端导航 $(".selectBut").click(function() { $(".navm-box").toggleClass("act"); $("body").toggleClass("navShow"); if($(".selectBut").hasClass("hd1-aon1")) { $(this).removeClass("hd1-aon1"); $(".masklayer").hide() } else { $(this).addClass("hd1-aon1"); $(".masklayer").fadeIn("slow") } }) $(".nav-wrap .icon-jia").click(function(){ if($(this).parent().find("dl").is(":hidden")){ $(this).parent().find("dl").show(500); $(this).css("transform","rotate(180deg)") }else{ $(this).parent().find("dl").hide(500); $(this).css("transform","rotate(0deg)") } }); //banner var mySwiper1 = new Swiper('.banner .swiper-container', { speed:1200, loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, pagination: { el: '.banner .swiper-pagination', clickable: true, } }); //新闻滚动图 var mySwiper2 = new Swiper('.news-scroll .swiper-container', { speed:800, //loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, on: { slideChangeTransitionStart: function () { $(".news-list ul .on").removeClass('on'); $(".news-list ul li").eq(this.activeIndex).addClass('on'); } } }); $(".news-list ul li").on('mouseenter', function (e) { $(".news-list ul .on").removeClass('on'); $(this).addClass('on'); mySwiper2.slideTo($(this).index()); }); //往年征程 var mySwiper3 = new Swiper('.pcbox .swiper-container', { slidesPerView: 9, spaceBetween: 0, speed: 800, breakpoints: { 1080: { slidesPerView: 3, }, 680: { slidesPerView: 2, }, 420: { slidesPerView: 1, } } }); //新闻资讯 var mySwiper4 = new Swiper('.pdbox .swiper-container', { slidesPerView: 3, spaceBetween: 40, speed: 800, breakpoints: { 980: { slidesPerView: 3, spaceBetween: 30, }, 720: { slidesPerView: 2, spaceBetween: 30, }, 400: { slidesPerView: 1, } } }); //历届赛车 var mySwiper5 = new Swiper('.pebox .swiper-container', { slidesPerView: 2, spaceBetween: 40, loop: true, speed: 800, centeredSlides: true, breakpoints: { 680: { slidesPerView: 2, spaceBetween: 20, }, 420: { slidesPerView: 1, spaceBetween: 20, }, } }); //队员切换 var mySwiper6 = new Swiper('.qh1 .swiper-container', { //loop:true, slidesPerView: 5, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, breakpoints: { 980:{ slidesPerView: 4, }, 880:{ slidesPerView: 3, }, 620:{ slidesPerView: 2, } } }); var mySwiper7 = new Swiper('.qh2 .swiper-container', { //loop:true, slidesPerView: 5, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, breakpoints: { 980:{ slidesPerView: 4, }, 880:{ slidesPerView: 3, }, 620:{ slidesPerView: 2, } } }); var mySwiper8 = new Swiper('.qh3 .swiper-container', { //loop:true, slidesPerView: 5, spaceBetween: 30, autoplay: { delay: 3000, disableOnInteraction: false, }, breakpoints: { 980:{ slidesPerView: 4, }, 880:{ slidesPerView: 3, }, 620:{ slidesPerView: 2, } } }); jQuery(".partf .w90").slide({trigger:"click"}); //参与赛事 var mySwiper9 = new Swiper('.part2 .swiper-container', { slidesPerView: 2, navigation: { prevEl: '.part2 .swiper-button-prev', nextEl: '.part2 .swiper-button-next', }, breakpoints: { 680:{ slidesPerView: 1, } } }); //wow var wow = new WOW({ speed:100, boxClass: 'wow', animateClass: 'animated', offset: 0, mobile: false, live: true }); new WOW().init();