summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-18 19:33:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-18 19:33:40 +0200
commit51d24c019dc3eb425b9b2da022a95602450b19f0 (patch)
treecb47208426de37f7dedcd6b25a614a52e6d8026c
parent47fdea96b9d6ba9e56a42e59dc43b29666990a4b (diff)
html frontend: Add scale parameter
-rw-r--r--cgi/index.pl1
-rw-r--r--cgi/templates/display.html.ep2
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 {