$(function () { /* 浣跨敤js鍒嗙粍锛屾瘡5涓猯i涓€缁?*/ $(".case-center li").each(function(i){ jquery(".case-center li").slice(i*5,i*5+5).wrapall("
");}); /*banner*/ var banner = new swiper('.banner .swiper-container', { slidesperview: 1, slidespergroup: 1, spacebetween: 20, speed: 1000, autoplay: 5000, loop:'loop', pagination:'.swiper-pagination', paginationclickable: true, prevbutton:'.banner-prev', nextbutton:'.banner-next', }); /*鏍峰搧灞曠ず*/ var ipro = new swiper('.pro_pic .swiper-container', { slidesperview: 5, slidespergroup: 5, spacebetween: 20, speed: 1000, autoplay: 5000, pagination:'.swiper-pagination', paginationclickable: true, breakpoints: { 1200: { slidesperview: 4, slidespergroup: 4, spacebetween: 15, }, 1000: { slidesperview: 2, slidespergroup: 2, spacebetween: 10, }, } }); /*琛屼笟搴旂敤*/ var icase = new swiper('.case-center .swiper-container', { slidesperview: 1, slidespergroup: 1, spacebetween: 20, speed: 1000, autoplay: 5000, loop:'loop', pagination:'.swiper-pagination', paginationclickable: true, }); /*婊氬姩鏁板瓧*/ scroll = $('.timer').offset().top - window.innerheight; $('.pinpai_center ul li h5 span').attr('data-speed', '2000'); var tt = ".rollnum-num"; for (var i = 1; i <= 5; i++) { $(tt + i).attr('data-to', $(tt + i).text()) } /*浜у搧鍒囨崲*/ $(".indpro-menu-link").click(function() { $(".indpro-menu-link").removeclass("active"); $(".indpro-items").removeclass("active"); $(this).addclass("active"); $(".indpro-items").eq($(this).parents("li").index()).addclass("active"); }); /*鏂伴椈鍒囨崲*/ $(".news-title li").click(function() { $(this).addclass("cur").siblings().removeclass("cur"); var index = $(this).index(); $('.news-list').removeclass('active').eq(index).addclass('active') }); /*瑙嗛寮圭獥*/ var video = glightbox({selector: '.video_click'}); });