if (!isIE) { $(function () { eclipTextsp(".intit .h4 .en"); eclipTextsp(".intit .h4 .cn"); var banner = new Swiper('.slide-ba', { speed: 1000, loop: true, lazy: { loadPrevNext: true }, parallax: true, effect: 'fade', fadeEffect: { crossFade: true }, autoplay: { delay: 6000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".banner .swiDots", clickable: !0, bulletActiveClass: 'active' }, navigation: { nextEl: '.banner .next', prevEl: '.banner .prev', }, on: { init: function (swiper) { var current = this.realIndex + 1; $(".banner .current").text("0" + current); }, slideChangeTransitionStart: function (swiper) { var current = this.realIndex + 1; $(".banner .current").text("0" + current); }, slideChangeTransitionEnd: function (swiper) { //typed.reset('.typed'); var videoList = $('.slide-ba').find("video"); if (videoList.length) { for (var i = 0; i < videoList.length; i++) { videoList[i].pause(); } }; var swiper = this; if ($(".slide-ba .swiper-slide-active video").length > 0) { swiper.autoplay.stop(); setTimeout(function () { swiper.autoplay.stop(); var vio = $(".slide-ba .swiper-slide-active").find("video")[0]; vio.currentTime = 0; vio.volume = 0; vio.play(); vio.addEventListener('ended', function () { swiper.slideNext(); swiper.autoplay.start(); }); }, 10); } }, }, }); var total = (banner.slides.length - 2); $(".banner .total").text("0" + total); var slide_a = new Swiper('.slide-a', { speed: 800, loop: true, effect: 'fade', fadeEffect: { crossFade: true }, // noSwiping: true,noSwipingClass: 'noSwi', autoplay: { delay: 5000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".homea .swiDots", clickable: !0, bulletActiveClass: 'active' }, navigation: { nextEl: '.homea .next', prevEl: '.homea .prev', }, on: { init: function () { //$(".homea .txts li").eq(0).addClass('on').siblings().removeClass('on') }, transitionStart: function () { $(".homea .txts li").eq(this.realIndex).stop().fadeIn().siblings().hide(); } } }); var slide_d = new Swiper('.slide-d', { speed: 800, //loop: true, effect: 'fade', fadeEffect: { crossFade: true }, noSwiping: true, noSwipingClass: 'noSwi', autoplay: { delay: 6000, stopOnLastSlide: false, disableOnInteraction: false, }, pagination: { el: ".homed .swiDots", clickable: !0, bulletActiveClass: 'active', type: 'fraction' }, navigation: { nextEl: '.homed .next', prevEl: '.homed .prev', }, watchSlidesProgress: !0, on: { init: function () { $(".homed .txts li").eq(0).addClass('on').siblings().removeClass('on') }, transitionStart: function () { $(".homed .txts li").eq(this.realIndex).addClass('on').siblings().removeClass('on'); deg = 120 * this.progress; this.$el.find(".global .global-cir").transform("rotate(" + deg + "deg)"); }, setTransition: function (a) { deg = 120 * this.progress; this.$el.find(".global .global-cir").transition(a).transform("rotate(" + deg + "deg) translate3d(0, 0, 0)"); }, }, }); $(".homed .txts li").click(function () { slide_d.slideTo($(this).index()) }); if (configPc.matches) { $(".homeb .left .list li").hover(function () { $(this).addClass('on').siblings().removeClass('on') }) $(".homec .list li").click(function () { $(this).addClass('on').siblings().removeClass('on'); $(this).stop().animate({ 'width': '49%' }, 800).siblings().stop().animate({ 'width': '17%' }, 800) }) } if (configWap.matches) { } var has = $('.homee').hasClass('aos-init'); if(!has){$('.homee').addClass('sp')} }) }