<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Trading Chat</title>
<link rel="stylesheet" href="chat.css">
<style>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Trading Chat</title>
<link rel="stylesheet" href="chat.css">
</head>
<body>
<div class="chat-container">
<h2>📣 Live Trading Chat</h2>
<div id="chat-box"></div>
<form id="chat-form">
<input type="text" id="username" placeholder="Your name" required />
<input type="text" id="message" placeholder="Type a message..." required />
<button type="submit">Send</button>
</form>
</div>
<script src="chat.js"></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Trading Chat</title>
<link rel="stylesheet" href="chat.css">
</head>
<body>
<div class="chat-container">
<h2>📣 Live Trading Chat</h2>
<div id="chat-box"></div>
<form id="chat-form">
<input type="text" id="username" placeholder="Your name" required />
<input type="text" id="message" placeholder="Type a message..." required />
<button type="submit">Send</button>
</form>
</div>
<script src="chat.js"></script>
</body>
</html>
body {
font-family: Arial, sans-serif;
background: #f1f1f1;
display: flex;
justify-content: center;
padding-top: 50px;
}
.chat-container {
background: #fff;
width: 400px;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#chat-box {
height: 300px;
border: 1px solid #ccc;
padding: 10px;
overflow-y: scroll;
margin-bottom: 15px;
background: #fafafa;
}
#chat-box p {
margin: 5px 0;
}
form {
display: flex;
gap: 10px;
}
input[type="text"] {
flex: 1;
padding: 8px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
padding: 8px 12px;
border: none;
background-color: #007bff;
color: white;
border-radius: 5px;
cursor: pointer;
}
</style>
</head>
<body>
<div class="chat-container">
<h2>📣 Live Trading Chat</h2>
<div id="chat-box"></div>
<form id="chat-form">
<input type="text" id="username" placeholder="Your name" required />
<input type="text" id="message" placeholder="Type a message..." required />
<button type="submit">Send</button>
</form>
</div>
<script src="chat.js"></script>
</body>
</html>