-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>libp2p-browser-to-browser-playground</title>
<style>
label,
button {
display: block;
font-weight: bold;
margin: 5px 0;
}
div {
margin-bottom: 20px;
}
#send-section {
display: none;
}
input[type="text"] {
width: 800px;
}
</style>
</head>
<body>
<h1>libp2p-browser-to-browser-playground</h1>
<ul>
<li>
GitHub: <a href="https://github.com/hexcamp/libp2p-browser-to-browser-playground">hexcamp/libp2p-browser-to-browser-playground</a>
</li>
</ul>
<div id="app">
<div>
<button id="connect_relay">Connect Relay</button>
<label for="peer">Remote MultiAddress:</label>
<input type="text" id="peer" />
<button id="connect">Connect</button>
</div>
<div id="publish-section">
<label for="publish_text">Publish Text:</label>
<input type="text" id="publish_text" value="Hello from Helia" />
<button id="publish">Publish</button>
<div id="publish_cid"></div>
</div>
<div id="retrieve-section">
<label for="retrieve_cid">Retrieve CID:</label>
<input type="text" id="retrieve_cid" value="" />
<button id="retrieve">Retrieve</button>
<div id="retrieve_result"></div>
</div>
<div id="send-section">
<label for="message">Message:</label>
<input type="text" id="message" value="hello" />
<button id="send">Send</button>
</div>
<div id="connectionsWrapper">
<h3>Active Connections: </h3>
<ul id="connections"></ul>
</div>
<div id="listeningAddressesWrapper">
<h3>Listening addresses: </h3>
<ul id="multiaddrs"></ul>
</div>
<div id="output"></div>
</div>
<script type="module" src="./index.js"></script>
</body>
</html>