From f26dacaf224120a2f4397d2a99ab2083635dd6bb Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 2 Oct 2020 09:48:23 -0400 Subject: [PATCH] changed interval input to a select. select is autopopulated with options on load. default is 30 seconds --- static/index.html | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/static/index.html b/static/index.html index fcc16a06..12cf1ff3 100644 --- a/static/index.html +++ b/static/index.html @@ -105,13 +105,14 @@
-
-
+
+
- -
- Seconds -
+ +
+ +
@@ -316,6 +317,13 @@ setRefreshInterval($(this).val() * 1000) }); + for (var i = 5; i <= 600; i++) { + if (i%5 == 0) { + $("#refreshRate").append(new Option(i, i)); + } + } + $("#refreshRate").val(10); + setRefreshInterval(30000)