Error Messages are now printed in chat instead of below the chat.
parent
4db3d71f68
commit
f3b2ca64ff
|
@ -63,8 +63,4 @@ button {
|
|||
|
||||
#loggeduser {
|
||||
padding-top: 2%
|
||||
}
|
||||
|
||||
#errormessage {
|
||||
padding-top: 2.5%;
|
||||
}
|
|
@ -31,8 +31,6 @@
|
|||
<div id="loggeduser"></div>
|
||||
|
||||
<button type="button" id="logoutbutton" onclick="logout()">Logout</button>
|
||||
|
||||
<div id="errormessage"></div>
|
||||
|
||||
<script src="../js/chat.js"></script>
|
||||
<script src="../js/logout.js"></script>
|
||||
|
|
|
@ -13,7 +13,7 @@ async function logout() {
|
|||
},
|
||||
body: JSON.stringify(sendLogoutInfo),
|
||||
});
|
||||
document.querySelector("#errormessage").innerHTML = 'Logged out.'
|
||||
printText('Logged out.')
|
||||
document.getElementById("logoutbutton").style.display = "none";
|
||||
localStorage.removeItem('username')
|
||||
username = null;
|
||||
|
|
Loading…
Reference in New Issue