diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-09-03 18:51:01 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-09-03 18:51:01 +0200 |
commit | ceef0eda607c16844043be2477bf0da5abf9aec4 (patch) | |
tree | 0e730a8747d7c86dabbee23cb96dffffdfd44a6b /cgi/templates/main.html.ep | |
parent | 84bd3ab9a8d7a5ff188227737f77bc1b1a02037a (diff) |
add experimental HTML frontend
Diffstat (limited to 'cgi/templates/main.html.ep')
-rw-r--r-- | cgi/templates/main.html.ep | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep index 6686ff6..821824a 100644 --- a/cgi/templates/main.html.ep +++ b/cgi/templates/main.html.ep @@ -9,6 +9,10 @@ font-family: Sans-Serif; } + iframe { + border: none; + } + div.about { margin-top: 2em; color: #666666; @@ -57,9 +61,15 @@ <body> % if ($city and $stop) { +% if ($frontend eq 'png') { <img src="../<%= $city %>/<%= $stop %>.png?<%= $params %>" alt="" id="display" height="<%= $height * 4 %>" width="<%= $width * 4 %>"/> % } +% elsif ($frontend eq 'html') { +<iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>" +height="<%= $height * 5 %>" width="<%= $width * 5 %>"></iframe> +% } +% } % else { <p> @@ -116,6 +126,10 @@ other German transit networks. <div class="desc">backend</div> <div><%= select_field backend => [['EFA (VRR)' => 'vrr'], ['HAFAS (DB)' => 'db']] %></div> </div> + <div class="field"> + <div class="desc">frontend</div> + <div><%= select_field frontend => [['Image (PNG)' => 'png'], ['HTML' => 'html']] %></div> + </div> </div> <% end %> |