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