94 lines
3.3 KiB
HTML
94 lines
3.3 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>
|
|
|
|
<!-- 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">
|
|
<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>
|
|
|
|
<!-- Custom JavaScript -->
|
|
<script src="{{ url_for('static', filename='js/chart_manager.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/annotation_manager.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/time_navigator.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/training_controller.js') }}"></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>
|