$(function(){ // bg_shadowHeight(); // navigation // changeTel(); $('.header .header_wrap #headerUl li').on('mouseover',function(){ $(this).find('.appear').addClass('show'); }); $('.header .header_wrap #headerUl li').on('mouseout',function(){ $(this).find('.appear').removeClass('show'); }); //瀵艰埅鏍忕偣鍑讳簨浠 $('.header .'+clickWho+'>a').addClass('changeStyle'); // alert('.header .'+clickWho+'>a'); // 澶撮儴鑿滃崟鐐瑰嚮閿氱偣閿氶摼鎺ヨ繃娓 $('#about_about').click(function () { $('html, body').animate({ scrollTop: $('#about').offset().top+30+'px' }, 500); return false; }); $('#about_qualified').click(function () { $('html, body').animate({ scrollTop: $('#qualified').offset().top+230+'px' }, 500); return false; }); $('#about_contact').click(function () { $('html, body').animate({ scrollTop: $('#contact').offset().top+'px' }, 800); return false; }); //纭欢椤甸潰鐐瑰嚮鍔ㄧ敾 $('.show_item').on('click',function(){ $(this).next().slideToggle("normal","linear"); $('.shade_tay').show(); }); $('.shade_tay').on('click',function(){ $('.hide_item').hide(600); $('.hardvideo_wrap').hide(600); $(this).hide(); }); // 纭欢浜у搧椤佃棰戞挱鏀撅紝鍏抽棴 $('.playVideo').on('click',function(){ $(this).parent().parent().next('.hardvideo_wrap').show(); }) $('.closeVideo').on('click',function(){ var current_video=$(this).parent().find('video')[0]; current_video.pause(); current_video.currentTime=0; $('.hardvideo_wrap').hide(600); // $('.shade_tay').click(); }); $('.video_wrap').on('click',function(){ $(this).hide(); $(this).next('video')[0].play(); }); //鍥剧墖閬僵灞傚姩鐢 $('.shadow').hover(function(){ $(this).parent().find('.will_scale').removeClass('goBackAnimate_img'); $(this).parent().find('.will_scale').addClass('animate_img'); $(this).css({ 'background':'rgba(0,0,0,.4)', }) },function(){ $(this).parent().find('.will_scale').removeClass('animate_img'); $(this).parent().find('.will_scale').addClass('goBackAnimate_img'); $(this).css({ 'background':'rgba(0,0,0,.5)', }) }); //琛屼笟鏂规鍔ㄧ敾 $('.trade').hover(function(){ // $(this).find('.desc_content').addClass('show'); $(this).css({ 'background-color':'rgba(0,0,0,0.2)', 'cursor':'pointer' }); $(this).parent().find('.will_scale').addClass('animate_img'); $(this).parent().find('.will_scale').removeClass('goBackAnimate_img'); },function(){ $(this).find('.desc_content').removeClass('show'); $(this).css({ 'background-color':'rgba(0,0,0,0)', }); $(this).parent().find('.will_scale').addClass('goBackAnimate_img'); $(this).parent().find('.will_scale').removeClass('animate_img'); }); $('.trade').on('click',function (){ var jump=$(this).attr('id'); if(jump){ // window.open('../html/project_detail.html?jump='+jump); location.href='/project_'+jump; } }); // baidu.qiao // var _hmt = _hmt || []; // (function() { // var hm = document.createElement("script"); // hm.src = "https://hm.baidu.com/hm.js?6312247f1278d5b1f5ead0ab9bceb7ca"; // var s = document.getElementsByTagName("script")[0]; // s.parentNode.insertBefore(hm, s); // })(); //鎹㈢數璇 function changeTel() { var time = new Date().valueOf()-new Date("2019-11-21").valueOf(); var num = (parseInt(time/86400000))%2; if(num == 0){ $("#topTel1").hide(); $("#topTel2").show(); $("#tel1").hide(); $("#tel2").show(); }else{ $("#topTel1").show(); $("#topTel2").hide(); $("#tel1").show(); $("#tel2").hide(); } } });