Fix scripts place in index.html
This commit is contained in:
@ -67,7 +67,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block javascripts %}
|
||||||
<script>
|
<script>
|
||||||
function updateServerInfo() {
|
function updateServerInfo() {
|
||||||
fetch('{{ url_for('server_status_api') }}')
|
fetch('{{ url_for('server_status_api') }}')
|
||||||
@ -88,4 +90,5 @@
|
|||||||
// Update every 10 seconds (adjust as needed)
|
// Update every 10 seconds (adjust as needed)
|
||||||
setInterval(updateServerInfo, 5000);
|
setInterval(updateServerInfo, 5000);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user