-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.html
44 lines (33 loc) · 1.5 KB
/
client.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Nostr Client</title>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://bitcoincore.tech/apps/bitcoinjs-ui/lib/bitcoinjs-lib.js"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
<script src="https://bundle.run/[email protected]"></script>
</head>
<body>
<h1>Notsr websocket chat room <span> <span id="user_num">0</span>users online: </span></h1>
<div id="chat">
<div id="messages"></div>
<div id="chat-buttons">
<input id="chat-message" autocomplete="off" />
<button id="chat-btn-send"><i class="fa fa-send"></i></button>
<button id="chat-btn-connect"><i class="fa fa-power-off"></i></button>
</div>
</div>
<div id="user_list"></div>
<script src="client.js"></script>
<script>
var uname = prompt('please enter user name', 'user'+(Math.random()+'').split('.')[1]);
var host = 'wss://nostr.[YOUR_DOMAIN.TLD]/relay
var privKey = '[YOUR_PRIVATE_KEY]';
var pubKey = '[YOUR_PUBLIC_KEY]';
</script>
</body>
</html>