forked from lavender/watch-party
		
	Small tweaks
This commit is contained in:
		
							parent
							
								
									30d1429e83
								
							
						
					
					
						commit
						caf96d1d04
					
				
					 3 changed files with 13 additions and 10 deletions
				
			
		|  | @ -3,7 +3,7 @@ | ||||||
|   <head> |   <head> | ||||||
|     <meta charset="utf-8" /> |     <meta charset="utf-8" /> | ||||||
|     <title>watch party :D</title> |     <title>watch party :D</title> | ||||||
|     <link rel="stylesheet" href="/styles.css?v=1" /> |     <link rel="stylesheet" href="/styles.css?v=2" /> | ||||||
|   </head> |   </head> | ||||||
| 
 | 
 | ||||||
|   <body> |   <body> | ||||||
|  | @ -47,6 +47,6 @@ | ||||||
|       </form> |       </form> | ||||||
|     </div> |     </div> | ||||||
| 
 | 
 | ||||||
|     <script src="/main.js?v=1"></script> |     <script src="/main.js?v=2"></script> | ||||||
|   </body> |   </body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
|  | @ -253,14 +253,16 @@ const setupChatboxEvents = (socket) => { | ||||||
| 
 | 
 | ||||||
|     const input = chatForm.querySelector("input"); |     const input = chatForm.querySelector("input"); | ||||||
|     const content = input.value; |     const content = input.value; | ||||||
|     input.value = ""; |     if (content.trim().length) { | ||||||
|  |       input.value = ""; | ||||||
| 
 | 
 | ||||||
|     socket.send(JSON.stringify({ |       socket.send(JSON.stringify({ | ||||||
|       "op": "ChatMessage", |         "op": "ChatMessage", | ||||||
|       "data": { |         "data": { | ||||||
|         "message": content, |           "message": content, | ||||||
|       } |         } | ||||||
|     })); |       })); | ||||||
|  |     } | ||||||
|   }); |   }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -118,7 +118,8 @@ button.small-button { | ||||||
|   display: none; |   display: none; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| .user-join { | .user-join, | ||||||
|  | .user-leave { | ||||||
|   font-style: italic; |   font-style: italic; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue