From 5bca4819dd35226886e85adf6e6c3cebdf1fb00a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Aug 2014 18:49:36 +0200 Subject: move application from cgi directory to project root --- public/image.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 public/image.js (limited to 'public/image.js') 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); +}); -- cgit v1.2.3