From b3815b72de98674d8b0def34588ee245e9802e27 Mon Sep 17 00:00:00 2001 From: James Arcus <jimbo@ucc.asn.au> Date: Mon, 23 Sep 2024 17:33:04 +0800 Subject: [PATCH] Fix HTML conformance issues --- door_closed.html | 3 ++- door_open.html | 21 +++++++++++---------- door_unavail.html | 1 + 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/door_closed.html b/door_closed.html index ee456e2..b74178a 100644 --- a/door_closed.html +++ b/door_closed.html @@ -1,6 +1,7 @@ <!doctype html> <html lang="en"> <head> + <meta charset="utf-8"> <title>UCC Door Status</title> </head> <body> @@ -12,7 +13,7 @@ height="1020" alt="A plain image of the UCC door. Surely nothing sinister lies within..." title="A plain image of the UCC door. Surely nothing sinister lies within..." - ></img> + > </body> </html> diff --git a/door_open.html b/door_open.html index 0c06cd4..db5e592 100644 --- a/door_open.html +++ b/door_open.html @@ -1,16 +1,8 @@ <!doctype html> <html lang="en"> <head> + <meta charset="utf-8"> <title>UCC Door Status</title> - <script defer> - fetch('/opener').then(response => { - response.json().then(opener => { - if (opener) { - document.getElementById('opener').innerText = opener; - } - }); - }); - </script> </head> <body> <h1>UCC Door Status</h1> @@ -22,7 +14,16 @@ height="1020" alt="A wild Gary lurking in the open doorway to the UCC clubroom." title="A wild Gary lurking in the open doorway to the UCC clubroom." - ></img> + > + <script> + fetch('/opener').then(response => { + response.json().then(opener => { + if (opener) { + document.getElementById('opener').innerText = opener; + } + }); + }); + </script> </body> </html> diff --git a/door_unavail.html b/door_unavail.html index fd8eaec..5ea836b 100644 --- a/door_unavail.html +++ b/door_unavail.html @@ -1,6 +1,7 @@ <!doctype html> <html lang="en"> <head> + <meta charset="utf-8"> <title>UCC Door Status</title> </head> <body> -- GitLab