added table

This commit is contained in:
oliver 2019-07-12 17:19:21 +02:00
parent 1e85c51a0e
commit b4ffcb2d07
2 changed files with 48 additions and 3 deletions

45
table.html Normal file
View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container"> <style>(width; 100px)</style>
<h2>month</h2>
<p>The maximum / minimum level:</p>
<table class="table table-hover">
<thead>
<tr>
<th>Sensor</th>
<th>minimum</th>
<th>maximum</th>
</tr>
</thead>
<tbody>
<tr>
<td>temperature</td>
<td>10 °C</td>
<td>28 °C</td>
</tr>
<tr>
<td>humidity</td>
<td>10 %</td>
<td>85 %</td>
</tr>
<tr>
<td>presure</td>
<td>957 hPa</td>
<td>1016 hPa</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

View file

@ -2,7 +2,7 @@
<html> <html>
<head> <head>
<title>Doughnut Chart</title> <title>humidity Chart</title>
<script src="js/Chart.min.js"></script> <script src="js/Chart.min.js"></script>
<script src="js/utils.js"></script> <script src="js/utils.js"></script>
<style> <style>
@ -131,10 +131,10 @@
document.getElementById('changeCircleSize').addEventListener('click', function() { document.getElementById('changeCircleSize').addEventListener('click', function() {
if (window.myDoughnut.options.circumference === Math.PI) { if (window.myDoughnut.options.circumference === Math.PI) {
window.myDoughnut.options.circumference = 2 * Math.PI; window.myDoughnut.options.circumference = 2 * Math.PI;
window.myDoughnut.options.rotation = -Math.PI; window.myDoughnut.options.rotation = -Math.PI / 2;
} else { } else {
window.myDoughnut.options.circumference = Math.PI; window.myDoughnut.options.circumference = Math.PI;
window.myDoughnut.options.rotation = -Math.PI / 2; window.myDoughnut.options.rotation = -Math.PI;
} }
window.myDoughnut.update(); window.myDoughnut.update();