web ui
This commit is contained in:
parent
aa508a43cb
commit
8aaf95c374
5 changed files with 20479 additions and 0 deletions
51
static/index.html
Normal file
51
static/index.html
Normal file
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<script src="chart.js"></script>
|
||||
<script src="chartjs-adapter-date-fns.bundle.js"></script>
|
||||
<script src="chartjs-chart-error-bars.umd.js"></script>
|
||||
<style>
|
||||
body {
|
||||
text-align: center;
|
||||
}
|
||||
div.chart {
|
||||
margin: 20px auto;
|
||||
position: relative;
|
||||
height: 80vh;
|
||||
width: 80vw;
|
||||
}
|
||||
label {
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
</style>
|
||||
<title>💩📈</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>💩📈</h1>
|
||||
<div id="controls">
|
||||
<label>
|
||||
Start date:
|
||||
<input id="startDate" type="date">
|
||||
</label>
|
||||
<label>
|
||||
End date:
|
||||
<input id="endDate" type="date">
|
||||
</label>
|
||||
</div>
|
||||
<div class="chart">
|
||||
<canvas id="northCanvas"></canvas>
|
||||
</div>
|
||||
<div class="chart">
|
||||
<canvas id="southCanvas"></canvas>
|
||||
</div>
|
||||
<script src="poopGraph.js"></script>
|
||||
<div>
|
||||
Download data: <a href="/data.csv">CSV</a> <a href="/data.json">JSON</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://www.mwra.com/biobot/biobotdata.htm">Source: Massachusetts Water Resources Authority</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue