Created
September 25, 2022 11:22
-
-
Save percybolmer/b0c13952ce1e148c04987d005b6a8306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="center"> | |
<h1>Amazing Chat Application</h1> | |
<h3 id="chat-header">Currently in chat: general</h3> | |
<h3 id="connection-header">Connected to Websocket: false</h3> | |
<!-- | |
Here is a form that allows us to select what Chatroom to be in | |
--> | |
<form id="chatroom-selection"> | |
<label for="chatroom">Chatroom:</label> | |
<input type="text" id="chatroom" name="chatroom"><br><br> | |
<input type="submit" value="Change chatroom"> | |
</form> | |
<br> | |
<!-- | |
Textarea to show messages from users | |
--> | |
<textarea class="messagearea" id="chatmessages" readonly name="chatmessages" rows="4" cols="50" | |
placeholder="Welcome to the general chatroom, here messages from others will appear"></textarea> | |
<br> | |
<!-- | |
Chatroom-message form is used to send messages | |
--> | |
<form id="chatroom-message"> | |
<label for="message">Message:</label> | |
<input type="text" id="message" name="message"><br><br> | |
<input type="submit" value="Send message"> | |
</form> | |
<!-- | |
login form is used to login | |
--> | |
<div style="border: 3px solid black;margin-top: 30px;"> | |
<form id="login-form"> | |
<label for="username">username:</label> | |
<input type="text" id="username" name="username"><br> | |
<label for="password">password:</label> | |
<input type="password" id="password" name="password"><br><br> | |
<input type="submit" value="Login"> | |
</form> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment