if ($(window).width() > 980) { new wow().init(); } $('.h_nav').click(function (e) { $(".nav").toggleclass('show'); $(this).toggleclass('close'); }) $('.nav a').click(function (e) { $(".nav").removeclass('show'); $('.h_nav').removeclass('close'); }) $('.go-child ').click(function (e) { $(this).toggleclass('on').siblings().removeclass('on');; $(this).find('.nav-down').slidetoggle().parent().siblings().find(".nav-down").slideup(200);; }); var banswiper = new swiper('#banswiper', { autoplay: { delay: 6000, disableoninteraction: false, }, speed: 1000, pagination: { el: ".banner .svg-swiper-pagination", clickable: !0, renderbullet: function (e, i) { return '
' } }, // 如果需要滚动条 scrollbar: { el: '.banner .swiper-scrollbar1', }, on: { init: function () { swiperanimatecache(this); //隐藏动画元素 swiperanimate(this); //初始化完成开始动画 }, slidechangetransitionend: function () { swiperanimate(this); //每个slide切换结束时也运行当前slide动画 } } }) $('.idxproul li').hover(function () { var index = $(this).index(); $(this).addclass('on').siblings().removeclass('on'); } ); var proswiper = new swiper('#proswiper', { //loop: true, autoplay: true, spacebetween: 20, slidesperview: 1.2, }) var newsswiper = new swiper('#newsswiper', { loop: true, autoplay: true, breakpoints: { //当宽度大于等于320 320: { spacebetween: 25, slidesperview: 1.2, }, 750: { spacebetween: 20, slidesperview: 3, }, 1280: { spacebetween: 40, slidesperview: 3, }, 1440: { spacebetween: 45, slidesperview: 3.3, }, }, }) $(window).on('scroll', function () { if ($(window).scrolltop() > 150) { $(".page-aside").addclass("show") } else { $(".page-aside").removeclass("show") } }); $(".j-gotop").click((function () { $("html, body").animate({ scrolltop: 0 }, 400) })) var historytxt = new swiper('#historytxt', { // centeredslides: true, // mousewheel: true, breakpoints: { //当宽度大于等于320 320: { direction: "horizontal", slidesperview :'auto', freemode : true, spacebetween: 0, autoheight: true, }, 750: { direction: "vertical", slidesperview :'auto', freemode : true, spacebetween: 25, }, 1280: { direction: "vertical", slidesperview :'auto', freemode : true, spacebetween: 40, } , 1440: { direction: "vertical", slidesperview :'auto', freemode : false, spacebetween:60, } }, watchslidesvisibility: true, watchslidesprogress: true, on: { slidechangetransitionstart: function () { } } }); var gallerytop = new swiper('#historyimg', { navigation: { nextel: '.history .next', prevel: '.history .prev', }, thumbs: { swiper: historytxt } }); var styleswiper = new swiper('#styleswiper', { loop: true, autoplay: true, centeredslides: true, pagination: { el: '.style .style-pagination', clickable: true, }, navigation: { nextel: '.style .next', prevel: '.style .prev', }, breakpoints: { //当宽度大于等于320 320: { spacebetween: 20, slidesperview: 1.4, }, 750: { spacebetween: 20, slidesperview: 3, }, 1280: { spacebetween: 20, slidesperview:3.6, }, 1440: { spacebetween: 30, slidesperview:3.6, }, }, }) $('.joblist li ').click(function(){ var index = $(this).index(); // $(this).children('.').slidetoggle() ; $(this).find('.bottom').slidetoggle().parent().siblings().find(".bottom").slideup( );; }) //猪鼻孔小圈鼠标跟随 $(".pigdesk").on("mousemove", function (event) { event = event ? event : window.event; var y1 = event.pagey - $(this).offset().top; var x1 = event.pagex - $(this).offset().left; $(this).find(".pig").css({ "top": y1, "left": x1 }); }).hover(function () { $(this).find(".pig").addclass("show"); }, function () { $(this).find(".pig").removeclass("show"); }).on("mousedown", function () { $(this).find(".pig").addclass("active"); }).on("mouseup", function () { $(this).find(".pig").removeclass("active"); }); $('.pigdesk').hover(function () { $('.cursor-dot').hide(); }, function () { $('.cursor-dot').show(); }); var honorswiper = new swiper('#honorswiper', { autoplay: true, loop: true, navigation: { nextel: '.honor .next', prevel: '.honor .prev', }, // 如果需要滚动条 pagination: { el: '.honor .honor-scrollbar', type: "progressbar", }, breakpoints: { //当宽度大于等于320 320: { spacebetween: 25, slidesperview: 1.2, }, 750: { spacebetween: 40, slidesperview: 2, }, 1280: { spacebetween: 40, slidesperview: 2.6, }, 1440: { spacebetween: 50, slidesperview: 2.8, }, }, });