first commit
This commit is contained in:
21
web/templates/logs.html
Normal file
21
web/templates/logs.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% include 'base.html' %}
|
||||
{% block main %}
|
||||
<div class="qard">
|
||||
<h3>Logs</h3>
|
||||
|
||||
<pre id="output" style="text-align:left"></pre>
|
||||
<script>
|
||||
var output = document.getElementById('output');
|
||||
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '{{ url_for('stream') }}');
|
||||
xhr.send();
|
||||
|
||||
setInterval(function() {
|
||||
output.textContent = xhr.responseText;
|
||||
}, 1000);
|
||||
</script>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
{% include 'foot.html' %}
|
||||
Reference in New Issue
Block a user