oh bordel qu'es ce que je fous
This commit is contained in:
parent
7e6062ca1c
commit
07c37b9ae9
|
@ -73,7 +73,20 @@ function change_logs(value) {
|
||||||
let doc = myIframe.contentDocument;
|
let doc = myIframe.contentDocument;
|
||||||
doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>';
|
doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>';
|
||||||
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
||||||
|
|
||||||
|
window.setInterval(function() {
|
||||||
|
reloadIFrame()
|
||||||
|
}, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function reloadIFrame() {
|
||||||
|
console.log('reloading..');
|
||||||
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
|
|
||||||
|
window.setInterval(function() {
|
||||||
|
reloadIFrame()
|
||||||
|
}, 100000);
|
||||||
|
}
|
||||||
myIframe.src = "/static/logs/" + value + ".txt";
|
myIframe.src = "/static/logs/" + value + ".txt";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue