summaryrefslogtreecommitdiffstats
path: root/template.html
diff options
context:
space:
mode:
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()