Initial commit

This commit is contained in:
Gašper Dobrovoljc
2023-03-13 14:50:49 +01:00
commit 0c0d82db42
9 changed files with 298 additions and 0 deletions

47
static/index.html Normal file
View File

@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/luxon@1.27.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@1.0.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@2.0.0"></script>
<script defer src="script.js"></script>
</head>
<style>
table {
border-collapse: collapse;
}
td,
tr {
border: 1px solid black;
padding: 5px;
}
.row {
display: flex;
}
</style>
<body>
<span id="data"></span>
<br />
<label for="target">
Target
<input type="range" min="0" max="100" id="target" />
</label>
<div class="row">
<canvas id="chart"></canvas>
<table id="table">
<thead>
<th>Time</th>
<th>Value</th>
</thead>
<tbody></tbody>
</table>
</div>
</body>
</html>