From 8695b61e3787009df59d7fc9a013bb4a1522d630 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 14 Mar 2016 11:17:46 +0100 Subject: move static files into separate subdirectory for easy static serving --- public/static/image.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 public/static/image.js (limited to 'public/static/image.js') 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); +}); -- cgit v1.2.3