Heat-Tracker/public/trends.html

65 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<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">
<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">
<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>
<button class="nav-btn" onclick="location.href='/trends.html'">Trends</button>
</header>
<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>
</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 -->
<div id="chart-container">
<canvas id="trend-chart"></canvas>
</div>
<!-- Scrollable, sortable data table -->
<div id="trends-table-container">
<table id="trends-table">
<thead>
<tr>
<th class="sortable">Date / Time</th>
<th class="sortable">Temperature (°F)</th>
<th class="sortable">Humidity (%)</th>
<th class="sortable">Heat Index (°F)</th>
<th class="sortable">Station/Dock Door</th>
<th class="sortable">Location</th>
</tr>
</thead>
<tbody id="trends-table-body"></tbody>
</table>
</div>
</div>
<!-- Serverinjected initial data -->
<!--INITIAL_DATA-->
<script src="/scripts/trends.js"></script>
</body>
</html>