fix error
This commit is contained in:
parent
867d94a980
commit
443faf79b0
|
@ -178,13 +178,13 @@
|
|||
var jpalyer_video = $(ele).parents('.jp-video').eq(0);
|
||||
jpalyer_video.find(".jp-gui").css("display","");
|
||||
jpalyer_video.addClass('hide-ui');
|
||||
ad_audio_button(ele,true);
|
||||
ad_audio_button(ele,false);
|
||||
}
|
||||
function show_jplayer_ui_<%= i %>(ele) {
|
||||
<% unless @hide_video_tools %>
|
||||
var jpalyer_video = $(ele).parents('.jp-video').eq(0);
|
||||
jpalyer_video.removeClass('hide-ui');
|
||||
ad_audio_button(ele,false);
|
||||
ad_audio_button(ele,true);
|
||||
<% end %>
|
||||
}
|
||||
function click_jplayer_<%= i %>(){
|
||||
|
|
|
@ -39,9 +39,9 @@
|
|||
}
|
||||
function ad_audio_button(ele,is_stop){
|
||||
if (is_stop){
|
||||
$(ele).find('.jarallax-video-audio').remove()
|
||||
$(ele).find('.jarallax-video-audio').remove();
|
||||
}else{
|
||||
$(ele).append('<div class="jarallax-video-audio"><i class="fas fa-volume-mute"></i></div>')
|
||||
$(ele).append('<div class="jarallax-video-audio"><i class="fas fa-volume-mute"></i></div>');
|
||||
}
|
||||
}
|
||||
if(document.getElementById("youtube-iframe-api") == null){
|
||||
|
@ -119,12 +119,12 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
|||
cyclediv[0].need_resume = !(cyclediv.hasClass("cycle-paused"));
|
||||
cyclediv.cycle("pause");
|
||||
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','hidden')
|
||||
ad_audio_button(cyclediv,true);
|
||||
ad_audio_button(cyclediv,false);
|
||||
}else if(event.data == YT.PlayerState.UNSTARTED || event.data == YT.PlayerState.PAUSED || event.data == YT.PlayerState.ENDED){
|
||||
if(cyclediv[0].need_resume)
|
||||
cyclediv.cycle("resume");
|
||||
widget.find('.banner-pager,.controlplay,.button-mid,.ad-overlay').css('visibility','')
|
||||
ad_audio_button(cyclediv,false);
|
||||
ad_audio_button(cyclediv,true);
|
||||
}
|
||||
{{extra_state_chnage_script}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue