Skip to content
Snippets Groups Projects
Commit 9bce8500 authored by James Arcus's avatar James Arcus
Browse files

Fixup door opener latency

parent cc3364d8
No related merge requests found
......@@ -2,11 +2,20 @@
<html lang="en">
<head>
<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>
<p>The door is currently open!</p>
<p>Opened by: <span id="opener">a mysterious entity</span></p>
<p>Opened by: <span id="opener"></span></p>
<img
src="/gary.jpg"
width="574"
......@@ -14,15 +23,6 @@
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 async>
fetch('/opener').then(response => {
response.json().then(opener => {
if (opener) {
document.getElementById('opener').innerText = opener;
}
});
});
</script>
</body>
</html>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment