80 lines
2.1 KiB
HTML
80 lines
2.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<script src="chart.umd.js"></script>
|
|
<script src="chartjs-adapter-date-fns.bundle.min.js"></script>
|
|
<script src="chartjs-chart-error-bars.umd.min.js"></script>
|
|
<style>
|
|
body {
|
|
text-align: center;
|
|
}
|
|
div.chart {
|
|
margin: 20px auto;
|
|
max-width: 750px;
|
|
}
|
|
#controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 20px 20px;
|
|
}
|
|
canvas {
|
|
margin-bottom: 10px;
|
|
}
|
|
a.share {
|
|
font-family: sans-serif;
|
|
color: #000;
|
|
background-color: #ccc;
|
|
border: 1px solid #bbb;
|
|
border-radius: 4px;
|
|
padding: 6px 12px;
|
|
text-decoration: none;
|
|
}
|
|
a.share:hover {
|
|
background-color: #aaa;
|
|
}
|
|
</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>
|
|
<label>
|
|
Cut off large spikes?
|
|
<input id="cutSpikes" type="checkbox">
|
|
</label>
|
|
</div>
|
|
<div class="chart">
|
|
<canvas id="northCanvas"></canvas>
|
|
<a class="share" id="northShare" href="about:blank" target="_blank">Share</a>
|
|
</div>
|
|
<div class="chart">
|
|
<canvas id="southCanvas"></canvas>
|
|
<a class="share" id="southShare" href="about:blank" target="_blank">Share</a>
|
|
</div>
|
|
<script src="poopGraph.js"></script>
|
|
<div>
|
|
Download data: <a href="/data.csv">CSV</a> <a href="/data.json">JSON</a>
|
|
</div>
|
|
<h5>
|
|
<a href="https://www.mwra.com/biobot/biobotdata.htm">Data source: Massachusetts Water Resources Authority</a>
|
|
</h5>
|
|
<h5>
|
|
<a href="https://git.xeno.science/xenofem/poop-graph">Source code</a>
|
|
</h5>
|
|
<h5>
|
|
(c) 2022 xenofem, MIT License
|
|
</h5>
|
|
</body>
|
|
</html>
|