summaryrefslogtreecommitdiff
path: root/public/static/image.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-03-14 11:17:46 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-03-14 11:17:46 +0100
commit8695b61e3787009df59d7fc9a013bb4a1522d630 (patch)
tree883e260a2fdad1b6f39eefbb9bcd815ac7eb8715 /public/static/image.js
parent5fab5f4516b7c01c7e6b920f9d9f6280275e929d (diff)
move static files into separate subdirectory for easy static serving
Diffstat (limited to 'public/static/image.js')
-rw-r--r--public/static/image.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/static/image.js b/public/static/image.js
new file mode 100644
index 0000000..40bc37d
--- /dev/null
+++ b/public/static/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);
+});