summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-22 02:47:12 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-22 02:47:12 +0200
commit512457a4106650ff79ed709bd744dc91100366ae (patch)
tree7637983cc847f9ee5d7ab4ec8cebd1ac61f71143 /cgi/index.pl
parentc2ac0910eef3f0db5c4f1bf1692b0769125abedc (diff)
add &color= support for html frontend
Diffstat (limited to 'cgi/index.pl')
-rw-r--r--cgi/index.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 3ce8415..022022f 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -264,6 +264,7 @@ sub get_departures {
sub render_html {
my $self = shift;
+ my $color = $self->param('color') || '255,208,0';
my ( $departures, $errstr ) = get_departures(
city => $self->stash('city'),
@@ -284,6 +285,7 @@ sub render_html {
$self->render(
'display',
title => "vrr-fakedisplay v${VERSION}",
+ color => [ split( qr{,}, $color ) ],
departures => $departures,
scale => $self->param('scale') || '4.3',
);