diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-09-18 19:33:40 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-09-18 19:33:40 +0200 |
commit | 51d24c019dc3eb425b9b2da022a95602450b19f0 (patch) | |
tree | cb47208426de37f7dedcd6b25a614a52e6d8026c | |
parent | 47fdea96b9d6ba9e56a42e59dc43b29666990a4b (diff) |
html frontend: Add scale parameter
-rw-r--r-- | cgi/index.pl | 1 | ||||
-rw-r--r-- | cgi/templates/display.html.ep | 2 |
2 files changed, 2 insertions, 1 deletions
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 { |