Fix bug.
This commit is contained in:
parent
5861b8360e
commit
5c1b52cc91
|
@ -222,7 +222,6 @@
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
height: 100%!important;
|
height: 100%!important;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
max-width: fit-content;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.w-annc__item{
|
.w-annc__item{
|
||||||
|
|
|
@ -327,6 +327,9 @@
|
||||||
event_dict[count_key] = event_dict[array_key].length;
|
event_dict[count_key] = event_dict[array_key].length;
|
||||||
yt_player.addEventListener('onStateChange',onPlayerStateChange);
|
yt_player.addEventListener('onStateChange',onPlayerStateChange);
|
||||||
banner_wrap.trigger('resize');
|
banner_wrap.trigger('resize');
|
||||||
|
if(i == 0 && $iframe.parents(".youtube_slide[data-autoplay=\"1\"]").length != 0){
|
||||||
|
yt_player.mute().playVideo();
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
console.log("YT player changes its variables!")
|
console.log("YT player changes its variables!")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue