-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
407 lines (400 loc) · 21.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
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
<!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, shrink-to-fit=no">
<meta name="description" content=edollar local gui rpc wallet"">
<meta name="author" content="https://github.com/traianotelea/edollar_local_gui_rpc_wallet/">
<title>EDOLLAR Wallet</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" >
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="webwallet_resources/css/wallet.css" rel="stylesheet">
</head>
<body class="" id="page-top">
<div class="container">
<div class="row row-fluid justify-content-center text-center">
<div class="col-12">
<div class="logo pt-2">
<img src="webwallet_resources/edollar_logo.png" class="rounded mx-auto d-block" alt="edollar logo" width="150" height="150">
</div>
</div>
</div>
</div>
<div class="container">
<div class="row row-fluid justify-content-center text-center">
<div class="col-12 text-center pt-2">
<div class="alert alert-success" role="alert">
<strong>Wallet Address : </strong><span id="top-wallet-address">not connected</span>
</div>
</div>
</div>
<div class="row row-fluid justify-content-center text-center">
<div class="col-4 text-center py-1">
<div class="alert alert-success" role="alert">
<strong>Total balance : </strong>
<span id="top-wallet-total-balance">not connected</span>
</div>
</div>
<div class="col-4 text-center py-1">
<div class="alert alert-success" role="alert">
<strong>Blockchain Height : </strong>
<span id="top-wallet-height">not connected</span>
</div>
</div>
<div class="col-4 text-center py-1">
<div class="alert alert-success" role="alert">
<span class="glyphicon" id="refresh_balance"><i class="fa fa-refresh " style="font-size:15px"></i></span> | <strong>Unlocked balance : </strong><span id="top-wallet-available-balance">not connected</span>
</div>
</div>
</div>
</div>
<div class="container">
<!-- Nav tabs -->
<ul class="nav nav-tabs nav-justified" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#create-wallet">Create Wallet</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#open-wallet">Open Wallet</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#address-book">Address book</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#transfers">Payments history</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#send-cash">SEND</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#receive">RECEIVE</a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- create wallet tab-->
<div id="create-wallet" class="container tab-pane active">
<div class="row pt-5 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="min-width:150px;">Wallet Name</span>
<input type="text" class="form-control" id="create-wallet-name" aria-describedby="basic-addon3" >
</div>
</div>
</div>
<!-- row!-->
<div class="row pt-3 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon31" style="min-width:150px;">Wallet Password</span>
<input type="password" class="form-control" id="create-wallet-password" aria-describedby="basic-addon31" style="min-width:150px;">
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-6">
<button type="button" class="btn btn-outline-success" id="create-wallet-button" data-loading-text="<i class='fa fa-spinner fa-spin '></i> WAIT!">Create Wallet</button>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-6">
<div class=" alert alert-success create-wallet-status" role="alert" style="display:none;">
<strong></strong> <button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-12 text-center">
<div class=" alert alert-info" role="alert" >
If you cannot remember the password, use the cli-wallet to rebuild the wallet from the mnemonic phrase !
</div>
</div>
</div>
<!-- common disclaimers -->
<div class="row mt-1">
<div class="col-12 text-center">
<div class=" alert alert-info " role="alert" >
If you want to use a wallet created with cli-wallet, copy all 3 wallet files to "wallets" folder (eg: mywallet, mywallet.address.txt, mywallet.keys).
</div>
</div>
</div>
<!-- common disclaimers -->
</div>
<!-- open wallet tab-->
<div id="open-wallet" class="container tab-pane fade">
<div class="row pt-5 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon3" style="min-width:150px;">Wallet Name</span>
<input type="text" class="form-control" id="open-wallet-name" aria-describedby="basic-addon3" >
</div>
</div>
</div>
<!-- row!-->
<div class="row pt-3 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon31" style="min-width:150px;">Wallet Password</span>
<input type="password" class="form-control" id="open-wallet-password" aria-describedby="basic-addon31" style="min-width:150px;">
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-6">
<button type="button" class="btn btn-outline-success" id="open-wallet-button">Open Wallet</button>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-6">
<div class=" alert alert-success open-wallet-status" role="alert" style="display:none;">
<strong></strong>
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center wallet-info-holder" style="display:none;">
<div class="col-12">
<button type="button" class="btn btn-outline-success" id="info-seed-wallet-button">Display Wallet Mnemonic Key</button>
</div>
<div class="col-12 pt-3">
<button type="button" class="btn btn-outline-success" id="info-view-wallet-button">Display Wallet View Key</button>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-12">
<div class=" alert alert-success open-wallet-status-info" role="alert" style="display:none;">
<strong></strong>
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row mt-1">
<div class="col-12 text-center">
<div class=" alert alert-info " role="alert" >
Be sure to WRITE your mnemonic phrase on paper ! Your wallet cannot be restored whitout it !
</div>
</div>
</div>
</div>
<!-- open wallet tab-->
<!-- address book tab-->
<div id="address-book" class="container tab-pane fade">
<br>
<div class="row pt-3 justify-content-center text-center" >
<div class="col-8 pt-3">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1">Recipient Address</span>
<input type="text" class="form-control" aria-describedby="basic-addon1" id="entry_address">
</div>
</div>
<div class="col-8 pt-3">
<div class="input-group">
<span class="input-group-addon" id="basic-addon12">Name</span>
<input type="text" class="form-control" aria-describedby="basic-addon12" id="entry_description">
</div>
</div>
<div class="col-8 pt-3 justify-content-center text-center">
<button type="button" class="btn btn-outline-success mx-2" id="add-entry-button">ADD</button>
<button type="button" class="btn btn-outline-success mx-2" id="refresh-book-button">Refresh</button>
<button type="button" class="btn btn-outline-success mx-2" id="close-wallet-button" data-toggle="modal" data-target="#confirm-close-wallet">Close wallet</button>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-12">
<div class="alert alert-warning add-entry-wallet-status-info" id="add-entry-wallet-status-info" role="alert" style="display:none;">
<strong></strong>
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row mt-5">
<div class="col-12 text-center mt-1">
<div class=" alert alert-warning " id="no-address-book-alert" role="alert" style="display:none;">
NO ENTRIES!
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center" >
<table class="stripe" id="address-book-container" width="100%"></table>
</div>
<!-- common disclaimers -->
<div class="row mt-1">
<div class="col-12 text-center">
<div class=" alert alert-info " role="alert" >
Use "Close wallet" to safe close the wallet and the daemons.
</div>
</div>
</div>
<!-- common disclaimers -->
</div>
<!-- address book tab-->
<!-- transfers tab-->
<div id="transfers" class="container tab-pane fade">
<br>
<div class="row pt-3 justify-content-center text-center" >
<div class="col-4 pt-3">
<button type="button" class="btn btn-outline-warning" id="refresh-transfers-button-all">ALL</button>
</div>
<div class="col-4 pt-3">
<button type="button" class="btn btn-outline-warning" id="refresh-transfers-button-available">AVAILABLE</button>
</div>
<div class="col-4 pt-3">
<button type="button" class="btn btn-outline-warning" id="refresh-transfers-button-unavailable">UNAVAILABLE</button>
</div>
</div>
<div class="row mt-5">
<div class="col-12 text-center mt-1">
<div class=" alert alert-warning " id="no-payments-alert" role="alert" style="display:none;">
NO PAYMENTS!
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center" >
<table class="stripe" id="transfers-container" width="100%"></table>
</div>
<!-- common disclaimers -->
<div class="row mt-1">
<div class="col-12 text-center">
<div class=" alert alert-info " role="alert" >
You can get more info about a transaction by searching it's hash in the <a href="https://explorer.edollar.cash/" target="new">block explorer</a> !
</div>
</div>
</div>
<!-- common disclaimers -->
</div>
<!-- transfers tab-->
<!-- send tab-->
<div id="send-cash" class="container tab-pane fade">
<div class="row pt-5 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon4" style="min-width:150px;">TO Address</span>
<input type="text" class="form-control" id="send-to-address" aria-describedby="basic-addon3" >
</div>
</div>
</div>
<!-- row!-->
<div class="row pt-3 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon41" style="min-width:150px;">Amount</span>
<input type="number" class="form-control" id="send-to-amount" aria-describedby="basic-addon41" style="min-width:150px;">
</div>
</div>
</div>
<div class="row pt-3 justify-content-center">
<div class="col-6">
<div class="input-group">
<span class="input-group-addon" id="basic-addon41" style="min-width:150px;">Payment ID</span>
<input type="password" placeholder="(optional)" class="form-control" id="send-to-payment-id" aria-describedby="basic-addon41" style="min-width:150px;">
</div>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-6">
<button type="button" class="btn btn-outline-success" id="send-cash-button">SEND</button>
</div>
</div>
<div class="row pt-3 justify-content-center text-center">
<div class="col-10">
<div class=" alert alert-success send-wallet-status" id="send-wallet-status" role="alert" style="display:none;">
<strong></strong>
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<!-- common disclaimers -->
<div class="row mt-1">
<div class="col-12 text-center">
<div class=" alert alert-info " role="alert" >
You need the tx hash and the tx key if you need to prove the transfer !
</div>
</div>
</div>
<!-- common disclaimers -->
</div>
<!-- send tab-->
<!-- receive tab-->
<div id="receive" class="container tab-pane fade">
<br>
<div class="row pt-3 justify-content-center text-center" >
<div class="col-12 py-3">
<div id="qrcode"></div>
</div>
</div>
<!-- common disclaimers -->
<!-- common disclaimers -->
</div>
<!-- receive tab-->
</div>
<!-- tab content -->
<div class="row mt-1">
<div class="col-12 text-center mt-1">
<div class=" alert alert-warning " role="alert" >
WARNING : This session of Chrome has some security features DISABLED! Do not use it to access other websites !
</div>
</div>
</div>
<div class="row mt-1">
<div class="col-12 text-center mt-1">
<div class=" alert alert-success " role="alert" >
<p>For coffee only!</p>
<p><strong>EDL</strong> : edrZAK8CpAAS752ceWFTNDivmH6KH8dr8PpKDa94wyVbLqatAPeLcrCH2hG5nbk7KG3iMaSTvpKqr9euAfjgS2Vc1bT2PJUjm</p>
<p><strong>XMR</strong> : 9ypm3SDG4xHHNZmGPLSrQ69FQb5toMGfUNbbvoxxGxAx7GYJJiL2Ase8BkscaFE3Ap8etcHcCL7ANSmnHaiFQn8r3TvmhrV</p>
<p><strong>AEON</strong> : WmsdZxxcmvLQBPyD254TJEQbMb7kJEfeGHuVogzZsiyAQdhL6eegTMVJDA27NFfimDKx2ourwJWUS3X3CdTDsfoG2GkC169mD</p>
</div>
</div>
</div>
</div>
<!-- main container -->
<!-- Modal -->
<div class="modal fade" id="confirm-close-wallet" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel"> </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" style="text-align:center">
<p style=" margin: 0 auto; text-align: center;">THE RPC WALLET WILL AUTO CLOSE !<br>
After pressing close, wait for the daemons to receive the shutdown command.<br>
This window will close after that.<br>
You can restart the wallet by using start_wallet.bat script.
</p>
</div>
<div class="modal-footer" style="justify-content:center"">
<button type="button" class="btn btn-secondary" data-dismiss="modal">LATER</button>
<button type="button" class="btn btn-outline-danger" id="modal-close-wallet">CLOSE</button>
</div>
</div>
</div>
</div>
<script src="webwallet_resources/vendor/jquery/jquery.min.js"></script>
<script src="webwallet_resources/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="webwallet_resources/vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="webwallet_resources/js/webwallet.js"></script>
<script src="webwallet_resources/vendor/datatables/jquery.dataTables.js"></script>
<script src="webwallet_resources/vendor/datatables/dataTables.bootstrap4.js"></script>
<script type="text/javascript" src="webwallet_resources/js/qrcode.js"></script>
</body>
</html>