锘?/ 瀹归敊 window.onerror=function(){return true;} $(document).ready(function(){ $(window).scroll(function() { if($(window).scrollTop() >=10){ $("#header").addClass("scroll"); }else{ $("#header").removeClass('scroll'); } }); $(".mnav").click(function(){ $("#header .mnav").toggleClass("isopen"); $('#header .nav').toggleClass('isopen'); $('#header').addClass('scroll'); }); var slide_swiper = new Swiper('.focus', { speed: 1000, autoplay:{ delay: 5000, stopOnLastSlide: false, disableOnInteraction: false, }, visibilityFullFit: true, pagination: { el: '.focus .swiper-pagination', clickable: true, } }); honnrlist_swiper = new Swiper('.honnr .swiper-container', { slidesPerView: 6, spaceBetween: 20, loop: true, autoplay:{ delay: 3000, stopOnLastSlide: false, disableOnInteraction: false, }, lazy: { loadPrevNext: true, }, pagination: { el: '.swiper-pagination', clickable: true, dynamicBullets: true, }, breakpoints: { 320:{ slidesPerView: 2, }, 768: { slidesPerView: 4, }, 1160: { slidesPerView: 6, } } }); var tabsSwiper = new Swiper('#tabs-tabbox', { autoHeight: true, speed: 0, on: { slideChangeTransitionStart: function() { $(".tabbox .tabs .active").removeClass('active'); $(".tabbox .tabs a").eq(this.activeIndex).addClass('active'); } }, navigation: { nextEl: '.tabbox .button-next', prevEl: '.tabbox .button-prev', } }) $(".tabbox .tabs a").on('click', function(e) { e.preventDefault() $(".tabbox .tabs .active").removeClass('active') $(this).addClass('active') tabsSwiper.slideTo($(this).index()) }) }); jQuery("#header .nav").slide({ type:"menu",titCell:"li",targetCell:".sub",effect:"slideDown",delayTime:100,triggerTime:0,defaultPlay:false,returnDefault:true});