-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.html
233 lines (201 loc) · 8.16 KB
/
main.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
<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
<title>Opendime</title>
<link rel="stylesheet" type="text/css" href="libs/semantic.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="libs/jquery-3.1.1.min.js"></script>
<script src="libs/semantic.min.js"></script>
<script src="libs/qrcode.min.js"></script>
<script src="libs/pkijs/asn1.js"></script>
<script src="libs/pkijs/common.js"></script>
<script src="libs/pkijs/x509_schema.js"></script>
<script src="libs/pkijs/x509_simpl.js"></script>
<script src="libs/elliptic.js"></script>
<script src="libs/btc.js"></script>
<script src="chain.js"></script>
</head><body>
<div class="ui basic modal" id="perms-modal">
<div class="header">USB Permission Required</div>
<div class="content">
<p>
We need your permission to see Opendimes connected
to this computer's USB ports.
</p>
</div>
<div class="actions">
<button class="ui approve button">OK</button>
</div>
</div>
<div class="ui basic modal" id="nada-modal">
<div class="header">
<i class="big usb icon"></i>
<i class="right arrow icon"></i>
<i class="huge laptop icon"></i>
</div>
<div class="content">
<p>
Please insert Opendime into any USB socket.
</p>
</div>
</div>
<div class="ui basic modal" id="picking-modal">
<div class="header">Make Bitcoin Address</div>
<div class="content">
<p>
Picking lots of random numbers now...
</p>
<div class="ui progress success">
<div class="bar">
<div class="progress"></div>
</div>
</div>
</div>
</div>
<div class="ui row" style="margin-bottom:10px;">
<div class="ui two column stackable grid">
<div class="seven wide column">
<img src="img/opendime-logo-nav.png" style="float: left">
</div>
<div class="nine wide column" style="text-align:right;">
<a class="ui negative basic button" style="margin-top:10px; box-shadow: 0 0 0 0 #fff inset!important"
href="https://opendime.com/"><i class="icon cart"></i>Get more at Opendime.com!</a>
</div>
</div>
</div>
<div class="ui two column stackable grid">
<div class="six wide column">
<div class="ui card" style="margin-left:6px;">
<div class="content">
<div id="main-qr" class="qrcode"></div>
</div>
<div class="content">
<code class="js-stateful js-addr btc-addr"></code>
</div>
<div class="extra content">
<button class="ui labeled icon button small js-copy-clipboard js-if-verified">
<i class="clipboard icon"></i> Copy to clipboard
</button>
</div>
<div class="content js-unsealed-warn" style="display:none">
<h5>
<i class="fitted warning sign icon"></i>
Private Key
<i class="fitted warning sign icon"></i>
</h5>
<code class="js-stateful js-privkey btc-privkey" title="WIF format private key"></code>
<br>
<button class="ui labeled icon button small js-copy-pk-clipboard js-if-verified disabled">
<i class="clipboard icon"></i> Copy to clipboard
</button>
</div>
</div>
</div>
<div class="ten wide column">
<div class="ui icon negative message js-unsealed-warn" style="display:none">
<i class="warning sign icon"></i>
<div class="content">
<div class="header">
Unsealed!
</div>
<p>
<b>DO NOT</b> send funds to this address or accept this hardware as payment.
</p>
</div>
</div>
<div class="ui icon message" id="js-fresh-msg" style="display:none">
<i class="microchip icon"></i>
<div class="content">
<div class="header">Factory Fresh</div>
<p>
This Opendime is fresh from the factory and
hasn't yet picked a Bitcoin payment address.
</p>
<p>
<button class="ui button green js-start-pick">Initialize my Opendime!</button>
</p>
</div>
</div>
<div id="js-get-balance" style="display:none">
<h4 class="ui dividing header"> Get Balance
<div class="ui black label js-coin-LTC js-coin-dependant">Litecoin</div>
</h4>
<p>
To know the balance of this Opendime, you need to consult online with
the blockchain. You can do that via any of these services. Be aware they
may track your IP address and link it to this payment address.
</p>
<div class="ui form">
<div class="two fields">
<div class="field">
<select class="dropdown js-which-bce-BTC js-coin-BTC js-coin-dependant">
<option value="https://opendime.com/balance/ADDR">Opendime.com</option>
<option value="https://www.blocktrail.com/BTC/address/ADDR">Blocktrail</option>
<option value="https://blockchain.info/address/ADDR">Blockchain.info</option>
<option value="https://localbitcoinschain.com/address/ADDR">Local Bitcoins</option>
<option value="https://bitinfocharts.com/bitcoin/address/ADDR"
>BitInfo Charts</option>
<option value="https://rarepepewallet.com/watch/?addr=ADDR">Rare Pepe Wallet</option>
<option value="blockchain:/address/ADDR">BIP122 Link</option>
</select>
<select class="dropdown js-which-bce-LTC js-coin-LTC js-coin-dependant" style="display: none;">
<option value="https://opendime.com/LTC/balance/ADDR">Opendime.com</option>
<option value="https://live.blockcypher.com/ltc/address/ADDR">BlockCypher</option>
<option value="https://chain.so/address/LTC/ADDR">SoChain</option>
<option value="https://bitinfocharts.com/litecoin/address/ADDR">BitInfoCharts</option>
<option value="https://bchain.info/LTC/addr/ADDR">BChain</option>
<option value="https://insight.litecore.io/address/ADDR">Insight Lite</option>
<option value="blockchain://12a765e31ffd4059bada1e25190f6e98c99d9714d334efa41a195a7e7e04bfe2/address/ADDR" title="Use BIP 122 link to open your favourite block explorer">BIP122 link</option>
</select>
</div>
<div class="field">
<button class="ui button blue js-explore-btn js-if-verified disabled">
<i class="external link icon"></i> Check Balance
</button>
</div>
</div>
</div>
</div>
<h4 class="ui dividing header">Checks Completed
<span class="js-reverify-btn" style="float: right">
<i class="refresh link icon"></i>
</span>
</h4>
<ul id="js-verify-list">
<!-- dynamic -->
</ul>
<div class="ui positive mini compact message js-verified-good" style="display:none">
<div class="content">
<div class="header">
<i class="check icon"></i>
Verified Authentic Opendime™.
</div>
</div>
</div>
<button class="ui huge negative labeled icon button js-verified-bad js-reverify-btn" style="display:none">
<i class="cancel icon"></i>
Failed Verification. Click to Retry.
</button>
<!--
<div class="ui mini compact message js-verified-spinner" style="display:none">
<div class="content">
<div class="header">
<i class="spinner loading icon"></i>
Checking...
</div>
</div>
</div>
-->
<p class="js-verified-spinner" style="display:none">
<i class="spinner loading icon"></i>
Checking...
</p>
</div>
</div>
<p class="text-muted" style="bottom:20px;right:0px;position:absolute;"
>© 2017 Coinkite Inc. All rights reserved
| <a href="https://opendime.com/legal"> Terms of sale and use</a>
| Version <span class="js-version">9.9.9</span>
</p>
<script src="code.js"></script> <!-- keep last -->
</body></html>