-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (65 loc) · 2.96 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
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Waku Chat</title>
<link rel="apple-touch-icon" href="./favicon.png" />
<link rel="manifest" href="./manifest.json" />
<link rel="icon" href="./favicon.ico" />
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Bootstrap CSS -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="container mt-4">
<div class="mb-3">
<h2>Status</h2>
<div id="status"></div>
</div>
<div class="mb-3">
<h2>Local Peer Id</h2>
<div id="peer-id"></div>
</div>
<div class="mb-3">
<h2>Select Peer</h2>
<div class="form-group">
<button id="getPeersButton" class="btn btn-sm btn-primary" type="button">Refresh</button>
<select id="peer-select" class="form-control form-control-sm">
<option value=""></option>
</select>
</div>
</div>
<div class="mb-3">
<label for="remote-multiaddr">Remote multiaddr</label>
<input id="remote-multiaddr" class="form-control form-control-sm" type="text" placeholder="Remote multiaddr">
<button disabled id="dial" class="btn btn-sm btn-secondary mt-2" type="button">Dial</button>
</div>
<div class="mb-3">
<h2>Remote Peers</h2>
<div id="remote-peer-id"></div>
</div>
<div class="mb-3">
<label for="sender">Your Username</label>
<input id="sender" class="form-control form-control-sm" type="text" placeholder="Your Username">
<button disabled id="subscribe" class="btn btn-sm btn-primary mt-2" type="button">Subscribe</button>
<button disabled id="unsubscribe" class="btn btn-sm btn-danger mt-2" type="button">Unsubscribe</button>
</div>
<div class="mb-3">
<label for="receiver">Receiver Username</label>
<input id="receiver" class="form-control form-control-sm" type="text" placeholder="Receiver's Username">
<input id="textInput" class="form-control form-control-sm mt-2" type="text" placeholder="Message">
<button disabled id="sendButton" class="btn btn-sm btn-success mt-2" type="button">Send</button>
<div id="messages" class="mt-3"></div>
</div>
<div class="mb-3">
<h2>Store</h2>
<button disabled id="queryStoreButton" class="btn btn-sm btn-info" type="button">Retrieve</button>
</div>
<!-- Bootstrap JS and Popper.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/@multiformats/multiaddr@12.1.1/dist/index.min.js"></script>
<script type="module" src="./main.js"></script>
</body>
</html>