feat: status page + maintenance
This commit is contained in:
parent
204269b849
commit
e76d9815c9
@ -3,11 +3,11 @@ function reboot() {
|
|||||||
xhttp.onreadystatechange = function() {
|
xhttp.onreadystatechange = function() {
|
||||||
if (this.readyState == 4 && this.status == 200) {
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
document.getElementById("logs").innerHTML = this.responseText;
|
document.getElementById("logs").innerHTML = this.responseText;
|
||||||
}
|
|
||||||
};
|
|
||||||
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);
|
|
||||||
xhttp.send();
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
|
document.location="https://www.thsf.net/thsf.net/maintenance/status.py"}, 5000
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
xhttp.open("GET", "https://www.thsf.net/thsf.net/maintenance/reboot.py", true);
|
||||||
|
xhttp.send();
|
||||||
|
}
|
||||||
|
@ -27,26 +27,24 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 48em;
|
width: 48em;
|
||||||
background-color: yellow;
|
|
||||||
}
|
}
|
||||||
.title {
|
.title {
|
||||||
|
font-size: 3em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
margin: 2em;
|
||||||
}
|
}
|
||||||
.table_headers, .line {
|
.table_headers, .line {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: green;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.header, .status {
|
.header, .status {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
width: 16em;
|
width: 16em;
|
||||||
padding: 1em;
|
padding: 0.2em;
|
||||||
background-color: violet;
|
|
||||||
}
|
}
|
||||||
.table_content {
|
.table_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -54,13 +52,16 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: cyan;
|
|
||||||
}
|
}
|
||||||
.status {
|
.status {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.container_log {
|
.container_log {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
width: 48em;
|
||||||
|
padding: 0.2em;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
}
|
}
|
||||||
.button {
|
.button {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
Loading…
Reference in New Issue
Block a user