Fix yt player bug.

This commit is contained in:
BoHung Chiu 2022-03-04 15:51:03 +08:00
parent 88c25698da
commit ec0dfbc25c
1 changed files with 3 additions and 1 deletions

View File

@ -131,7 +131,9 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0); var banner_wrap = $(iframe).parents('.w-ba-banner__wrap').eq(0);
banner_wrap.height(height).css({"padding-bottom":"","padding-top":""}); banner_wrap.height(height).css({"padding-bottom":"","padding-top":""});
banner_wrap.find(".cycle-carousel-wrap").css("top","3em"); banner_wrap.find(".cycle-carousel-wrap").css("top","3em");
delete (event.target.B || event.target.H).onStateChange; try{
delete (event.target.B || event.target.H || event.target.I).onStateChange;
}catch(e){console.log("{onReady: true, onStateChange: true} missing!")};
var onStateChange_idx = event.target.l.i.onStateChange; var onStateChange_idx = event.target.l.i.onStateChange;
onStateChange_idx.reverse(); onStateChange_idx.reverse();
var event_size = 3; var event_size = 3;