From ec9003edf5e0b7fb407fa4138617ef8be4e11ed5 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 4 Jun 2019 18:20:34 +0200 Subject: Add warning error background & scrollbar fix --- main.py | 7 +++++-- style.css | 24 ++++++++++++++++++++++-- template.html | 10 ++++++++-- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index a719fc6..b6096d2 100755 --- a/main.py +++ b/main.py @@ -241,6 +241,7 @@ writeLog() # HTML Processing to generate the website. code = '\r\n' +is_offline_class = '' for status in statusList: # Prepare and calculate the time since the server is online / offline obj = getLogEntry(status) @@ -257,7 +258,8 @@ for status in statusList: timeString += str(hours) + ' hours ' if minutes > 0: timeString += str(minutes) + ' minutes' - + if status.status == 'Offline': + is_offline_class = 'pulse' code += ('
' + status.name + '
' + status.host + '
bwLp Status Monitor - +