2024-12-20 03:29:29 +01:00
|
|
|
<link rel="stylesheet" href="bootstrap-grid.css">
|
|
|
|
<style>
|
|
|
|
.progressPane{
|
|
|
|
display: block;
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: lightgrey;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
|
|
|
.progressPaneCenter{
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 48%;
|
|
|
|
position: absolute;
|
|
|
|
height: 4%;
|
|
|
|
width: 50%;
|
|
|
|
margin-left: 25%;
|
|
|
|
margin-right: 25%;
|
|
|
|
}
|
|
|
|
.progress {
|
|
|
|
height: 1.5em;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #c9c9c9;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.progress:after {
|
|
|
|
content: attr(data-label);
|
|
|
|
font-size: 0.8em;
|
|
|
|
position: absolute;
|
|
|
|
text-align: center;
|
|
|
|
top: 5px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
.progress .value {
|
|
|
|
background-color: #7cc4ff;
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress .valueIndeterminate {
|
|
|
|
background-color: #7cc4ff;
|
|
|
|
display: inline-block;
|
|
|
|
height: 100%;
|
|
|
|
animation: indeterminateAnimation 1s infinite linear;
|
|
|
|
transform-origin: 0% 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes indeterminateAnimation {
|
|
|
|
0% {
|
|
|
|
transform: translateX(0%) scaleX(0.5);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: translateX(50%) scaleX(0.5);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateX(0%) scaleX(0.5);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-12-30 20:19:37 +01:00
|
|
|
|
|
|
|
<div class="container-xxl">
|
2024-12-20 03:29:29 +01:00
|
|
|
<input type="button" id="test" value="Test">
|
|
|
|
|
2024-12-30 20:19:37 +01:00
|
|
|
<div id="firmwareview">
|
2024-12-20 03:29:29 +01:00
|
|
|
|
2024-12-30 20:19:37 +01:00
|
|
|
</div>
|
|
|
|
|
2024-12-20 03:29:29 +01:00
|
|
|
<div id="timeview">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="network_view">
|
|
|
|
</div>
|
|
|
|
|
2024-12-30 20:19:37 +01:00
|
|
|
<div id="tankview"></div>
|
|
|
|
<div id="batteryview"></div>
|
|
|
|
|
2024-12-20 03:29:29 +01:00
|
|
|
|
|
|
|
<h2>config</h2>
|
|
|
|
|
|
|
|
<div id="configform">
|
2024-12-30 20:19:37 +01:00
|
|
|
|
2024-12-20 03:29:29 +01:00
|
|
|
|
|
|
|
<h3>Light:</h3>
|
|
|
|
<input type="checkbox" id="night_lamp_enabled" checked="false"> Enable Nightlight
|
|
|
|
<div>
|
|
|
|
Start
|
|
|
|
<select type="time" id="night_lamp_time_start">
|
|
|
|
</select>
|
|
|
|
Stop
|
|
|
|
<select type="time" id="night_lamp_time_end">
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="checkbox" id="night_lamp_only_when_dark">
|
|
|
|
Light only when dark
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3>Plants:</h3>
|
|
|
|
<button id="measure_moisture">Measure Moisture</button>
|
|
|
|
<div id="plants" class="row"></div>
|
|
|
|
</div>
|
|
|
|
<button id="submit">Submit</button>
|
|
|
|
<div id="submit_status"></div>
|
|
|
|
<br>
|
|
|
|
<textarea id="json" cols=50 rows=10></textarea>
|
|
|
|
<script src="bundle.js"></script>
|
2024-12-30 20:19:37 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="progressPane" class="progressPane">
|
|
|
|
<div class="progressPaneCenter">
|
|
|
|
<div id="progressPaneBar" class="progress" data-label="50% Complete">
|
|
|
|
<span id="progressPaneSpan" class="value" style="width:100%;"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-12-20 03:29:29 +01:00
|
|
|
</div>
|