Files
BridgeSwarm/examples/chat/index.html
T
2026-02-21 02:52:00 -05:00

28 lines
1019 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BridgeSwarm Chat</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>BridgeSwarm Chat</h1>
<p class="status" id="status">Load the extension, then join a topic. Open this page in another tab or device to chat.</p>
<div class="row">
<input type="text" id="topic" placeholder="Topic (e.g. my-chat-room)" value="bridge-swarm-demo">
<button class="primary" id="btnJoin">Join</button>
<button class="danger" id="btnLeave" disabled>Leave</button>
</div>
<div class="peers" id="peers">Peers: 0</div>
<div class="peers" id="publicKey">Your public key: (join to generate)</div>
<div class="row">
<input type="text" id="message" placeholder="Type a message..." disabled>
<button class="primary" id="btnSend" disabled>Send</button>
</div>
<div class="log" id="log"></div>
<script src="app.js"></script>
</body>
</html>