changed interval input to a select. select is autopopulated with options on load. default is 30 seconds
</div>
</div>
<div class="mb-2">
- <div class="row">
- <div class="col-8">
+ <div class="row flex-row-reverse">
+ <div class="col-2">
<div class="input-group mb-3">
- <input type="number" id="refreshRate" class="form-control" value="10">
+ <select class="custom-select" id="refreshRate">
+ </select>
<div class="input-group-append">
- <span class="input-group-text">Seconds</span>
+ <label class="input-group-text" for="refreshRate">Seconds</label>
</div>
</div>
</div>
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)
</script>
</body>
