Fix scripts place in index.html

This commit is contained in:
Iam54r1n4
2025-02-07 03:54:27 +00:00
parent c40da42b15
commit 480dc54e81

View File

@ -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 %}