summaryrefslogtreecommitdiffstats
path: root/template.html
diff options
context:
space:
mode:
authorJannik Schönartz2019-06-04 18:20:34 +0200
committerJannik Schönartz2019-06-04 18:20:34 +0200
commitec9003edf5e0b7fb407fa4138617ef8be4e11ed5 (patch)
tree6a66f269a1af902c80461ca66622c828c05f07b9 /template.html
parentPing requests now consideres the exitcode of the subprocess (diff)
downloadbwlp-monitoring-master.tar.gz
bwlp-monitoring-master.tar.xz
bwlp-monitoring-master.zip
Add warning error background & scrollbar fixHEADmaster
Diffstat (limited to 'template.html')
-rw-r--r--template.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/template.html b/template.html
index 70720a6..4e7623f 100644
--- a/template.html
+++ b/template.html
@@ -6,7 +6,7 @@
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<title>bwLp Status Monitor</title>
</head>
- <body>
+ <body class="%PULSE%">
<div id="header">
<div id="header_left" class="header_element">
<a href="">
@@ -46,9 +46,14 @@
const vertical = urlParams.get('vertical')
const noheader = urlParams.get('noheader')
const nofooter = urlParams.get('nofooter')
+
var autorefresh = urlParams.get('autorefresh')
var autorefresh = parseInt(autorefresh)
+ // Parameter for testing the pulsing background
+ const offline = urlParams.get('offline')
+ if (offline !== null) document.body.className += ' pulse'
+
// Often used elements
const body = document.getElementById('body')
const logWrapper = document.getElementById('log_wrapper')
@@ -87,6 +92,7 @@
content.style.height = '100%'
content.style.boxShadow = 'unset'
content.style.maxWidth = 'unset'
+ content.style.minHeight = '150px'
var media = window.matchMedia("(min-width: 1500px)")
borderlessMedia(media, logWrapper, content)
@@ -159,7 +165,7 @@
logWrapper.style.maxHeight = '80vh'
content.style.width = '100%'
content.style.height = 'unset'
- content.style.minHeight = '150px'
+ content.style.minHeight = 'fit-content'
body.style.alignItems = 'center'
}
borderless()