js-waku-examples/examples/noise-js/index.html

51 lines
1.6 KiB
HTML
Raw Normal View History

2023-01-05 23:56:56 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
2023-01-12 21:58:17 +00:00
<title>Waku Noise</title>
2023-01-05 23:58:38 +00:00
<link rel="apple-touch-icon" href="./favicon.png" />
<link rel="manifest" href="./manifest.json" />
<link rel="icon" href="./favicon.ico" />
2023-01-05 23:56:56 +00:00
</head>
<body>
2023-01-11 22:32:58 +00:00
<p><b>Waku Node Status:</b> <span id="waku-status">connecting...</span></p>
2023-01-05 23:56:56 +00:00
<p id="handshake-span">
<b>Handshake Status:</b> <span id="handshake-status">-</span>
</p>
<div id="qr-url-container">
<p>
<b>URL for handshake:</b>
<input
type="text"
id="qr-url"
style="display: inline-block; width: 250px"
readonly
/>
</p>
<button id="copy-url" style="width: 100px">Copy URL</button>
<button id="open-tab" style="width: 100px">Open in new</button>
</div>
2023-01-05 23:56:56 +00:00
<canvas id="qr-canvas"></canvas>
<!-- <a href="#" id="qr-url" style="display: none" target="_blank"
2023-01-05 23:56:56 +00:00
>Open QR code link in new window instead of scanning it.</a
> -->
2023-01-05 23:56:56 +00:00
<div id="chat-area" style="display: none">
<label for="nick-input">Your nickname</label>
<input id="nick-input" placeholder="Choose a nickname" type="text" />
<label for="text-input">Message text</label>
<input id="text-input" placeholder="Type your message here" type="text" />
2023-01-11 22:32:58 +00:00
<button id="send-btn" type="button" disabled>Send message</button>
2023-01-05 23:56:56 +00:00
<span id="sending-status"></span>
<h4 class="mu1">Messages</h4>
<div id="messages"></div>
</div>
<script src="./index.js"></script>
</body>
</html>