ca va faire plus de version que minecraft a ce rythme
This commit is contained in:
parent
e5d8551aab
commit
942bda3a29
|
@ -69,21 +69,14 @@ function change_proxy(value, data, len) {
|
||||||
|
|
||||||
function change_logs(value) {
|
function change_logs(value) {
|
||||||
var myIframe = document.getElementById('embed');
|
var myIframe = document.getElementById('embed');
|
||||||
myIframe.addEventListener("load", function() {
|
myIframe.addEventListener("load", async () => {
|
||||||
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);
|
||||||
|
await delay(1000);
|
||||||
myInterval = window.setInterval(function() {
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
reloadIFrame()
|
|
||||||
}, 1000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function reloadIFrame() {
|
|
||||||
console.log('reloading..');
|
|
||||||
document.getElementById('iframe').contentWindow.location.reload();
|
|
||||||
clearInterval(myInterval);
|
|
||||||
}
|
|
||||||
myIframe.src = "/static/logs/" + value + ".txt";
|
myIframe.src = "/static/logs/" + value + ".txt";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue