diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-08-20 18:49:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-08-20 18:49:36 +0200 |
commit | 5bca4819dd35226886e85adf6e6c3cebdf1fb00a (patch) | |
tree | eeddde4349108f84c8fa252e467da91c8bf3257c /public/image.js | |
parent | 9d09737ac16b1f3715c38f57830b41a3269d85d9 (diff) |
move application from cgi directory to project root
Diffstat (limited to 'public/image.js')
-rw-r--r-- | public/image.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/image.js b/public/image.js new file mode 100644 index 0000000..40bc37d --- /dev/null +++ b/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); +}); |