added motd, todo.txt, and small bug fixes

This commit is contained in:
Kevin Froman 2019-10-08 16:14:30 -05:00
parent 695f334297
commit c4c4fb70d5
14 changed files with 106 additions and 199 deletions

View file

@ -0,0 +1,13 @@
fetch('/getmotd', {
headers: {
"token": webpass
}})
.then((resp) => resp.text())
.then(function(resp) {
resp = resp.trim()
if (resp.length <= 1){return}
let motds = document.getElementsByClassName("motdContent")
for (x = 0; x < motds.length; x++){
motds[x].innerText = resp
}
})