Files
2026-07-24 21:42:06 +01:00

31 lines
977 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WS-Chat</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="header">
<div class="user-setup">
<input type="text" id="username" placeholder="Your username" value="">
<button id="login-btn">Join Chat</button>
</div>
<div class="online-users">
<strong>Online:</strong> <span id="online-list"></span>
</div>
</div>
<div id="message-log"></div>
<form id="publish-form" style="display:none;">
<input type="text" id="recipient-select" placeholder="Recipient..." autocomplete="off">
<input type="text" id="message-input" placeholder="Type a message..." autocomplete="off" autofocus disabled>
<button type="submit">Send</button>
</form>
<script src="index.js"></script>
</body>
</html>