This commit is contained in:
BoHung Chiu 2022-07-13 15:00:48 +08:00
parent 71917f80ae
commit 7b9727c501
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ class AdBannersController < ApplicationController
"timeout" => (adbanner.timeout * 1000), "timeout" => (adbanner.timeout * 1000),
"more" => "More", "more" => "More",
"desc" => adbanner.title, "desc" => adbanner.title,
"extra_brefore_html" => extra_before_html, "extra_before_html" => extra_before_html,
"extra_after_html" => extra_after_html, "extra_after_html" => extra_after_html,
"extra_ready_script" => "if (i == 0 && banner_wrap.find('.w-ad-banner__slide').index($(iframe).parents('.w-ad-banner__slide').eq(0))==0 && banner_wrap.find('[data-autoplay=1]').length != 0){ "extra_ready_script" => "if (i == 0 && banner_wrap.find('.w-ad-banner__slide').index($(iframe).parents('.w-ad-banner__slide').eq(0))==0 && banner_wrap.find('[data-autoplay=1]').length != 0){
event.target.mute().playVideo(); event.target.mute().playVideo();