This commit is contained in:
Philipp
2021-01-22 11:53:30 -05:00
committed by GitHub
3 changed files with 19 additions and 7 deletions

View File

@@ -381,6 +381,10 @@
<option value="ser" data-i18n="pi-gpiod.servo"></option>
</select>
</div>
<div class="form-row" id="node-set-frequency">
<label>&nbsp;&nbsp;&nbsp;&nbsp;<span data-i18n="pi-gpiod.label.freq"></label>
<input type="text" id="node-input-freq" style="width:70px;"> Hz
</div>
<div class="form-row" id="node-set-minimax">
<label>&nbsp;&nbsp;&nbsp;&nbsp;<span data-i18n="pi-gpiod.label.limits"></label>
<span data-i18n="pi-gpiod.label.min"></span> <input type="text" id="node-input-sermin" style="width:70px;"> uS
@@ -449,6 +453,7 @@
set: { value:"" },
level: { value:"0" },
out: { value:"out" },
freq: { value:"800" },
sermin: { value:"1000" },
sermax: { value:"2000" }
},
@@ -480,8 +485,9 @@
if ($("#node-input-out").val() === "pwm") {
$('#node-set-tick').hide();
$('#node-set-state').hide();
$('#node-set-minimax').hide();
$('#node-input-set').prop('checked', false);
$("#node-set-frequency").show();
$('#node-set-minimax').hide();
$("#dig-tip").hide();
$("#pwm-tip").show();
$("#ser-tip").hide();
@@ -489,14 +495,16 @@
else if ($("#node-input-out").val() === "ser") {
$('#node-set-tick').hide();
$('#node-set-state').hide();
$('#node-set-minimax').show();
$('#node-input-set').prop('checked', false);
$("#node-set-frequency").hide();
$('#node-set-minimax').show();
$("#dig-tip").hide();
$("#pwm-tip").hide();
$("#ser-tip").show();
}
else {
$('#node-set-tick').show();
$("#node-set-frequency").hide();
$('#node-set-minimax').hide();
$("#dig-tip").show();
$("#pwm-tip").hide();