fix error
This commit is contained in:
parent
0cdff73a4f
commit
52ea8ff6be
|
@ -158,7 +158,7 @@ class AdBannersController < ApplicationController
|
||||||
"desc" => adbanner.title,
|
"desc" => adbanner.title,
|
||||||
"extra_brefore_html" => extra_before_html,
|
"extra_brefore_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();
|
||||||
}",
|
}",
|
||||||
"extra_state_chnage_script" => "if(cyclediv.find('[data-autoplay=1]').length != 0){
|
"extra_state_chnage_script" => "if(cyclediv.find('[data-autoplay=1]').length != 0){
|
||||||
|
@ -167,7 +167,7 @@ class AdBannersController < ApplicationController
|
||||||
cyclediv.cycle(\"pause\");
|
cyclediv.cycle(\"pause\");
|
||||||
cyclediv.cycle(\"next\");
|
cyclediv.cycle(\"next\");
|
||||||
current_cycle = cyclediv.find(\".cycle-slide-active\");
|
current_cycle = cyclediv.find(\".cycle-slide-active\");
|
||||||
if (current_cycle.hasClass(\"jplayer_slide\"){
|
if (current_cycle.hasClass(\"jplayer_slide\")){
|
||||||
current_cycle.find('.jp-jplayer').jPlayer(\"mute\", true).jPlayer(\"play\",0);
|
current_cycle.find('.jp-jplayer').jPlayer(\"mute\", true).jPlayer(\"play\",0);
|
||||||
}else{
|
}else{
|
||||||
current_cycle.find('iframe').data(\"yt_player\").mute().playVideo();
|
current_cycle.find('iframe').data(\"yt_player\").mute().playVideo();
|
||||||
|
|
Loading…
Reference in New Issue