live updates wip

This commit is contained in:
Dobromir Popov
2025-11-13 18:10:15 +02:00
parent 59f2382b3a
commit 4fcadcdbff
6 changed files with 568 additions and 14 deletions

View File

@@ -36,6 +36,9 @@
<i class="fas fa-database"></i>
<span id="annotation-count">0</span> Annotations
</span>
<span class="nav-item text-light me-3" id="ws-connection-status">
<span class="badge bg-secondary">⚪ Connecting...</span>
</span>
<span class="nav-item text-light">
<i class="fas fa-clock"></i>
<span id="current-time">--:--:--</span>
@@ -74,11 +77,15 @@
<!-- jQuery (for convenience) -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Socket.IO for WebSocket support -->
<script src="https://cdn.socket.io/4.5.4/socket.io.min.js"></script>
<!-- Custom JavaScript with cache busting -->
<script src="{{ url_for('static', filename='js/chart_manager.js') }}?v={{ range(1, 10000) | random }}"></script>
<script src="{{ url_for('static', filename='js/annotation_manager.js') }}?v={{ range(1, 10000) | random }}"></script>
<script src="{{ url_for('static', filename='js/time_navigator.js') }}?v={{ range(1, 10000) | random }}"></script>
<script src="{{ url_for('static', filename='js/training_controller.js') }}?v={{ range(1, 10000) | random }}"></script>
<script src="{{ url_for('static', filename='js/live_updates_ws.js') }}?v={{ range(1, 10000) | random }}"></script>
{% block extra_js %}{% endblock %}