104 lines
4.2 KiB
HTML
104 lines
4.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Manual Trade Annotation{% endblock %}</title>
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007bff'%3E%3Cpath d='M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z'/%3E%3C/svg%3E">
|
|
|
|
<!-- Bootstrap CSS -->
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
|
<!-- Font Awesome -->
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
|
|
|
<!-- Plotly -->
|
|
<script src="https://cdn.plot.ly/plotly-2.27.0.min.js"></script>
|
|
|
|
<!-- Custom CSS -->
|
|
<link href="{{ url_for('static', filename='css/dark_theme.css') }}" rel="stylesheet">
|
|
<link href="{{ url_for('static', filename='css/annotation_ui.css') }}" rel="stylesheet">
|
|
|
|
{% block extra_css %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<!-- Navigation Bar -->
|
|
<nav class="navbar navbar-dark bg-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">
|
|
<i class="fas fa-chart-line"></i>
|
|
Manual Trade Annotation
|
|
</a>
|
|
<div class="navbar-nav flex-row">
|
|
<span class="nav-item text-light me-3">
|
|
<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>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Main Content -->
|
|
<div class="container-fluid main-content">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<footer class="footer mt-auto py-3 bg-dark">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<span class="text-muted">
|
|
<i class="fas fa-info-circle"></i>
|
|
Click on charts to mark entry/exit points
|
|
</span>
|
|
</div>
|
|
<div class="col-md-6 text-end">
|
|
<span class="text-muted">
|
|
Keyboard: ← → to navigate, Space to mark
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- Bootstrap JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
|
|
<!-- 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 %}
|
|
|
|
<!-- Initialize application -->
|
|
<script>
|
|
// Update current time display
|
|
function updateTime() {
|
|
const now = new Date();
|
|
document.getElementById('current-time').textContent = now.toLocaleTimeString();
|
|
}
|
|
setInterval(updateTime, 1000);
|
|
updateTime();
|
|
</script>
|
|
</body>
|
|
</html>
|