summaryrefslogtreecommitdiff
path: root/cgi/public
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-08-20 17:37:38 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-08-20 17:37:38 +0200
commit9d09737ac16b1f3715c38f57830b41a3269d85d9 (patch)
tree69c8cd1fe4c3ac07481e5a8bc611b1d5466a7949 /cgi/public
parent67293b98b51c7287e7bd93715d3324b2bc64b529 (diff)
do not use inline js as well
Diffstat (limited to 'cgi/public')
-rw-r--r--cgi/public/image.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/cgi/public/image.js b/cgi/public/image.js
new file mode 100644
index 0000000..40bc37d
--- /dev/null
+++ b/cgi/public/image.js
@@ -0,0 +1,9 @@
+$(document).ready(function() {
+ function reloadImage() {
+ d = new Date();
+ origurl = $('#display').attr('src').split('&r=')[0];
+ $('#display').attr('src', origurl+'&r='+d.getTime());
+ setTimeout(reloadImage, 60000);
+ }
+ setTimeout(reloadImage, 60000);
+});