diff --git a/www/pgm2/RSS.js b/www/pgm2/RSS.js new file mode 100644 index 000000000..104591b47 --- /dev/null +++ b/www/pgm2/RSS.js @@ -0,0 +1,9 @@ +// reload image with id +function reloadImage(id) { + // we use a dummy query to trick the browser into reloading the image + var d = new Date(); + var q = '?t=' + d.getTime(); + var image = document.getElementById(id); + var url = image.getAttribute('src'); + image.setAttribute('src', url.replace(/\?.*/,'') + q ); +}