fix error
This commit is contained in:
parent
71de5b1e4a
commit
a1eda981e0
|
@ -45,10 +45,11 @@
|
|||
}else{
|
||||
var audio_div;
|
||||
if ($self.hasClass('have-audio')){
|
||||
audio_div = $('<button title="<%= I18n.t("ad_banner.muted") %>" class="jarallax-video-audio"><i class="fas fa-volume-up" aria-label="<%= I18n.t("ad_banner.muted") %>" aria-hidden="true"></i></button>');
|
||||
audio_div = $('<button title="<%= I18n.t("ad_banner.muted") %>" class="jarallax-video-audio"><i class="fas fa-volume-up" aria-label="<%= I18n.t("ad_banner.muted") %>" aria-hidden="true"></i><p style=\"display: none;\"><%= I18n.t("ad_banner.muted") %></p></button>');
|
||||
}else{
|
||||
audio_div = $('<button title="<%= I18n.t("ad_banner.unmuted") %>" class="jarallax-video-audio"><i class="fas fa-volume-mute" aria-label="<%= I18n.t("ad_banner.unmuted") %>" aria-hidden="true"></i></button>');
|
||||
audio_div = $('<button title="<%= I18n.t("ad_banner.unmuted") %>" class="jarallax-video-audio"><i class="fas fa-volume-mute" aria-label="<%= I18n.t("ad_banner.unmuted") %>" aria-hidden="true"></i><p style=\"display: none;\"><%= I18n.t("ad_banner.unmuted") %></p></button>');
|
||||
}
|
||||
audio_div.find('p').css('display','none'); //fix CSP
|
||||
audio_div.click(function(event) {
|
||||
var currentTime = new Date();
|
||||
if (ad_trigger_time&¤tTime-ad_trigger_time<500){
|
||||
|
|
Loading…
Reference in New Issue