blob: 331b83857a6120ddedd30fc0944607096b7fb955 (
plain) (
blame)
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
|
<!doctype html>
<html lang="en">
<head><meta charset="utf-8"><title>Coinos</title><link rel="stylesheet" href="ui.css"></head>
<body>
<section id="setup" hidden>
<div class="card">
<h1>Set up your key</h1>
<p class="muted" style="margin-top:6px">Paste your nsec, or the twelve words of a Coinos wallet. It stays in this browser and is never shown to a site.</p>
<textarea id="key-input" spellcheck="false" autocomplete="off" aria-label="nsec or twelve words"></textarea>
<p class="err" id="key-err"></p>
<button id="key-save" class="primary" style="width:100%">Save key</button>
</div>
</section>
<section id="main" hidden>
<div class="head">
<img id="pic" src="icon-192.png" alt="">
<div class="who">
<div id="name" style="font-weight:650"></div>
<div class="mono muted" id="npub"></div>
</div>
<button id="copy">Copy</button>
</div>
<div class="card" id="wallet-on" hidden>
<h2>Wallet</h2>
<div class="balance" id="balance">…</div>
<p class="err" id="wallet-err"></p>
<ul id="txs"></ul>
<p class="small" style="margin:10px 0 0"><button id="wallet-remove" class="link">Disconnect wallet</button></p>
</div>
<div class="card" id="wallet-off" hidden>
<h2>Wallet</h2>
<p class="muted">To pay from sites, open Coinos, go to Settings and add a connection under Nostr Wallet Connect, then paste its connection string here.</p>
<textarea id="nwc-input" spellcheck="false" autocomplete="off" aria-label="Connection string" placeholder="nostr+walletconnect://…"></textarea>
<p class="err" id="nwc-err"></p>
<button id="nwc-save" class="primary" style="width:100%">Connect wallet</button>
</div>
<div class="card">
<h2>Sites</h2>
<p class="muted small" id="no-sites">No site has asked yet. The first time one does, you choose once.</p>
<ul id="sites"></ul>
</div>
<p class="small" style="text-align:center"><button id="key-remove" class="link">Remove key from this browser</button></p>
</section>
<script type="module" src="popup.js"></script>
</body>
</html>
|