From 07c37b9ae9c82ce4e53fa4ef916c178aa9c732d6 Mon Sep 17 00:00:00 2001 From: piair Date: Wed, 27 Sep 2023 11:58:39 +0200 Subject: [PATCH] oh bordel qu'es ce que je fous --- Flask/static/js/main.js | 13 +++++++++++++ version | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 70581ea..31a8f7c 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -73,7 +73,20 @@ function change_logs(value) { let doc = myIframe.contentDocument; doc.body.innerHTML = doc.body.innerHTML + ''; 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"; diff --git a/version b/version index 16b3e2b..1893585 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.9 +v6.6.10