64 lines
1.7 KiB
HTML
64 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<meta charset="UTF-8" />
|
|
<head>
|
|
<title>therminator</title>
|
|
<link rel="stylesheet" type="text/css" href="/style.css" />
|
|
</head>
|
|
<body>
|
|
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
|
<h1>/* therminator */</h1>
|
|
<p>last sensor update: <span id="time"></span></p>
|
|
<div id="options">
|
|
<div id="mv">
|
|
<p>
|
|
max data points:
|
|
<select id="maxVals" onchange="location.reload()">
|
|
<option>15</option>
|
|
<option>20</option>
|
|
<option>30</option>
|
|
<option>50</option>
|
|
<option>100</option>
|
|
</select>
|
|
</p>
|
|
</div>
|
|
<div id="ui">
|
|
<p>
|
|
update interval (ms):
|
|
<select id="updateInterval" onchange="changeUpdateInterval()">
|
|
<option selected>500</option>
|
|
<option>1000</option>
|
|
<option>3000</option>
|
|
</select>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="chart-small">
|
|
<h2>Channel A:</h2>
|
|
<div id="error-tempA"></div>
|
|
<canvas id="chartA-mobile"></canvas>
|
|
<h2>Channel B:</h2>
|
|
<div id="error-tempB"></div>
|
|
<canvas id="chartB-mobile"></canvas>
|
|
</div>
|
|
<div id="chart-large">
|
|
<table>
|
|
<tr>
|
|
<td class="chart-container">
|
|
<h2>Channel A:</h2>
|
|
<div id="error-tempA"></div>
|
|
<canvas id="chartA"></canvas>
|
|
</td>
|
|
<td class="chart-container">
|
|
<h2>Channel B:</h2>
|
|
<div id="error-tempB"></div>
|
|
<canvas id="chartB"></canvas>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|