[bugfix] HTML faild validator.w3.org checks

This commit is contained in:
Kasper D. Fischer 2025-04-02 18:07:10 +02:00
parent e2df92e6b4
commit 0ee3a27733

@ -19,12 +19,13 @@ def get_html_header(refresh_rate=10):
header = ['<!DOCTYPE html>', header = ['<!DOCTYPE html>',
'<html>', '<html>',
'<head>', '<head>',
' <link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css" />', ' <title>SurvBot status</title>',
' <link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css" />', ' <link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css">',
'</head>', ' <link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css">',
f' <meta http-equiv="refresh" content="{refresh_rate}">', f' <meta http-equiv="refresh" content="{refresh_rate}">',
' <meta charset="utf-8">', ' <meta charset="utf-8">',
' <meta name="viewport" content="width=device-width, initial-scale=1">', ' <meta name="viewport" content="width=device-width, initial-scale=1">',
'</head>',
'<body>'] '<body>']
header = _convert_to_textstring(header) header = _convert_to_textstring(header)
return header return header