added motd, todo.txt, and small bug fixes
This commit is contained in:
parent
695f334297
commit
c4c4fb70d5
14 changed files with 106 additions and 199 deletions
13
static-data/www/private/js/motd.js
Normal file
13
static-data/www/private/js/motd.js
Normal 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
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue