diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-11 20:14:55 +0200 |
commit | 75d5a9234353d50d90f853175bf9af5b41d42044 (patch) | |
tree | d0c252cb8ca989e39717e01770911f4944298175 /public/static/js/image.js | |
parent | 661f3d079c7643acac16ffa372c20d80ee42244b (diff) |
use asset versioning
Diffstat (limited to 'public/static/js/image.js')
-rw-r--r-- | public/static/js/image.js | 9 |
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); +}); |