switched to 'input' update for motionInterval on add_stream page
This commit is contained in:
parent
c19812a181
commit
8b001243c5
2 changed files with 10 additions and 2 deletions
|
|
@ -10,4 +10,12 @@ function motionIntervalChange(){
|
|||
let motionIntervalInput = document.getElementById("motion_interval");
|
||||
let motionIntervalLabel = document.getElementById("motion_interval_label");
|
||||
motionIntervalLabel.innerHTML = "Motion Interval (MS): " + motionIntervalInput.value
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function(){
|
||||
motion_interval_slider = document.getElementById("motion_interval");
|
||||
|
||||
motion_interval_slider.addEventListener("input", e => {
|
||||
motionIntervalChange();
|
||||
});
|
||||
});
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
<span class="pure-form-message">{{.IntervalMessage}}</span>
|
||||
|
||||
<label id="motion_interval_label" for="motion_interval">Motion Interval (MS): 1000</label>
|
||||
<input type="range" id="motion_interval" name="motion_interval" onchange="motionIntervalChange()" value="1000" min="50" max="5000">
|
||||
<input type="range" id="motion_interval" name="motion_interval" value="1000" min="50" max="5000">
|
||||
<span class="pure-form-message">{{.MotionIntervalMessage}}</span>
|
||||
|
||||
<button type="submit" class="pure-button pure-button-primary">Submit</button>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue