normalement ca marche

This commit is contained in:
piair 2023-09-27 19:59:48 +02:00
parent e6f3d66f7b
commit 11d30491c6
3 changed files with 7 additions and 6 deletions

View File

@ -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";

View File

@ -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 %}

View File

@ -1 +1 @@
v6.6.19 v6.6.20