normalement ca marche
This commit is contained in:
parent
e6f3d66f7b
commit
11d30491c6
@ -23,6 +23,10 @@ function change_discord(value, data, len) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function delay(ms) {
|
||||||
|
return new Promise(resolve => setTimeout(resolve, ms));
|
||||||
|
}
|
||||||
|
|
||||||
function change_config(value, data, len) {
|
function change_config(value, data, len) {
|
||||||
console.log(data[2]);
|
console.log(data[2]);
|
||||||
document.getElementById("delete").style.visibility = "hidden";
|
document.getElementById("delete").style.visibility = "hidden";
|
||||||
|
@ -10,9 +10,6 @@
|
|||||||
<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="80%"></iframe>
|
<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="80%"></iframe>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function delay(ms) {
|
|
||||||
return new Promise(resolve => setTimeout(resolve, ms));
|
|
||||||
}
|
|
||||||
var myIframe = document.getElementById('iframe');
|
var myIframe = document.getElementById('iframe');
|
||||||
|
|
||||||
myIframe.addEventListener("load", async () => {
|
myIframe.addEventListener("load", async () => {
|
||||||
@ -20,8 +17,8 @@
|
|||||||
await delay(2000);
|
await delay(2000);
|
||||||
document.getElementById('iframe').contentWindow.location.reload();
|
document.getElementById('iframe').contentWindow.location.reload();
|
||||||
});
|
});
|
||||||
function descendre() {myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);}
|
|
||||||
window.setInterval(descendre(), 500);
|
window.setInterval(function() {document.getElementById('iframe').contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);}, 500);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user