//鍔ㄧ敾鏁堟灉 var wow = new WOW({ boxClass: 'wow', offset: 0, mobile: true, live: true }); wow.init(); //鍏充簬鍙嬮亾-闆嗗洟绠€浠 璧勮川鑽h獕 //$('.column-partner').carousel({ // interval: 9999000 //}) //鍏充簬鍙嬮亾-闆嗗洟绠€浠 鍏徃鍙戝睍鍘嗙▼ $(function(){ // 鏃堕棿杞 var timerNum = 0; var space = 210; // 绉诲姩闂磋窛 var length = $('.timer-scale-cont').length, numL; // 鍒嗚鲸鐜 if(window.screen.width > 1500) { numL = length - 4 } else if(window.screen.width < 1500) { numL = length - 3 } // 鐐瑰嚮宸︿晶 $('.timer-left').on('click', function () { if(timerNum > 0) { timerNum -= 1; moveL(timerNum, numL) } tags(timerNum); }) // 鐐瑰嚮鍙充晶 $('.timer-right').on('click', function () { if(timerNum < length - 1) { timerNum += 1; tags(timerNum); } moveL(timerNum, numL) }) // 鐐瑰嚮骞 $('.time-circle').each(function (index) { $(this).on('click', function () { timerNum = index; moveL(timerNum, numL) tags(timerNum); }) }) function tags(num){ $('.timer-scale-cont').eq(num).addClass('hov').siblings().removeClass('hov'); $('.shaft-detail-cont').eq(num).show().siblings().hide(); } function moveL(num, len) { if (num < len) { moveLeft = -num * space; $('.timer-scale').animate({left:moveLeft}, 700); } } }) //鍔犲叆鎴戜滑 鐐瑰嚮灞曞紑 $(function() { $(".Social .container li i").click(function() { $(this).parent().find('.content').toggle("slow"); }); }); // 涓ゅ寲铻嶅悎-鍒囨崲閫夐」鍗 $(function(){ $(".ziyuan-neirong li").click(function() { $(this).siblings('li').removeClass('active'); // 鍒犻櫎鍏朵粬鍏勫紵鍏冪礌鐨勬牱寮 $(this).addClass('active'); // 娣诲姞褰撳墠鍏冪礌鐨勬牱寮 }); }); // 鍦烘櫙 $(function(){ $(".ziyuan-changjing li").click(function() { $(this).siblings('li').removeClass('active'); // 鍒犻櫎鍏朵粬鍏勫紵鍏冪礌鐨勬牱寮 $(this).addClass('active'); // 娣诲姞褰撳墠鍏冪礌鐨勬牱寮 }); }); // 鏁欒偛鏈嶅姟 $(function(){ $(".jiaoyu-fuwu .nav-tabs li").click(function() { $(this).siblings('li').removeClass('active'); // 鍒犻櫎鍏朵粬鍏勫紵鍏冪礌鐨勬牱寮 $(this).addClass('active'); // 娣诲姞褰撳墠鍏冪礌鐨勬牱寮 }); }); // 杞ㄩ亾浜ら€氱被浜у搧浣撶郴 $(function(){ $(".jiaotong-tab .nav-tabs li").click(function() { $(this).siblings('li').removeClass('active'); // 鍒犻櫎鍏朵粬鍏勫紵鍏冪礌鐨勬牱寮 $(this).addClass('active'); // 娣诲姞褰撳墠鍏冪礌鐨勬牱寮 }); }); // 鍔犲叆鎴戜滑鎷涜仒 $(function(){ if($(".zhaopinnav li:first").hasClass("active")){ $(".zhaopintext li:first").addClass("active") } if($(".zhaopinnav li:last").hasClass("active")){ $(".zhaopintext li:last").addClass("active") } }); // 鍚堜綔妗堜緥-瀹炶返鏉′欢寤鸿绫伙紝鍒嗛〉鏄剧ず淇敼 $(function(){ $(".yd-case .search-pagination li:nth-of-type(1)").css("display","none"); $(".yd-case .search-pagination li:nth-last-of-type(1)").html("..."); }); //棣栭〉涓氬姟璧勮鐐瑰嚮鏁堟灉 $(function(){ $("#index-zixunbtn").click(function() { $(".index-zixun").css("bottom","100px"); }); $(".index-close").click(function() { $(".index-zixun").css("bottom","-720px"); }); }); //棣栭〉鍚堜綔妗堜緥妯″潡JS鏁堟灉 $(function(){ var divCol = $('#rowbox .col-md-4'); var wrapBox = $('#rowbox .wrap-box'); divCol.hover(function () { var index = divCol.index(this); if (index == 0) { wrapBox.css('left', '10px'); $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } else if (index == 1) { wrapBox.css('left', '410px') $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } else if (index == 2) { wrapBox.css('left', '810px') $(this).find('h3').css({ 'margin-top': '200px', 'font-size': '30px' }) } }, function () { wrapBox.css('left', '-100%') $(this).find('h3').css({ 'margin-top': '170px', 'font-size': '26px' }) } ) }); $(function(){ $(window).scroll(function(){ if($(window).scrollTop() >= 500){ $('.ksmaz .left').css({'position':'fixed','top':'0'}); $('.ksmaz .right').css({'width:':'850px','margin-left':'350px'}); }else{ $('.ksmaz .left').css({'position':'static'}); $('.ksmaz .right').css({'width:':'auto','margin-left':'0'}); } }) }) // 椤堕儴瀵艰埅鑿滃崟鎶€鑳界珵璧涗笅鎷 $(function(){ $('#index-nav .nav-item:nth-of-type(4)').addClass('hover'); var str = `
` $('#index-nav .nav-item:nth-of-type(4)').append(str); });