déjà skip la 6.6.6 ;(

This commit is contained in:
piair 2023-09-27 11:34:47 +02:00
parent dc2a9e20df
commit 45db9eb67c
2 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,7 @@ function change_logs(value) {
myIframe.addEventListener("load", function() { myIframe.addEventListener("load", function() {
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.src = "/static/logs/" + value + ".txt"; myIframe.src = "/static/logs/" + value + ".txt";

View File

@ -19,6 +19,8 @@
function reloadIFrame() { function reloadIFrame() {
console.log('reloading..'); console.log('reloading..');
document.getElementById('iframe').contentWindow.location.reload(); document.getElementById('iframe').contentWindow.location.reload();
var myIframe = document.getElementById('iframe');
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
} }
</script> </script>
{% endif %} {% endif %}