Update public/trends.html
This commit is contained in:
parent
1a5c73264c
commit
8b64a043b7
@ -6,7 +6,6 @@
|
|||||||
<title>Trends – Fuego Heat Tracker</title>
|
<title>Trends – Fuego Heat Tracker</title>
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<link rel="stylesheet" href="styles.css">
|
<link rel="stylesheet" href="styles.css">
|
||||||
<!-- Chart.js from CDN -->
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -21,26 +20,22 @@
|
|||||||
<div class="page-container">
|
<div class="page-container">
|
||||||
<h1>Trends</h1>
|
<h1>Trends</h1>
|
||||||
|
|
||||||
<!-- Timeframe slider + label -->
|
<div style="display:flex;align-items:center;margin-bottom:1rem;">
|
||||||
<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">
|
||||||
<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>
|
||||||
<span id="timeframe-label" style="margin-left:1rem; white-space:nowrap;"></span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Metric toggles -->
|
<div style="margin-bottom:1rem">
|
||||||
<div style="margin-bottom:1rem;">
|
|
||||||
<label><input type="checkbox" name="metric" value="temperature" checked> Temperature</label>
|
<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="humidity" checked> Humidity</label>
|
||||||
<label><input type="checkbox" name="metric" value="heatIndex" checked> Heat Index</label>
|
<label><input type="checkbox" name="metric" value="heatIndex" checked> Heat Index</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Chart container -->
|
<div id="chart-container" style="height:50vh;width:100%;margin-bottom:2rem">
|
||||||
<div id="chart-container" style="height:50vh; width:100%; margin-bottom:2rem;">
|
|
||||||
<canvas id="trend-chart"></canvas>
|
<canvas id="trend-chart"></canvas>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Data table -->
|
<table id="trends-table" style="width:100%;border-collapse:collapse">
|
||||||
<table id="trends-table" style="width:100%; border-collapse:collapse;">
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="sortable">Date / Time</th>
|
<th class="sortable">Date / Time</th>
|
||||||
@ -55,10 +50,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Server will inject this script tag before sending -->
|
|
||||||
<!--INITIAL_DATA-->
|
<!--INITIAL_DATA-->
|
||||||
|
|
||||||
<!-- Trends client logic -->
|
|
||||||
<script src="/scripts/trends.js"></script>
|
<script src="/scripts/trends.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user