mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-02 12:53:08 +00:00
43 lines
1.3 KiB
HTML
43 lines
1.3 KiB
HTML
<!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 node example</title>
|
|
<link rel="apple-touch-icon" href="./favicon.png" />
|
|
<link rel="manifest" href="./manifest.json" />
|
|
<link rel="icon" href="./favicon.ico" />
|
|
</head>
|
|
|
|
<body>
|
|
<div><h2>Status</h2></div>
|
|
<div id="status"></div>
|
|
|
|
<div><h2>Local Peer Id</h2></div>
|
|
<div id="peer-id"></div>
|
|
|
|
<div><h2>Remote Peer Id</h2></div>
|
|
<div id="remote-peer-id"></div>
|
|
|
|
<label for="remote-multiaddr">Remote peer's multiaddr</label>
|
|
<input id="remote-multiaddr" type="text" value="" />
|
|
<button disabled id="dial" type="button">Dial</button>
|
|
<br />
|
|
<button disabled id="subscribe" type="button">Subscribe with Filter</button>
|
|
<button disabled id="unsubscribe" type="button">
|
|
Unsubscribe with Filter
|
|
</button>
|
|
<br />
|
|
<label for="textInput">Message text</label>
|
|
<input id="textInput" placeholder="Type your message here" type="text" />
|
|
<button disabled id="sendButton" type="button">
|
|
Send message using Light Push
|
|
</button>
|
|
<br />
|
|
<div id="messages"></div>
|
|
|
|
<script src="https://unpkg.com/@multiformats/multiaddr@12.1.1/dist/index.min.js"></script>
|
|
<script src="./index.js"></script>
|
|
</body>
|
|
</html>
|