-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (24 loc) · 844 Bytes
/
index.html
File metadata and controls
30 lines (24 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<script>
function refresh(node) {
var times = 3000; // gap in Milli Seconds;
(function startRefresh() {
var address;
if (node.src.indexOf('?') > -1)
address = node.src.split('?')[0];
else
address = node.src;
node.src = address + "?time=" + new Date().getTime();
setTimeout(startRefresh, times);
})();
}
window.onload = function() {
var node = document.getElementById('img');
refresh(node);
// you can refresh as many images you want just repeat above steps
}
</script>
</head>
<body onload="refresh();">
<center><img id="img" src="output/save.png" /></center>