From 51d24c019dc3eb425b9b2da022a95602450b19f0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 Sep 2013 19:33:40 +0200 Subject: html frontend: Add scale parameter --- cgi/index.pl | 1 + cgi/templates/display.html.ep | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cgi/index.pl b/cgi/index.pl index df66039..6bd475b 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -285,6 +285,7 @@ sub render_html { 'display', title => "vrr-fakedisplay v${VERSION}", departures => $departures, + scale => $self->param('scale') || '4.3', ); return; diff --git a/cgi/templates/display.html.ep b/cgi/templates/display.html.ep index b61dabf..234068b 100644 --- a/cgi/templates/display.html.ep +++ b/cgi/templates/display.html.ep @@ -14,7 +14,7 @@ font-family: VRRR; background-color: #000000; color: #ffd000; - font-size: 430%; + font-size: <%= $scale * 100 %>%; } div.outer { -- cgit v1.2.3