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