-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
240 lines (195 loc) · 7.05 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Jade companion app for Liquid running in the browser">
<title>Home</title>
<link rel="stylesheet" href="/pico.min.css">
<link rel="icon" type="image/x-icon"
href="https://d2y5h3osumboay.cloudfront.net/8bjx2lpmkubsx5vodqpcdt7tqm20?=4064512645361149302">
</head>
<body>
<!-- Main page -->
<header class="container">
<hgroup>
<h1>Liquid Web Wallet</h1>
<p>Jade companion app in the browser - DEMO</p>
</hgroup>
<my-nav></my-nav>
</header>
<main id="app" class="container">
<progress id="loading-wasm"></progress>
<p><input type="button" id="connect-jade-button" disabled value="Connect to Jade"></p>
<div id="connect-jade-message"></div>
<br><br>
<details>
<summary role="button" class="secondary">Watch-only</summary>
<textarea placeholder="CT Descriptor" id="descriptor-textarea"></textarea>
<p>
<button id="watch-only-button" disabled>Use watch-only descriptor</button>
<button id="example-descriptor-link" class="secondary">Try example</button>
</p>
<div id="descriptor-message"></div>
</details>
<br><br>
</main>
<br><br>
<my-footer>
<footer class="container">
</footer>
</my-footer>
<br><br>
<!-- Pages Templates -->
<template id="wallets-page-template">
<h2>Wallets</h2>
<wallet-selector>
<div>
<select>
<option>Select wallet</option>
<option value="Wpkh">Wpkh (singlesig)</option>
<option value="ShWpkh">ShWpkh (singlesig)</option>
</select>
</div>
<progress hidden></progress>
<br>
<a href="#">New multisig wallet on Jade</a>
</wallet-selector>
</template>
<template id="balance-page-template">
<wallet-balance>
<section>
<hgroup>
<h2>Balance</h2>
<p></p>
</hgroup>
<div>
<article aria-busy="true"></article>
</div>
<button hidden>Request testnet coins</button>
<br><br>
<div class="message"></div>
</section>
</wallet-balance>
</template>
<template id="transactions-page-template">
<wallet-transactions>
<section>
<hgroup>
<h2>Transactions</h2>
<p></p>
</hgroup>
<div>
<article aria-busy="true"></article>
</div>
</section>
</wallet-transactions>
</template>
<template id="create-page-template">
<section>
<h2>Create transaction</h2>
<create-transaction>
<article aria-busy="true"></article>
<div hidden>
<fieldset role="group">
<input type="text" placeholder="Address">
<input type="number" placeholder="Units">
<select></select>
<!-- <input type="submit" value="+" id="create-transaction-button-add"
onclick="alert('multiple recipients not yet implemented')"> -->
</fieldset>
<div class="message"></div>
<button class="create">Create</button>
</div>
</create-transaction>
</section>
</template>
<template id="sign-page-template">
<section>
<h2>Sign</h2>
<sign-transaction>
<textarea placeholder="PSET"></textarea>
<button class="analyze">Analyze</button>
<button class="sign">Sign</button>
<button class="broadcast">Broadcast</button>
<br><br>
<div class="message"></div>
<div class="analyze"></div>
<br><br>
<h2>Combine</h2>
<textarea placeholder="PSET"></textarea>
<p>
<button class="combine">Combine</button>
</p>
</sign-transaction>
</section>
</template>
<template id="receive-page-template">
<section>
<h2>Receive</h2>
<ask-address>
<p><button>Show on Jade</button></p>
<div class="message">
</div>
</ask-address>
<receive-address>
<p> </p>
</receive-address>
</section>
</template>
<template id="wallet-page-template">
<hgroup>
<h2>Wallet</h2>
<p>descriptor</p>
</hgroup>
<wallet-descriptor>
<textarea readonly></textarea>
</wallet-descriptor>
</template>
<template id="register-multisig-page-template">
<hgroup>
<h2>New multisig wallet</h2>
</hgroup>
<br><br>
<register-wallet>
<section>
<hgroup>
<h3>Create</h3>
<p>Multisig descriptor</p>
</hgroup>
<input type="number" placeholder="Threshold" min="0">
<div>
<template>
<fieldset role="group">
<input readonly class="participant">
<input type="submit" value="Remove">
</fieldset>
</template>
</div>
<fieldset role="group">
<input type="text" placeholder="Keyorigin Xpub">
<input type="submit" value="Add">
</fieldset>
<button>Create</button>
<button class="secondary">Add connected Jade</button>
<br><br>
<div class="message"></div>
</section>
<br><br>
<section>
<hgroup>
<h3>Register</h3>
<p>multisig on Jade</p>
</hgroup>
<input type="text" placeholder="Wallet name">
<textarea placeholder="Descriptor"></textarea>
<button>Register</button>
<br><br>
<div class="message"></div>
</section>
</register-wallet>
</template>
<script type="module" src="./bootstrap.js"></script>
</body>
</html>