diff --git a/css/posts.css b/css/posts.css index 9795079..b5e2ca6 100644 --- a/css/posts.css +++ b/css/posts.css @@ -2,6 +2,10 @@ color: green; } +.status { + color: white; +} + .self { color: gray; } @@ -56,7 +60,7 @@ button { font-family: 'system-ui'; } -.post,.self { +.post,.self,.status { width: 50%; margin-left: 25%; margin-right: 25%; diff --git a/js/posts.js b/js/posts.js index 7dd0756..9125185 100644 --- a/js/posts.js +++ b/js/posts.js @@ -82,6 +82,9 @@ async function main(){ username = user.username if(!username){ document.getElementById("noaccount").style="" + document.getElementById("loading").style="display:none;" + console.log("no account"); + return; } document.getElementById("username-self").innerText = username } @@ -119,8 +122,8 @@ async function main(){ } } - document.getElementById("loading").style="display:none;" - + document.getElementById("loading").style="display:none;" + document.getElementById("scriptonly").style = "" } function reply(username) { @@ -170,6 +173,3 @@ 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 = "" diff --git a/views/posts.html b/views/posts.html index fa918c1..d8efcb9 100644 --- a/views/posts.html +++ b/views/posts.html @@ -11,12 +11,12 @@
-