PTDR je modifie le mauvais fichier depuis tout a l'heure

This commit is contained in:
piair 2023-09-27 12:15:08 +02:00
parent 942bda3a29
commit 8813542cfc
3 changed files with 7 additions and 12 deletions

View File

@ -69,14 +69,11 @@ function change_proxy(value, data, len) {
function change_logs(value) { function change_logs(value) {
var myIframe = document.getElementById('embed'); var myIframe = document.getElementById('embed');
myIframe.addEventListener("load", async () => { 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.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
await delay(1000);
document.getElementById('iframe').contentWindow.location.reload();
}); });
myIframe.src = "/static/logs/" + value + ".txt"; myIframe.src = "/static/logs/" + value + ".txt";

View File

@ -12,15 +12,13 @@
<script> <script>
var myIframe = document.getElementById('iframe'); var myIframe = document.getElementById('iframe');
myIframe.addEventListener("load", function() { myIframe.addEventListener("load", async () => {
let doc = myIframe.contentDocument;
doc.body.innerHTML = doc.body.innerHTML + '<style>html{color:white;}</style>';
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight); myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
reloadIFrame(); await delay(1000);
});
function reloadIFrame() {
console.log('reloading..');
document.getElementById('iframe').contentWindow.location.reload(); document.getElementById('iframe').contentWindow.location.reload();
} });
</script> </script>
{% endif %} {% endif %}
{% endblock %} {% endblock %}

View File

@ -1 +1 @@
v6.6.12 v6.6.13