Update public/trends.html
This commit is contained in:
parent
17444fec63
commit
15fba9cb7b
@ -5,7 +5,7 @@
|
||||
<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">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
@ -20,22 +20,27 @@
|
||||
<div class="page-container">
|
||||
<h1>Trends</h1>
|
||||
|
||||
<!-- Timeframe slider -->
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<div style="margin-bottom:1rem">
|
||||
<!-- 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>
|
||||
|
||||
<div id="chart-container" style="height:50vh;width:100%;margin-bottom:2rem">
|
||||
<!-- Chart -->
|
||||
<div id="chart-container">
|
||||
<canvas id="trend-chart"></canvas>
|
||||
</div>
|
||||
|
||||
<table id="trends-table" style="width:100%;border-collapse:collapse">
|
||||
<!-- Scrollable, sortable data table -->
|
||||
<div id="trends-table-container">
|
||||
<table id="trends-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="sortable">Date / Time</th>
|
||||
@ -49,8 +54,11 @@
|
||||
<tbody id="trends-table-body"></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Server‐injected initial data -->
|
||||
<!--INITIAL_DATA-->
|
||||
|
||||
<script src="/scripts/trends.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user