Skip to content

Commit

Permalink
Create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffisgonnabefriend43546453423 committed Sep 13, 2024
1 parent b8f129c commit 6929da6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions live chat/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Chat</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="login">
<input type="text" id="username" placeholder="Enter your username">
<button onclick="login()">Join Chat</button>
</div>
<div id="chat" style="display:none;">
<div id="messages"></div>
<input type="text" id="messageInput" placeholder="Type a message">
<button onclick="sendMessage()">Send</button>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="script.js"></script>
</body>
</html>

0 comments on commit 6929da6

Please sign in to comment.