changes
This commit is contained in:
parent
6cb493eba7
commit
9b67cdacf1
5 changed files with 9 additions and 30 deletions
|
@ -17,9 +17,7 @@
|
|||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<pre>{{config}}</pre>
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
<pre>{{content}}</pre>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue