update template

This commit is contained in:
rulingcom 2022-02-04 04:45:41 +00:00
parent f7c3081c9e
commit ce02d61a2c
1 changed files with 4 additions and 4 deletions

View File

@ -46,9 +46,9 @@
}else{ }else{
var audio_div; var audio_div;
if ($self.hasClass('have-audio')){ if ($self.hasClass('have-audio')){
audio_div = $('<button title="<%= I18n.t("ad_banner.muted") %>" class="jarallax-video-audio"><i class="fas fa-volume-up"></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></button>');
}else{ }else{
audio_div = $('<button title="<%= I18n.t("ad_banner.unmuted") %>" class="jarallax-video-audio"><i class="fas fa-volume-mute"></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></button>');
} }
audio_div.click(function(event) { audio_div.click(function(event) {
var currentTime = new Date(); var currentTime = new Date();
@ -61,10 +61,10 @@
var $video = $self.find('video'); var $video = $self.find('video');
if ($self.hasClass('have-audio')){ if ($self.hasClass('have-audio')){
$self.removeClass('have-audio'); $self.removeClass('have-audio');
$(this).find('i.fas').attr('class','fas fa-volume-mute').attr('title','<%= I18n.t("ad_banner.unmuted") %>'); $(this).attr('title','<%= I18n.t("ad_banner.unmuted") %>').find('i.fas').attr('class','fas fa-volume-mute').attr('aria-label','<%= I18n.t("ad_banner.unmuted") %>');
}else{ }else{
$self.addClass('have-audio'); $self.addClass('have-audio');
$(this).find('i.fas').attr('class','fas fa-volume-up').attr('title','<%= I18n.t("ad_banner.muted") %>'); $(this).attr('title','<%= I18n.t("ad_banner.muted") %>').find('i.fas').attr('class','fas fa-volume-up').attr('aria-label','<%= I18n.t("ad_banner.muted") %>');
} }
if ($video.length>0){ if ($video.length>0){
$self.jPlayer("mute", !$self.data().jPlayer.options.muted); $self.jPlayer("mute", !$self.data().jPlayer.options.muted);