This commit is contained in:
mcinj 2022-05-16 23:56:47 -04:00
parent 6cb493eba7
commit 9b67cdacf1
5 changed files with 9 additions and 30 deletions

View file

@ -17,9 +17,7 @@
</div>
</header>
<div class="container">
<pre>{{config}}</pre>
{% block content %}
{% endblock %}
<pre>{{content}}</pre>
</div>
</body>
</html>

View file

@ -17,19 +17,7 @@
</div>
</header>
<div class="container">
<pre id="output"></pre>
<script>
var output = document.getElementById('output');
var xhr = new XMLHttpRequest();
xhr.open('GET', '{{ url_for('stream') }}');
xhr.send();
output.textContent = xhr.responseText;
setInterval(function() {
output.textContent = xhr.responseText;
}, 10000);
</script>
<pre id="output">{{content}}</pre>
</div>
</body>
</html>