2023-06-17 16:52:47 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block left_pannel %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{%if not current_user.is_authenticated %}
|
|
|
|
<button class="unselected" onclick="location.href = '/login';">login</button>
|
|
|
|
{% else %}
|
2023-09-27 11:43:00 +02:00
|
|
|
<iframe id="iframe" src="{{url_for('static', filename='logs/dev.txt')}}" width="100%" height="80%"></iframe>
|
2023-06-17 16:52:47 +02:00
|
|
|
|
2023-09-27 10:25:54 +02:00
|
|
|
<script>
|
2023-09-27 11:43:00 +02:00
|
|
|
var myIframe = document.getElementById('iframe');
|
|
|
|
myIframe.addEventListener("load", function() {
|
|
|
|
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
2023-09-27 11:51:38 +02:00
|
|
|
reloadIFrame();
|
2023-09-27 11:43:00 +02:00
|
|
|
});
|
2023-09-27 10:25:54 +02:00
|
|
|
|
|
|
|
function reloadIFrame() {
|
|
|
|
console.log('reloading..');
|
|
|
|
document.getElementById('iframe').contentWindow.location.reload();
|
|
|
|
}
|
|
|
|
</script>
|
2023-06-17 16:52:47 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|