From 0a2f7ddc610f9944dd8ab29c937e50de5388ea96 Mon Sep 17 00:00:00 2001 From: BroodjeAap Date: Sun, 26 Jul 2020 20:47:22 +0000 Subject: [PATCH] added js file missing from previous commit --- static/js/add_stream.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 static/js/add_stream.js diff --git a/static/js/add_stream.js b/static/js/add_stream.js new file mode 100755 index 0000000..bef5efa --- /dev/null +++ b/static/js/add_stream.js @@ -0,0 +1,13 @@ + +function intervalChange(){ + let intervalInput = document.getElementById("interval"); + let motionIntervalInput = document.getElementById("motion_interval"); + + motionIntervalInput.max = intervalInput.value; +} + +function motionIntervalChange(){ + let motionIntervalInput = document.getElementById("motion_interval"); + let motionIntervalLabel = document.getElementById("motion_interval_label"); + motionIntervalLabel.innerHTML = "Motion Interval (MS): " + motionIntervalInput.value +} \ No newline at end of file