diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-09-03 18:56:35 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-09-03 18:56:35 +0200 |
commit | 295eb7553ae682bc03cdbf14b2c6dca0870f3cbe (patch) | |
tree | 13640065640b73aa82ac4744fe0c8723aff90a50 /cgi/templates | |
parent | ceef0eda607c16844043be2477bf0da5abf9aec4 (diff) |
adjust autoreload to work in html mode
Diffstat (limited to 'cgi/templates')
-rw-r--r-- | cgi/templates/main.html.ep | 4 |
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); } |