From 48732646e7fca749e5405aadb2c12fe2eb8f4794 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 4 Feb 2022 04:45:13 +0000 Subject: [PATCH] update template --- modules/ad_banner/_ad_banner_widget2_video.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ad_banner/_ad_banner_widget2_video.html.erb b/modules/ad_banner/_ad_banner_widget2_video.html.erb index 18b3174..b40d409 100644 --- a/modules/ad_banner/_ad_banner_widget2_video.html.erb +++ b/modules/ad_banner/_ad_banner_widget2_video.html.erb @@ -46,9 +46,9 @@ }else{ var audio_div; if ($self.hasClass('have-audio')){ - audio_div = $(''); + audio_div = $(''); }else{ - audio_div = $(''); + audio_div = $(''); } audio_div.click(function(event) { var currentTime = new Date(); @@ -61,10 +61,10 @@ var $video = $self.find('video'); if ($self.hasClass('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{ $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){ $self.jPlayer("mute", !$self.data().jPlayer.options.muted);