Test buttons and state refresh 1
This commit is contained in:
parent
7ef748ae0d
commit
31da872ef6
@ -51,4 +51,5 @@ function refreshState(doc, state) {
|
|||||||
|
|
||||||
function power(element) {
|
function power(element) {
|
||||||
psState[element].power(comms);
|
psState[element].power(comms);
|
||||||
|
refreshState(window.document, psState);
|
||||||
}
|
}
|
@ -44,13 +44,13 @@
|
|||||||
<form action="/" method="post">
|
<form action="/" method="post">
|
||||||
<!-- Start | Shutdown | Reload Settings -->
|
<!-- Start | Shutdown | Reload Settings -->
|
||||||
<div class="button-container flex">
|
<div class="button-container flex">
|
||||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="igniter-toggle-btn" value="Toggle Igniter" name="igniterToggle">
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="igniter-toggle-btn" value="Toggle Igniter" name="igniterToggle" onclick="power('igniter')">
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container flex mt-4">
|
<div class="button-container flex mt-4">
|
||||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="exhaust-toggle-btn" value="Toggle Exhaust" name="exhaustToggle">
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="exhaust-toggle-btn" value="Toggle Exhaust" name="exhaustToggle" onclick="power('exhaust')">
|
||||||
</div>
|
</div>
|
||||||
<div class="button-container flex mt-4">
|
<div class="button-container flex mt-4">
|
||||||
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="auger-toggle-btn" value="Toggle Auger" name="augerToggle">
|
<input class="btn bg-gray-700 hover:bg-purple-600 text-white py-2 w-full rounded mx-auto" type="submit" id="auger-toggle-btn" value="Toggle Auger" name="augerToggle" onclick="power('auger')">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Set feed rates -->
|
<!-- Set feed rates -->
|
||||||
|
Loading…
Reference in New Issue
Block a user