Skip to content

Commit

Permalink
Update slide.html
Browse files Browse the repository at this point in the history
make open and close position visible
  • Loading branch information
gvdhoven committed Dec 20, 2020
1 parent bae6067 commit 2a21bfb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions slide.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@
<label for="node-config-input-devicecode"><i class="fa fa-microchip"></i> Device code</label>
<input type="password" id="node-config-input-devicecode">
</div>
<div class="form-row">
<label for="node-config-input-openPosition"><i class="fa fa-microchip"></i> Open position</label>
<input type="password" id="node-config-input-openPosition">
</div>
<div class="form-row">
<label for="node-config-input-closePosition"><i class="fa fa-microchip"></i> Close position</label>
<input type="password" id="node-config-input-closePosition">
</div>
<div class="form-row">
<label>Action:</label>
<button type="button" class="red-ui-button" id="slide-calibrate">Calibrate</button>
<input type="hidden" id="node-config-input-openPosition">
<input type="hidden" id="node-config-input-closePosition">
</div>
<div class="form-row">
<label>Manual control:</label>
Expand All @@ -37,8 +43,8 @@
var slideConfig = {
'hostname': $.trim($('#node-config-input-hostname').val()),
'devicecode': $.trim($('#node-config-input-devicecode').val()),
'openPosition': $('node-config-input-openPosition').val(),
'closePosition': $('node-config-input-closePosition').val()
'openPosition': parseFloat($('node-config-input-openPosition').val()),
'closePosition': parseFloat($('node-config-input-closePosition').val())
};

if ((slideConfig.hostname === '') || (slideConfig.devicecode === '')) {
Expand Down

0 comments on commit 2a21bfb

Please sign in to comment.