Fix bug.
This commit is contained in:
parent
04da5dfc7e
commit
922334febd
|
@ -54,7 +54,6 @@
|
|||
if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||
if(window.yt_players == undefined)
|
||||
window.yt_players = {};
|
||||
$(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||
function onYouTubeIframeAPIReady(){
|
||||
$(".w-ba-banner").each(function(i,banner){
|
||||
var iframes = $(banner).find("iframe");
|
||||
|
@ -82,8 +81,8 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
|||
events: {
|
||||
'onReady': function(event){
|
||||
var height = $(event.target.getIframe()).height();
|
||||
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_{{subpart-id}}\"]");
|
||||
banner_wrap.height(height).css({"padding-bottom":"4em","padding-top":""});
|
||||
var banner_wrap = $(".w-ba-banner__wrap[data-overlay=\".w-ad-banner__overlay_"+id+"\"]");
|
||||
banner_wrap.height(height).css({"padding-bottom":"","padding-top":""});
|
||||
banner_wrap.find(".cycle-carousel-wrap").css("top","3em");
|
||||
delete (event.target.B || event.target.H).onStateChange;
|
||||
var onStateChange_idx = event.target.l.i.onStateChange;
|
||||
|
|
Loading…
Reference in New Issue