added new views

added loading information
added no account information
This commit is contained in:
none
2022-06-09 10:32:08 +02:00
parent b41d97985d
commit d5187c7332
2 changed files with 27 additions and 7 deletions
+8 -1
View File
@@ -80,7 +80,11 @@ async function main(){
if(!user){
user = await (await fetch("/api/getuser")).json()
username = user.username
if(!username)username = user.error
if(!username){
document.getElementById("noaccount").style=""
} else {
document.getElementById("loading").style="display:none;"
}
document.getElementById("username-self").innerText = username
}
@@ -166,3 +170,6 @@ if(window.location.href.includes("mention=")) {
if(window.location.href.includes("message=")) {
document.getElementById("post-text").innerText = `${decodeURIComponent(window.location.href.split("message=")[1])} `
}
document.getElementById("scriptonly").style = ""