锘?(function() { new WOW().init(); var btn = true; $(".nav_but_box").click(function() { $(this).parent().toggleClass("phone_nav_one") if (btn) { $(".phone_nav .nav_but").css("background", "none"); btn = false; } else { $(".phone_nav .nav_but").css("background", "#2f98cf"); btn = true; } }) //閹靛婧€鐎佃壈鍩 $(".nav_main b").click(function() { $(this).parent().toggleClass("b_one") .siblings().removeClass("b_one"); }) var zh = 0; $(".gjore").on("click", function() { if (zh == 0) { if(window.screen.availWidth>800){ $(".panrxt").css({ "height": "4.5rem", }); $(".gjore").text("鏀惰捣"); }else{ $(".panrxt").css({ "height": "885px", }); $(".gjore").text("鏀惰捣"); } zh = 1; } else { $(".panrxt").css({ "height": "85px", }); $(".gjore").text("鏌ョ湅鏇村"); zh = 0; } }) // 鍘嗗彶娌块潻 var swiper = new Swiper(".empSwiper", { // centeredSlides: true, navigation: { nextEl: ".empNext", prevEl: ".empPrev", }, breakpoints: { 800: { slidesPerView: 1, }, 1200: { slidesPerView: "auto", }, }, }); $(".sestle li").addClass("wow fadeInUp animated"); $(".numbers li").addClass("wow fadeInUp animated"); var jrwm = $(".numbers li"); var rczp = 0; $.each(jrwm, function(item, index) { rczp = rczp + 0.2; $(this).css({ "-webkit-animation-delay": rczp + "s", "animation-delay": rczp + "s" }) }); // 鏁翠綋 $(".zdaljs li").addClass("wow fadeInUp animated"); var dasd = $(".zdaljs li"); var ljs = 0; $.each(dasd, function(item, index) { ljs = ljs + 0.2; $(this).css({ "-webkit-animation-delay": ljs + "s", "animation-delay": ljs + "s" }) }); // 鎸佺画鍙戝睍鏂伴椈 var swiper3 = new Swiper(".socper", { loop: true, navigation: { nextEl: ".socNext", prevEl: ".socPrev", }, breakpoints: { 800: { slidesPerView: 2, spaceBetween: 0, }, 1200: { slidesPerView: 3, spaceBetween: 10, }, }, }); // 鍛樺伐鎴愰暱 var swiper3 = new Swiper(".groper", { loop: true, autoplay: { delay: 5000, }, navigation: { nextEl: ".groNext", prevEl: ".groPrev", }, breakpoints: { 800: { slidesPerView: 1, spaceBetween: 0, }, 1200: { slidesPerView: 4, spaceBetween: 40, }, }, }); $(".btsrul li").on("click", function() { var index = $(this).index(); $(this).addClass("btsctive").siblings().removeClass("btsctive"); $(".cpxqhs").hide().eq(index).show(); }); }) var windowTop = 0; $(window).scroll(function () { var scrolls = $(this).scrollTop(); if (scrolls > windowTop) { if (scrolls > 350) { $('.nav').css({ 'display': "none" }) $('.ejbjbej').css({ 'display': "block" }) } windowTop = scrolls; } else { if (scrolls < 350) { $('.nav').css({ 'display': "block" }) $('.ejbjbej').css({ 'display': "none" }) } windowTop = scrolls; } })