summaryrefslogtreecommitdiff
path: root/templates/display.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/display.html.ep')
-rw-r--r--templates/display.html.ep23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/display.html.ep b/templates/display.html.ep
new file mode 100644
index 0000000..e65fdc9
--- /dev/null
+++ b/templates/display.html.ep
@@ -0,0 +1,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>