blob: 234068b36a7fae2925b694ff0f7b109f823737c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<!DOCTYPE html>
<html>
<head>
<title><%= $title %></title>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: VRRR;
src: url('/VRRR.ttf');
}
body {
font-family: VRRR;
background-color: #000000;
color: #ffd000;
font-size: <%= $scale * 100 %>%;
}
div.outer {
width: 12em;
margin-left: auto;
margin-right: auto;
}
div.row {
position: relative;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
width: 12em;
height: 0.68em;
}
div.row div {
overflow: hidden;
position: absolute;
height: 100%;
}
div.line {
left: 0;
width: 13%;
}
div.dest {
left: 14%;
width: 67%;
}
div.time {
right: 0;
width: 19%;
text-align: right;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
</head>
<body>
<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>
|