$(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($('.video').size()>0){ var ids; /*$(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(); }) $('.dfmz-video-click').on('click',function(e){ e.stoppropagation(); $('.video-bg').fadein(300); $('.video-box').addclass('video-box-on'); $('.video-box video').fadein(300); var getid=$(this).attr('data-value'); var myaboutvideo='aboutvideo'+getid; var myplayeria='myplayer'+getid; myplayeria=videojs(myaboutvideo); myplayeria.width(900); myplayeria.height(507); var nowshow='#aboutvideo'+getid; $(nowshow).show().siblings('.video').hide(); myplayeria.play(); ids=getid; }) $('.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); var getcloseid='aboutvideo'+ids+'_html5_api'; var myvideoclose = document.getelementbyid(getcloseid); myvideoclose.pause(); /*window.clearinterval(time9);*/ }) /* $('.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(); })