Compare commits
	
		
			No commits in common. "0ac58d622bfa44cf9f3ce1a9de4150f149baa9b2" and "1c09b5020e312d3b0a6ea3bb56dc7e128d03a1ac" have entirely different histories.
		
	
	
		
			0ac58d622b
			...
			1c09b5020e
		
	
		
					 5 changed files with 10 additions and 6 deletions
				
			
		|  | @ -63,4 +63,8 @@ button { | |||
| 
 | ||||
| #loggeduser { | ||||
|     padding-top: 2% | ||||
| } | ||||
| 
 | ||||
| #errormessage { | ||||
|     padding-top: 2.5%; | ||||
| } | ||||
|  | @ -28,7 +28,7 @@ a { | |||
|     height: 540px; | ||||
|     margin-right: 0.3em; | ||||
|     margin-left: -40%; | ||||
|     margin-top: 5%; | ||||
|     margin-top: auto; | ||||
|     margin-bottom: 20%; | ||||
|     font-size: 250%; | ||||
|     text-align: center; | ||||
|  | @ -44,18 +44,16 @@ a { | |||
|     height: 53rem; | ||||
|     margin-left: 0.3em; | ||||
|     margin-right: -30%; | ||||
|     margin-top: -8%; | ||||
|     border: none; | ||||
| } | ||||
| 
 | ||||
| .navigation-list { | ||||
|     display: inline-flex; | ||||
|     display: flex; | ||||
|     list-style-type: none; | ||||
|     flex-wrap: wrap; | ||||
|     gap: 10px; | ||||
|     justify-content: center; | ||||
|     padding: 0; | ||||
|     margin-left: 5%; | ||||
| } | ||||
| 
 | ||||
| .buttons { | ||||
|  |  | |||
|  | @ -31,6 +31,8 @@ | |||
|         <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), | ||||
|   }); | ||||
|   printText('Logged out.') | ||||
|   document.querySelector("#errormessage").innerHTML = 'Logged out.' | ||||
|   document.getElementById("logoutbutton").style.display = "none"; | ||||
|   localStorage.removeItem('username') | ||||
|   username = null; | ||||
|  |  | |||
|  | @ -52,7 +52,7 @@ form.addEventListener("submit", async function (event) { | |||
| //CHECKS IF A USERNAME IS TAKEN
 | ||||
| async function isUnameTaken() { | ||||
| 
 | ||||
|   const response = await fetch(`/api/users/${uname}/`); | ||||
|   const response = await fetch(`../api/users/${uname}/`); | ||||
|   const isTaken = await response.json(); | ||||
| 
 | ||||
|   //YES THIS IS CONFUSING I KNOW.
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue