$(function(){ if($('#vi').size()>0){ var myvideo = document.getelementbyid("vi"); $('.dfmz-main-r-video').hover(function(){ var time3=settimeout(function(){myvideo.play()},10); $('.dfmz-video-btn-hide').delay(800).fadeout(300); },function(){ myvideo.pause(); myvideo.currenttime = 0; $('.dfmz-video-btn-hide').fadein(300); }) } if($('#aboutvideo').size()>0){ var time9; var myplayer = videojs('aboutvideo'); myplayer.width(900); myplayer.height(507); $(document).on('click',function(e){ $('.video-bg').fadeout(300); $('.video-box').removeclass('video-box-on'); $('.video-box video').fadeout(300); $('.layjobbg').fadeout(300); $('.layjob').fadeout(300); myplayer.pause(); myplayer.currenttime(0); }) $('.video-box').on('click',function(e){ e.stoppropagation(); }) $('.video-box-txt-close').on('click',function(){ $('.video-bg').fadeout(300); $('.video-box').removeclass('video-box-on'); $('.video-box video').fadeout(300); $('.layjobbg').fadeout(300); $('.layjob').fadeout(300); myplayer.pause(); myplayer.currenttime(0); /*window.clearinterval(time9);*/ }) $('.dfmz-video-click').on('click',function(e){ e.stoppropagation(); $('.video-bg').fadein(300); $('.video-box').addclass('video-box-on'); $('.video-box video').fadein(300); time9=settimeout(function(){myplayer.play();},10); }) /* $('.videodetail').click(function(){ var myplayer2 = videojs('videodetail'); myplayer2.width(640); myplayer2.height(360); var time62=settimeout(function(){myplayer2.play()},10); $(this).fadeout(300); $('.sp_neiyeimg').fadeout(300); })*/ } /*var logosi = new swiper('.logosilder', { slidesperview: 12, paginationclickable: true, prevbutton:'.logosilder-prev', nextbutton:'.logosilder-next', spacebetween: 0, breakpoints: { 1500: { slidesperview: 10 } } });*/ var logosi = new swiper('.logosilder', { effect: 'fade', prevbutton:'.logosilder-prev', nextbutton:'.logosilder-next' }); var tzzgxa = new swiper('.tzzgxslider', { autoplay: 4000, loop:false, speed:700, pagination: '.tzzgx .swiper-pagination', prevbutton:'.tzzgx .prev', nextbutton:'.tzzgx .next', paginationclickable: true, effect : 'fade' }) var dhistory = new swiper('.d-history', { slidesperview: 4, prevbutton:'.history-big .hisory-next', nextbutton:'.history-big .hisory-prev', spacebetween: 1 }); var myswiper1 = new swiper('.bannerindex', { autoplay: 5000, speed: 700, pagination: '.swiper-pagination', paginationclickable: true, effect: 'fade', oninit: function (myswiper1) { swiperanimatecache(myswiper1); swiperanimate(myswiper1); }, onslidechangestart: function (myswiper1) { jquery('.bannerindex .swiper-slide').eq(myswiper1.activeindex).find('.swiper-img').addclass('zoomin'); }, onslidechangeend: function (myswiper1) { swiperanimate(myswiper1); var timersa = settimeout(renovealla(), 1000); } }); function renovealla() { jquery('.bannerindex .swiper-slide').eq(myswiper1.activeindex).siblings('.swiper-slide').find('.swiper-img').removeclass('zoomin'); } new wow().init(); })