mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-13 14:34:45 +02:00
normalement ca marche
This commit is contained in:
@ -10,9 +10,6 @@
|
||||
<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="80%"></iframe>
|
||||
|
||||
<script>
|
||||
function delay(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
var myIframe = document.getElementById('iframe');
|
||||
|
||||
myIframe.addEventListener("load", async () => {
|
||||
@ -20,8 +17,8 @@
|
||||
await delay(2000);
|
||||
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>
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user