Commit fd30941d authored by Harald Sitter's avatar Harald Sitter

add my html watcher; it's like bin/monitor except in a browser

...before I forget to commit it again for 3 months
parent 4b22c5de
<script>
function refresh(node)
{
var sleep = 100;
(function startRefresh()
{
if (node.complete !== true) {
// If the previous image hasn't completed loading, skip this update and schedule a new one.
// This prevents us from overloading weak connections with cancelled transfers.
setTimeout(startRefresh, sleep);
return;
}
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, sleep);
})();
}
window.onload = function()
{
var node = document.getElementById('fullScreenshot');
refresh(node);
}
</script>
<p algin="center"><img id="fullScreenshot" src="wok/qemuscreenshot/last.png" /></p></div></div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment