summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-03 18:56:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-03 18:56:35 +0200
commit295eb7553ae682bc03cdbf14b2c6dca0870f3cbe (patch)
tree13640065640b73aa82ac4744fe0c8723aff90a50
parentceef0eda607c16844043be2477bf0da5abf9aec4 (diff)
adjust autoreload to work in html mode
-rw-r--r--cgi/templates/main.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep
index 821824a..7a2612d 100644
--- a/cgi/templates/main.html.ep
+++ b/cgi/templates/main.html.ep
@@ -66,7 +66,7 @@
id="display" height="<%= $height * 4 %>" width="<%= $width * 4 %>"/>
% }
% elsif ($frontend eq 'html') {
-<iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>"
+<iframe src="/<%= $city %>/<%= $stop %>.html?<%= $params %>" id="display"
height="<%= $height * 5 %>" width="<%= $width * 5 %>"></iframe>
% }
% }
@@ -157,7 +157,7 @@ v<%= $version %>
<script type="text/javascript">
function reloadDisplay() {
d = new Date();
- $("#display").attr("src", "../<%= $city %>/<%= $stop %>.png?<%= $params %>&r="+d.getTime())
+ $("#display").attr("src", "../<%= $city %>/<%= $stop %>.<%= $frontend %>?<%= $params %>&r="+d.getTime())
setTimeout('reloadDisplay()', 60000);
}