Add zone switching

This commit is contained in:
siinus
2021-02-27 03:09:20 +02:00
parent 4be70b9c31
commit 1acd14bea4
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">