From d3df2a6eb82eab6d3164e9da4c8c7c243764c5bc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Dec 2013 13:52:20 +0100 Subject: infoscreen: playing around with vw (viewport-width based font sizes) --- cgi/index.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cgi/index.pl') diff --git a/cgi/index.pl b/cgi/index.pl index fd00b9f..d579b4d 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -178,7 +178,8 @@ sub get_filtered_departures { if ( ( @grep_line and not( any { $line =~ $_ } @grep_line ) ) or ( @grep_platform and not( $platform ~~ \@grep_platform ) ) - or ( $line =~ m{ ^ (RB | RE | IC | EC) }x ) ) + or ( $opt{hide_regional} and $line =~ m{ ^ (RB | RE | IC | EC) }x ) + ) { next; } @@ -294,6 +295,7 @@ sub render_html { backend => scalar $self->param('backend'), filter_line => scalar $self->param('line'), filter_platform => scalar $self->param('platform'), + hide_regional => ( $template eq 'infoscreen' ? 0 : 1 ), ); my @departures = make_infoboard_lines( @@ -332,9 +334,10 @@ sub render_json { city => $self->stash('city'), stop => $self->stash('stop'), backend => scalar $self->param('backend'), + cache_expiry => 60, filter_line => scalar $self->param('line'), filter_platform => scalar $self->param('platform'), - cache_expiry => 60, + hide_regional => 1, ); my @departures = make_infoboard_lines( no_lines => scalar $self->param('no_lines'), @@ -373,6 +376,7 @@ sub render_image { backend => scalar $self->param('backend'), filter_line => scalar $self->param('line'), filter_platform => scalar $self->param('platform'), + hide_regional => 0, ); my @departures = make_infoboard_lines( -- cgit v1.2.3