This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
spark-art-dashboard/index.html
2018-10-03 03:48:27 +01:00

73 lines
2.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Spark ART Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.diogo.site/projects/excalibur_template/assets/css/main.css">
<style>
#chart-container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
#chart-container > canvas {
height: 400px;
}
#ingestion-rate-box {
float: right;
height: 76px;
left: 0;
position: absolute;
top: 7em;
z-index: 50;
padding: 20px;
}
@media screen and (max-width: 1200px) {
position:static;
float:none;
}
</style>
</head>
<body>
<header id="header">
<nav id="side-menu">
<label for="show-menu" id="menu-button">Menu</label>
<input id="show-menu" role="button" type="checkbox">
<ul id="menu">
<li><a href="#" class="current">Stats</a></li>
</ul>
</nav>
<h1>ART Dashboard</h1>
<div id="ingestion-rate-box">
<p>Ingestion Rate</p>
<label for="ingestion-rate-min">Minimum (Kbps)</label>
<input id="ingestion-rate-min" type="number">
<label for="ingestion-rate-max">Maximum (Kbps)</label>
<input id="ingestion-rate-max" type="number">
<label for="ingestion-rate-per">Period (ms)</label>
<input id="ingestion-rate-per" type="number"><br>
<input id="ingestion-rate-update" type="submit" value="Update">
</div>
</header>
<div id="chart-container">
<canvas id="chart-ingestionRate"></canvas>
<canvas id="chart-Accuracy (%)"></canvas>
<canvas id="chart-cost"></canvas>
<canvas id="chart-Window (ms)"></canvas>
<canvas id="chart-Delay (ms)"></canvas>
<canvas id="chart-execTime (ms)"></canvas>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-annotation/0.5.7/chartjs-plugin-annotation.min.js"></script>
<script src="chart.js"></script>
<script src="ingestion-rate.js"></script>
<footer id="footer">
<p><a href="https://github.com/diogogithub/spark-art-dashboard">ART Dashboard</a> and <a href="https://github.com/diogogithub/excalibur_template/">Excalibur template</a> by <a href="https://www.diogo.site/">Diogo Cordeiro</a> - <a href="https://www.inesc-id.pt/">INESC-ID</a>
</footer>
</body>
</html>