Add zone switching (#5)

Pixel calculation error

Add zone switching

Co-authored-by: siinus <pearu@siinus.com>
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2021-03-05 16:10:00 +00:00
parent 4be70b9c31
commit 810fefe323
4 changed files with 69 additions and 2 deletions

View File

@@ -70,6 +70,10 @@
function doCancel() {
send_get('/crash');
}
function switchRegion(region_id) {
send_get('/region/' + region_id);
}
</script>
</head>
@@ -83,6 +87,12 @@
<label><input type="checkbox" id="looping" /><b> loop</b></label>
</div>
<div class="row">
<p>Zone switch</p>
{% for region in regions %}
<button onclick="switchRegion({{ region }})">zone {{ region }}</button>
{% endfor %}
</div>
<div class="row" id='loading' style="visibility: hidden"><b>LOADING!</b></div>
<div class="section-rgb">
<div class="row">