-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
32 lines (25 loc) · 875 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<script type="text/javascript">
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const status = urlParams.get('status')
window.onload = function() {
const celement = document.getElementById("content")
var bcolor = "red"
if (status == "1") {
celement.innerHTML = "You are out!";
} else if (status == "2") {
celement.innerHTML = "You are in!";
bcolor = "green"
}
document.getElementById("cbody").style['background-color'] = bcolor;
}
</script>
</head>
<body id="cbody">
<div id="content" style='font-size: 3em; color: white; text-align: center; margin-top: 3em; font-weight: bold;'>
Waiting for status
</div>
</body>
</html>