2022-12-07 22:46:22 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang='en'>
|
|
|
|
<head>
|
|
|
|
<meta charset='UTF-8'/>
|
|
|
|
<meta content='width=device-width, initial-scale=1.0' name='viewport'/>
|
|
|
|
<title>JS-Waku light chat</title>
|
2022-12-09 00:06:01 +00:00
|
|
|
<link rel="stylesheet" href="./style.css">
|
2022-12-07 22:46:22 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-12-08 23:21:08 +00:00
|
|
|
<div class="content">
|
|
|
|
<div class="header">
|
|
|
|
<h3>Status: <span id='status'></span></h3>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<details>
|
|
|
|
<summary>Peer's information</summary>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<h4>Content topic</h4>
|
|
|
|
<p id='contentTopic'></p>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<h4>Local Peer Id</h4>
|
|
|
|
<p id='localPeerId'></p>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<h4>Remote Peer Id</h4>
|
|
|
|
<p id='remotePeerId'></p>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<h4>Remote peer's multiaddr</h4>
|
|
|
|
<p id='remoteMultiAddr'></p>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="messages"></div>
|
2022-12-07 22:46:22 +00:00
|
|
|
|
2022-12-08 23:21:08 +00:00
|
|
|
<div class="footer">
|
|
|
|
<div class="inputArea">
|
|
|
|
<input type="text" id="nickText" placeholder="Nickname" />
|
|
|
|
<textarea id="messageText" placeholder="Message"></textarea>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="controls">
|
|
|
|
<button id="send">Send</button>
|
|
|
|
<button id="exit">Exit chat</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-12-07 22:46:22 +00:00
|
|
|
</div>
|
|
|
|
|
2022-12-08 20:33:06 +00:00
|
|
|
<script src="//cdn.jsdelivr.net/npm/protobufjs@7.X.X/dist/protobuf.min.js"></script>
|
2022-12-07 22:46:22 +00:00
|
|
|
<script type='module' src="./index.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|