diff --git a/assets/stylesheets/template/modules/announcement.scss b/assets/stylesheets/template/modules/announcement.scss index e119bae..309f072 100644 --- a/assets/stylesheets/template/modules/announcement.scss +++ b/assets/stylesheets/template/modules/announcement.scss @@ -222,7 +222,6 @@ width: 100% !important; height: 100%!important; margin: 0 !important; - max-width: fit-content; } } .w-annc__item{ diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 5d45b10..af10773 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -327,6 +327,9 @@ event_dict[count_key] = event_dict[array_key].length; yt_player.addEventListener('onStateChange',onPlayerStateChange); banner_wrap.trigger('resize'); + if(i == 0 && $iframe.parents(".youtube_slide[data-autoplay=\"1\"]").length != 0){ + yt_player.mute().playVideo(); + } }else{ console.log("YT player changes its variables!") }