|
|
@ -56,7 +56,6 @@ |
|
|
|
<input type="button" value="Restart" class="btn" id="restart"/> |
|
|
|
<input type="button" value="Turn Off" class="btn" id="power_off"/> |
|
|
|
<input type="button" value="Turn On" class="btn" id="power_on"/> |
|
|
|
<input type="button" value="Alarm Info" class="btn" id="alarminfo"/> |
|
|
|
</div> |
|
|
|
<br/> |
|
|
|
<p>Ctrl result: <span id="result">n/a</span></p> |
|
|
@ -186,14 +185,6 @@ |
|
|
|
getAjax("/api/ctrl", ctrlCb, "POST", JSON.stringify(obj)); |
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById("alarminfo").addEventListener("click", function() { |
|
|
|
var obj = new Object(); |
|
|
|
obj.id = get_selected_iv(); |
|
|
|
obj.cmd = "dev"; |
|
|
|
obj.val = 0x11; |
|
|
|
getAjax("/api/ctrl", ctrlCb, "POST", JSON.stringify(obj)); |
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById("sendpwrlim").addEventListener("click", function() { |
|
|
|
var val = parseInt(document.getElementsByName('pwrlimval')[0].value); |
|
|
|
var cmd = document.getElementsByName('pwrlimctrl')[0].value; |
|
|
|