[bugfix] HTML faild validator.w3.org checks
This commit is contained in:
parent
e2df92e6b4
commit
0ee3a27733
@ -19,12 +19,13 @@ def get_html_header(refresh_rate=10):
|
||||
header = ['<!DOCTYPE html>',
|
||||
'<html>',
|
||||
'<head>',
|
||||
' <link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css" />',
|
||||
' <link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css" />',
|
||||
'</head>',
|
||||
' <title>SurvBot status</title>',
|
||||
' <link rel="stylesheet" media="only screen and (max-width: 400px)" href="mobile.css">',
|
||||
' <link rel="stylesheet" media="only screen and (min-width: 401px)" href="desktop.css">',
|
||||
f' <meta http-equiv="refresh" content="{refresh_rate}">',
|
||||
' <meta charset="utf-8">',
|
||||
' <meta name="viewport" content="width=device-width, initial-scale=1">',
|
||||
'</head>',
|
||||
'<body>']
|
||||
header = _convert_to_textstring(header)
|
||||
return header
|
||||
|
Loading…
x
Reference in New Issue
Block a user