forked from yuyaogawa/MultiwalletLite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
519 lines (488 loc) · 27.6 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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MultiWallet v1.00</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Pragma-Directive" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Cache-Directive" content="no-cache">
<meta http-equiv="Expires" content="Wed, 09 Aug 2000 08:21:57 GMT">
<meta name="Revisit-After" content="7 days">
<meta name="Created" content="20170113214947UTC">
<link rel="Shortcut Icon" href="/favicon.ico">
<!-- added by yuya 2017-08-23 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="js/bitcore-lib.min.js"></script>
<script src="js/bitcore-mnemonic.min.js"></script>
<script src="js/jquery.min.js"></script>
<!--script src="js/jquery-ui.min.js"></script-->
<script src="js/jquery.qrcode.min.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/html5-qrcode.js"></script>
<script src="js/jsqrcode-combined.min.js"></script>
<script src="js/buffer.min.js"></script>
<script src="js/bitcoinjs.js"></script>
<script src="js/pusher.min.js"></script>
<script src="js/ethereumjs-wallet-0.6.0.min.js"></script>
<script src="js/crypto-js.js"></script>
<script src="js/util.js"></script>
<script src="js/app.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/3rdparty.css">
</head>
<body>
<!-- Header Banner -->
<!-- Information Modal -->
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<a class="modal-title" id="exampleModalLabel"></a>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
URLはあなたのウォレットを特定するための情報であり、パスワードで暗号化してあります。
また設定からバックアップをすることを強くお薦めします。URLをなくした場合でもバックアップから復元可能です。
秘密鍵はあなた自身のものであり、本サーバへ送信されることはありません。
このウォレットはセキュリティとユーザビリティのバランスを考慮し設計されています。
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Setting Modal -->
<div class="modal fade" id="settingsModal" tabindex="-1" role="dialog" aria-labelledby="settingsModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<a class="modal-title" id="exampleModalLabel"></a>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container col">
<div id="settingsChoices">
<button type="button" class="btn btn-primary" id="choiceCurrency">
通貨設定
</button>
<button type="button" class="btn btn-primary" id="choiceBackup">
バックアップ
</button>
</div>
<div id="settingsCurrency">
<div class="form-group">
<label>表示する通貨</label>
<select id="currencySelect" class="form-control">
</select>
</div>
</div>
<div id="settingsBackup">
<div class="form-group">
<label>Mnemonic words</label>
<textarea rows="3" type="text" class="form-control" id="txtMnemonic4Bk" readonly></textarea>
<label>Password</label>
<input type="text" class="form-control" id="txtPassword4Bk" readonly>
<label>Litecoin Address</label>
<input type="text" class="form-control" id="backupPubkeyLTC" readonly>
<label>Bitcoin Address</label>
<input type="text" class="form-control" id="backupPubkeyBTC" readonly>
<label>Ethereum Address</label>
<input type="text" class="form-control" id="backupPubkeyETH" readonly>
<label>URL</label>
<textarea rows="3" type="text" class="form-control" id="backupUrl" readonly></textarea>
<label>Wallet QRcode</label><br>
<img src="css/Bitcoin1.png" id="qrUrl4Bk">
</div>
<button id="btnPrint" type="button" class="btn btn-primary">Print</button>
<div>
<br>2つの方法で復元可能です。<br><br>
1. 上記で印刷したQRコードを読み込んむと、URLを自動的に作成し、ログイン画面を表示することができます。<br><br>
2. もし別のウォレットへ乗り換えたい場合、12個の英単語を使い復元することができます。Jaxxやelectrumなどの対応ウォレットで復元できます。<br>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<!-- Login Modal -->
<div class="modal fade" id="passwordModal" tabindex="-1" role="dialog" aria-labelledby="passwordModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!--div class="modal-header" id="passwordModalheader"-->
</div>
<div class="modal-body">
<!--img src='./css/' height='30px' border='0' hspace='3px'-->
<label> マルチウォレットLiteへようこそ.</label><br>
Webブラウザベースの軽量マルチウォレットです。ビットコイン、ライトコイン、イサーリアムの送付、受取が可能です。以前にこのサイトを訪れたことがある方は、お気に入りに保存したURLから再度アクセスしてください。<br>
初めての方、もしくは再度ウォレットを作りたい方は、以下のボタンより新規作成してください。
パスワードの設定はセキュリティを高めることができます。
パスワードの設定をしない場合、他のウォレットとの互換性が保持され、新規作成時に取得する12個の単語を使って他のHDウォレットからリカバリーが可能です。<br>
新規作成時にはバックアップをすることを強くお薦めします。ビットコインはあたな自身の銀行です。あなたの銀行であるがうえに、セキュリティも自己管理が必要になります。<br>
パスワードを設定後、URLを必ず保存してください。<br><br>
<button type="button" class="btn btn-primary" id="setupPassword">はい</button>
<!--button type="button" class="btn btn-warning" data-dismiss="modal" onclick="generateAddress6()">いいえ</button-->
<div id="passwordBox">
<hr>
<div class="form-group">
<form style="max-width:350px">
<div class="input-group">
<input type="password" class="form-control" id="txtPassword" placeholder="Password">
<div class="input-group-btn">
<button type="button" class="btn btn-default" data-dismiss="modal" id="loginBtn" onclick="generateAddress5()">作成</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Login2 Modal -->
<div class="modal fade" id="enterPassword" tabindex="-1" role="dialog" aria-labelledby="enterPasswordLabel" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="alert alert-danger collapse" role="alert" id="wrongPassword">
</div>
<div class="form-group">
<form style="max-width:350px">
<div class="input-group">
<input type="password" class="form-control" id="chkPassword" placeholder="Password">
<div class="input-group-btn">
<button type="button" class="btn btn-default" id="loginBtn2" onclick="checkPassword()">ログイン</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Message Box -->
<div class="alert alert-success collapse" role="alert" id="success" style="text-align:center;">
<strong>送付しました</strong>
</div>
<!-- Message Box -->
<div class="alert alert-danger" hidden="hidden" id="error" style="text-align:center;">
<button type="button" class="close" data-hide="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<div id="errorMsg"></div>
</div>
<nav class="banner navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<a class="brand" href="./wallet.html">
<img src="./logo.png" alt="" style="margin-top: -4px; width: 129px;">
</a>
<a class="KKBrand" href="http://yuyaogawa.com/" target="_blank">
by Yuya
</a>
<!--div id="settings"><span class="glyphicon glyphicon-info-sign"></span></div-->
<!--div id="info"><span class="glyphicon glyphicon-info-sign"></span></div-->
<div>
<!-- ********************* Button trigger modal ********************* -->
<button type="text" class="glyphicon glyphicon-info-sign" data-toggle="modal" data-target="#infoModal"></button>
<button type="text" class="glyphicon glyphicon-cog" data-toggle="modal" id="settings1"></button>
<button type="button" class="glyphicon glyphicon-refresh" onclick="updateBalances();"></button>
</div>
</div>
</nav>
<div class="container" style="display: block;">
<!-- Your Bitcoin address -->
<div class="container">
<div id="">
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'ALL')" id="defaultOpenLTC">ALL</button>
<button class="tablinks" onclick="openTab(event, 'LTC')" >LTC</button>
<button class="tablinks" onclick="openTab(event, 'BTC')">BTC</button>
<button class="tablinks" onclick="openTab(event, 'ETH')">ETH</button>
</div>
<div id="ALL" class="tabcontent">
<table class="box2">
<tr>
<td>
<div class="fl20">
Total Value
</div>
</td>
<td>
<div class="fl20" id="currencyALL">
</div>
</td>
</tr>
<tr>
<td>
<div class="fl20" id="balanceLTC2">
LTC
</div>
</td>
<td>
<div class="fl20" id="currencyLTC2">
</div>
</td>
</tr>
<tr>
<td>
<div class="fl20" id="balanceBTC2">
BTC
</div>
</td>
<td>
<div class="fl20" id="currencyBTC2">
</div>
</td>
</tr>
<tr>
<td>
<div class="fl20" id="balanceETH2">
ETH
</div>
</td>
<td>
<div class="fl20" id="currencyETH2">
</div>
</td>
</tr>
</table>
</div>
<div id="LTC" class="tabcontent">
<div id="addressBox">
<div id="addressTxt">Your Litecoin Address</div>
<span id="publicKeyLTC"></span>
</div>
<div id="walletInfo">
<div class="container">
<div class="">
<div id="leftInfo">
<div id="walletName"></div>
<div class="balance">
<span id="balanceLTC">0.00000000</span>
</div>
<div class="currency">
<span id="currencyLTC">USD</span>
</div>
</div>
<div class="qr-link">
<div id="qrcodeLTC"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<table>
<tr>
<button id="openSend" type="button" class="btn btn-info" data-toggle="collapse" data-target="#send">Send</button>
<button id="openReceive" type="button" class="btn btn-info" data-toggle="collapse" data-target="#receive">Receive</button>
</tr>
</table>
</div>
<div id="BTC" class="tabcontent">
<div id="addressBox">
<div id="addressTxt">Your Bitcoin Address</div>
<span id="publicKeyBTC"></span>
</div>
<div id="walletInfo">
<div class="container">
<div class="">
<div id="leftInfo">
<div id="walletName"></div>
<div class="balance">
<span id="balanceBTC">0.00000000</span>
</div>
<div class="currency">
<span id="currencyBTC">USD</span>
</div>
</div>
<div class="qr-link">
<div id="qrcodeBTC"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<table>
<tr>
<button id="openSend" type="button" class="btn btn-info" data-toggle="collapse" data-target="#send">Send</button>
<button id="openReceive" type="button" class="btn btn-info" data-toggle="collapse" data-target="#receive">Receive</button>
</tr>
</table>
</div>
<div id="ETH" class="tabcontent">
<div id="addressBox">
<div id="addressTxt">Your Ethereum Address</div>
<span id="publicKeyETH"></span>
</div>
<div id="walletInfo">
<div class="container">
<div class="">
<div id="leftInfo">
<div id="walletName"></div>
<div class="balance">
<span id="balanceETH">0.00000000</span>
</div>
<div class="currency">
<span id="currencyETH">USD</span>
</div>
</div>
<div class="qr-link">
<div id="qrcodeETH"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<table>
<tr>
<button id="openSend" type="button" class="btn btn-info" data-toggle="collapse" data-target="#send">Send</button>
<button id="openReceive" type="button" class="btn btn-info" data-toggle="collapse" data-target="#receive">Receive</button>
</tr>
</table>
</div>
<div id="send" class="collapse">
<form>
<div class="input-group">
<div class="input-group-btn">
<button style="width:40px;" class="btn btn-default" type="button" onclick="scanQRcode();" data-toggle="modal" data-target="#ScannerModal">
<i class="glyphicon glyphicon-camera"></i>
</button>
</div>
<input type="text" class="form-control" id="sendAddr" placeholder="Receiving Address">
</div>
<div class="input-group">
<span class="input-group-addon" type="button" id="changeType" style="width:40px;cursor:pointer;"><span class="addonBox">Ł</span></span>
<input type="text" class="form-control" id="txtAmount" placeholder="Amount"><span id="fiatPrice"></span>
</div>
<div class="input-group">
<span class="input-group-addon" style="width:40px;padding:0px 8px;cursor:help;">Fee</span>
<div class="form-group">
<select id="feeSelect" class="form-control" style="max-width:;"></select>
</div>
</div>
<div class="input-group">
<div class="input-group-btn">
<button class="btn btn-primary" type="button" data-toggle="modal" data-target="#sendModal___" style="width:100%;" id="sendBtn" disabled="disabled">
CONFIRM
</button>
</div>
</div>
</form>
</div>
<div id="receive" class="collapse">
<form>
<div class="input-group">
<span class="input-group-addon" id="changeType2" style="width:40px;cursor:pointer;""><span class="addonBox">Ł</span></span>
<input type="text" class="form-control" id="Recamount" placeholder="Amount:"><span id="fiatPrice2"></span>
<div class="input-group-btn">
<button class="btn btn-default" type="button" onclick="generateQRcode();" data-toggle="modal" data-target="#ReceivingQRcode">
<i class="glyphicon glyphicon-piggy-bank"></i>
</button>
</div>
</div>
</form>
</div>
<div class="container">
<!-- Your Litecoin Transactions -->
<div id="historyLTC"></div>
<div id="nohistoryLTC">
<hr>No transaction history<hr>
</div>
<!-- Your Bitcoin Transactions -->
<div id="historyBTC"></div>
<div id="nohistoryBTC">
<hr>No transaction history<hr>
</div>
<!-- Your Ethereum Transactions -->
<div id="historyETH"></div>
<div id="nohistoryETH">
<hr>No transaction history<hr>
</div>
</div>
</div>
</div>
</div>
<!-- Modal for ScanQRcode -->
<div class="modal fade" id="ScannerModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h7 class="modal-title" id="exampleModalLabel">ScanQRcode</h7>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="reader" style="width:300px;height:250px">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" onclick="stopCamera();">Stop</button>
</div>
</div>
</div>
</div>
<!-- Modal for ReceivingQRcode -->
<div class="modal fade" id="ReceivingQRcode" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h7 class="modal-title" id="exampleModalLabel">ReceivingQRcode</h7>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>Requesting <span id="generateAmount"></span><span id="fiatPrice3"></span> to:</p>
<p border='0' height='60px' vspace='10px' id="generateAddress"></p>
<img src="css/Bitcoin1.png" id="receiveQR">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" ">Stop</button>
</div>
</div>
</div>
</div>
<!-- Modal for Confirmation -->
<div class="modal fade" id="sendModal" tabindex="-1" role="dialog" aria-labelledby="sendModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body" position="center">
<!--button type="button" class="btn btn-primary" data-dismiss="modal" onclick="sendBitcoin()">Confirm</button-->
<button type="button" class="btn btn-primary" data-dismiss="modal" id="confrim">Confirm</button>
<button type="button" class="btn btn-warning" data-dismiss="modal">Cancel</button>
<!--p id="fee"></p-->
<hr>
<p style="font-size: 7;color:gray;">This transaction includes approximately <span id="miningfee"></span> fee <span id="fiatfeePrice"></span></p>
</div>
</div>
</div>
</div>
<!-- Loading modal -->
<div id="loader-bg">
<div id="loader">
<img src="css/gif-load.gif" width="80" height="80" alt="Sending transaction..." />
<p>Processing...</p>
</div>
</div>
<audio id="noise"></audio>
<script type="text/javascript">
// All bitcoin functions are in app.js
// You can add codes here except bitcoin functions.
// Get the element with id="defaultOpen" and click on it
document.getElementById("defaultOpenLTC").click();
</script>
</body>
</html>