LoRaGateway_BTS2A/arduino vers web/index.html

113 lines
1.9 KiB
HTML
Raw Normal View History

2018-03-13 12:18:52 +01:00
<!DOCTYPE html>
2018-03-27 17:00:33 +02:00
<html lang='fr' class=''>
2018-03-13 12:18:52 +01:00
<head>
<meta charset='utf-8'>
2018-03-27 17:00:33 +02:00
<meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=no'/>
<meta http-equiv='refresh' content='1' />
2018-03-13 12:18:52 +01:00
<title>Passerelle LoRa</title>
<style>
div,fieldset,input,select
{
padding:5px;
font-size:1em;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
input
{
width:100%;
box-sizing:border-box;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
select
{
width:100%;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
textarea
{
resize:none;
width:98%;
height:318px;
padding:5px;
overflow:auto;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
body
{
text-align:center;
font-family:verdana;
2018-03-27 17:00:33 +02:00
background-color: #bcd5ff;
2018-03-13 12:18:52 +01:00
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
td
{
padding:0px;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
button
{
border:0;
border-radius:0.3rem;
background-color:#1fa3ec;
color:#fff;
line-height:2.4rem;
font-size:1.2rem;
width:100%;
-webkit-transition-duration:0.4s;
transition-duration:0.4s;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
button:hover
{
background-color:#006cba;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
.p
{
float:left;
text-align:left;
}
2018-03-27 17:00:33 +02:00
2018-03-13 12:18:52 +01:00
.q
{
float:right;
text-align:right;
}
</style>
</head>
<body onload='alea()'>
2018-03-27 17:00:33 +02:00
<script>
function alea() {
var x = document.getElementById('demo')x.innerHTML = Math.floor((Math.random() * 10) + 1);
}
</script>
2018-03-13 12:18:52 +01:00
<div style='text-align:left;display:inline-block;min-width:340px;'>
<div style='text-align:center;'>
<h1>Passerelle LoRa</h1>
</div>
2018-03-27 17:00:33 +02:00
<div>
<h2>[Température actuelle]</h2>
</div>
<div>
<p>
Nombre d'échantillons envoyés = %, Echec d'envoi : %
</p>
</div>
2018-03-13 12:18:52 +01:00
<div id='l1' name='l1'></div>
<table style='width:100%'>
<tr>
2018-03-27 17:00:33 +02:00
<button onclick='la('?o=1');'>Informations</button>
</tr>
<tr>
2018-03-13 12:18:52 +01:00
<button onclick='alea()'>rafraichir</button>
2018-03-27 17:00:33 +02:00
</tr>
<tr>
<button onclick='la('?o=1');'>Redémarrer</button>
2018-03-13 12:18:52 +01:00
</tr>
</table>
</div>
</body>
</html>