summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-10-29 21:53:47 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-10-29 21:53:47 +0200
commit7ac162dfae8912cd9d3297ffb565cf342f23a932 (patch)
treeced5e81cc000e25e84f5380b0e7c3f3787500487
parent2778aeb7f5505e67b3a8e30f4ad1f3f665d33ce3 (diff)
fix image reload
-rw-r--r--cgi/index.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 33733fb..dd5e875 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -195,6 +195,7 @@ __DATA__
}
</style>
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
</head>
<body>
@@ -237,11 +238,10 @@ v<%= $version %>
</body>
-<script language="text/javascript">
+<script type="text/javascript">
function reloadDisplay() {
- var now = new Date();
- document.getElementById("display").src
- = document.getElementById("display").src + '&r=' + now.getTime();
+ d = new Date();
+ $("#display").attr("src", "../<%= $city %>/<%= $stop %>.png?<%= $params %>&r="+d.getTime())
setTimeout('reloadDisplay()', 30000);
}