summaryrefslogtreecommitdiff
path: root/templates/display.html.ep
blob: e65fdc93f1f348ae72fa5638f2b5eece6d2bcd8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
	<title><%= $title %></title>
	<meta charset="utf-8">
	%= stylesheet '/display.css'
	%= javascript '/jquery-2.1.1.min.js'
</head>
<body style="color: #<%= join(q{}, map { sprintf('%02x', $_) } @{$color} ) %>;
    font-size: <%= $scale * 100 %>%;">

<div class="outer">
% for my $d (@{$departures}) {
<div class="row">
<div class="line"> <%= $d->[0] %> </div>
<div class="dest"> <%= $d->[1] %> </div>
<div class="time"> <%= $d->[2] %> </div>
</div> <!-- row -->
% }
</div> <!-- outer -->

</body>
</html>