summaryrefslogtreecommitdiffstats
path: root/bwlpMonitor_template.html
diff options
context:
space:
mode:
Diffstat (limited to 'bwlpMonitor_template.html')
-rw-r--r--bwlpMonitor_template.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/bwlpMonitor_template.html b/bwlpMonitor_template.html
index ec61c48..f05c233 100644
--- a/bwlpMonitor_template.html
+++ b/bwlpMonitor_template.html
@@ -44,9 +44,11 @@
const urlParams = new URLSearchParams(window.location.search)
const horizontal = urlParams.get('horizontal')
const vertical = urlParams.get('vertical')
+ const noheader = urlParams.get('noheader')
+ var autorefresh = urlParams.get('autorefresh')
+ var autorefresh = parseInt(autorefresh)
// No header removes the header from the site.
- const noheader = urlParams.get('noheader')
if (noheader != null) {
document.getElementById('header').style.visibility = 'hidden'
document.getElementById('body').style.marginTop = '0px'
@@ -99,8 +101,6 @@
}
// Autorefresh the site.
- var autorefresh = urlParams.get('autorefresh')
- var autorefresh = parseInt(autorefresh)
if (Number.isInteger(autorefresh)) {
setTimeout(function() {
location.reload();
@@ -124,7 +124,6 @@
var mediaMinWidth = window.matchMedia("(min-width: 1500px)")
minWidth(mediaMinWidth)
mediaMinWidth.addListener(minWidth)
-
function minWidth(media) {
const body = document.getElementById('body')
const logWrapper = document.getElementsByClassName('log_wrapper')[0]