2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00
fhem-mirror/fhem/www/pgm2/RSS.js

10 lines
331 B
JavaScript
Raw Normal View History

// 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 );
}