summaryrefslogtreecommitdiff
path: root/public/static/js/image.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/js/image.js')
-rw-r--r--public/static/js/image.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/static/js/image.js b/public/static/js/image.js
new file mode 100644
index 0000000..40bc37d
--- /dev/null
+++ b/public/static/js/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);
+});