-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.html
More file actions
77 lines (70 loc) · 2.6 KB
/
progress.html
File metadata and controls
77 lines (70 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Climb Log - Full History</title>
<link rel="icon" type="image/png" sizes="16x16" href="favicon.png">
<link rel="stylesheet" href="styles.css">
<!-- Font Awesome (CDN Link) -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
</head>
<body>
<div class="container">
<h1>Progress</h1>
<!-- Add a canvas for the graph -->
<div class="graph-container">
<canvas id="climbingGraph"></canvas>
</div>
<div class="graph-container" style="margin-top: 20px;">
<canvas id="climbCountGraph"></canvas>
</div>
<div class="focus-area">
<h2>Focus Area</h2>
<div id="focus-tips">
<script>
const focusTipsDiv = document.getElementById('focus-tips');
const focusSuggestions = JSON.parse(localStorage.getItem('focusSuggestions') || '[]');
if (focusSuggestions.length > 0) {
const tipsList = document.createElement('ul');
focusSuggestions.forEach(tip => {
const tipItem = document.createElement('li');
tipItem.textContent = tip;
tipsList.appendChild(tipItem);
});
focusTipsDiv.appendChild(tipsList);
} else {
focusTipsDiv.textContent = "No focus tips available yet.";
}
</script>
</div>
</div>
</div>
<!-- Bottom Navigation Tabs -->
<nav class="bottom-nav">
<a href="index.html" class="tab-link">
<i class="fa fa-home"></i>
</a>
<a href="full-log.html" class="tab-link">
<i class="fa fa-list-alt"></i>
</a>
<a href="progress.html" class="tab-link">
<i class="fa fa-chart-line"></i>
</a>
<a href="ai-trainer.html" class="tab-link">
<i class="fa fa-robot"></i>
</a>
<a href="config.html" class="tab-link">
<i class="fa fa-gear"></i>
</a>
</nav>
<script src="progress.js"></script>
</body>
</html>