From 7eb656dd0a461f2782e601753ee96736b7ef0d3c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 30 Jul 2021 14:16:58 +0200 Subject: do not mis-use aria-label; use aria-hidden and CSS content clipping instead --- templates/app.html.ep | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) (limited to 'templates/app.html.ep') diff --git a/templates/app.html.ep b/templates/app.html.ep index 07c78bf..852d8a8 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -84,38 +84,40 @@ % } % if ($departure->{sched_departure}) { - + + nach %= $departure->{destination} % } % else { - + + von %= $departure->{origin} % } % if ($departure->{delay} and not $departure->{is_cancelled}) { -% my $aria_delay = sprintf("Verspätung %d Minuten", $departure->{delay}); % if ($show_realtime) { % if ($departure->{delay} > 0) { - (+<%= $departure->{delay} %>) + % } % else { - (<%= $departure->{delay} %>) + % } % } % else { % if ($departure->{delay} > 0) { - (+<%= $departure->{delay} %>) + % } % else { - (<%= $departure->{delay} %>) + % } % } % } % elsif ($departure->{missing_realtime}) { - + Echtzeitdaten fehlen + % } % if (param('detailed')) { % my $arrow = '→'; @@ -139,11 +141,12 @@ % if (($departure->{scheduled_platform} and $departure->{platform} and % $departure->{scheduled_platform} ne $departure->{platform}) % or $departure->{changed_platform}) { - + % } % else { - + % } + Gleis %= $departure->{platform} % if ($departure->{info} and length $departure->{info}) { @@ -152,7 +155,8 @@ % } % else { - + + über %= $route_str % } -- cgit v1.2.3