Update public/trends.html
This commit is contained in:
parent
67e036df63
commit
0c0fb30f9c
@ -3,15 +3,15 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<title>Trends – Fuego Heat Tracker</title>
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<title>Trends – Fuego Heat Tracker</title>
|
||||
<!-- 1) Chart.js CDN -->
|
||||
<!-- 1) Load Chart.js from CDN -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header class="main-header">
|
||||
<img src="/image/logo.png" alt="Amazon Logo" class="logo">
|
||||
<img src="/image/logo.png" alt="Logo" class="logo">
|
||||
<span class="header-title">| Fuego – Heat Tracker</span>
|
||||
<button class="nav-btn" onclick="location.href='/input.html'">Log Reading</button>
|
||||
<button class="nav-btn" onclick="location.href='/heatmap.html'">Heat Map</button>
|
||||
@ -21,25 +21,21 @@
|
||||
<div class="page-container">
|
||||
<h1>Trends</h1>
|
||||
|
||||
<!-- Timeframe slider + label -->
|
||||
<div style="display:flex;align-items:center;margin-bottom:1rem;">
|
||||
<input id="timeframe-slider" type="range" min="0" max="4" value="0" style="flex:1;">
|
||||
<span id="timeframe-label" style="margin-left:1rem;white-space:nowrap;"></span>
|
||||
</div>
|
||||
|
||||
<!-- Metric toggles -->
|
||||
<div style="margin-bottom:1rem;">
|
||||
<label><input type="checkbox" name="metric" value="temperature" checked> Temperature</label>
|
||||
<label><input type="checkbox" name="metric" value="humidity" checked> Humidity</label>
|
||||
<label><input type="checkbox" name="metric" value="heatIndex" checked> Heat Index</label>
|
||||
</div>
|
||||
|
||||
<!-- Chart container must have a height or Chart.js won’t render -->
|
||||
<div id="chart-container" style="height:50vh;width:100%;margin-bottom:2rem;">
|
||||
<canvas id="trend-chart"></canvas>
|
||||
</div>
|
||||
|
||||
<!-- Trends table -->
|
||||
<table id="trends-table" style="width:100%;border-collapse:collapse;">
|
||||
<thead>
|
||||
<tr>
|
||||
@ -55,7 +51,7 @@
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 2) Your trends.js -->
|
||||
<!-- 2) Our logic with debug logs -->
|
||||
<script src="/scripts/trends.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user