summaryrefslogtreecommitdiff
path: root/public/static/js/image.js
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-08-11 20:14:55 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-08-11 20:14:55 +0200
commit75d5a9234353d50d90f853175bf9af5b41d42044 (patch)
treed0c252cb8ca989e39717e01770911f4944298175 /public/static/js/image.js
parent661f3d079c7643acac16ffa372c20d80ee42244b (diff)
use asset versioning
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);
+});