vraiment bizarre cet page de logs

This commit is contained in:
piair
2023-09-27 10:25:54 +02:00
parent 315bf4b150
commit e88a9e22f2
3 changed files with 13 additions and 1 deletions

View File

@ -9,6 +9,17 @@
<button class="unselected" onclick="location.href = '/login';">login</button>
{% else %}
<embed type="text/html" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="85%" id="embed">
<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}"></iframe>
<script>
window.setInterval(function() {
reloadIFrame()
}, 3000);
function reloadIFrame() {
console.log('reloading..');
document.getElementById('iframe').contentWindow.location.reload();
}
</script>
{% endif %}
{% endblock %}