var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
const delay = ms => new Promise(res => setTimeout(res, ms));
fetch ("run.txt")
.then(x => x.text())
.then(y => document.getElementById("run").innerHTML = y);
fetch ("block.txt")
.then(x => x.text())
.then(y => document.getElementById("blocked").innerHTML = y);
async function reboot(){
document.getElementById("rebooticon").innerHTML = ""
fetch ("reboot.run")
.then(x => x.text())
.then(y => document.getElementById("rebooticon").innerHTML = y);
await delay(2000)
document.getElementById("rebooticon").innerHTML = ""
}
async function refresh(){
document.getElementById("refresh").innerHTML = ""
document.getElementById("run").innerHTML = ""
document.getElementById("blocked").innerHTML = ""
fetch ("run.txt")
.then(x => x.text())
.then(y => document.getElementById("run").innerHTML = y)
fetch ("block.txt")
.then(x => x.text())
.then(y => document.getElementById("blocked").innerHTML = y);
await delay(2000)
document.getElementById("refresh").innerHTML = ""
}