forked from BlockProject/b-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
433 lines (415 loc) · 24.1 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link rel="less" type="text/css" href="css/less/styles.less" />
<link rel="stylesheet" type="text/css" href="css/common.css" />
<link href="css/materialicons.css" rel="stylesheet" />
<link href="css/roboto.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/material-blue-pink.css" />
<link rel="stylesheet" type="text/css" href="css/materialize.css">
<link rel="stylesheet" type="text/css" href="css/material.min.css" />
<link rel="stylesheet" type="text/css" href="css/main-popup.css" />
<script src="thirdparty/jquery-3.3.1.min.js"></script>
<script src="thirdparty/material.min.js"></script>
<script src="thirdparty/nebulas.js"></script>
<script src="thirdparty/materialize.min.js"></script>
<script src="js/popup.js"></script>
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
</head>
<body>
<div id="cryptpass-initial" class="cryptpass-popup">
<div class="cryptpass-popup-header mdl-color-text--blue-800">
<img src="images/block_artboard.png" style="width:64px;margin-top:48px;">
</div>
<div id="newAccount" class="cryptpass-popup-new">
<div id="newAccountIntro">
<div class="cryptpass-popup-new-label1"><label class="mdl-typography--body-2">You will need a Nebulas account in
order to fully utilize b.lock</label></div>
<div class="cryptpass-popup-new-label2"><label class="mdl-typography--body-2">Click below to create one with us</label></div>
<button id="createNew" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
CREATE NEW KEYSTORE
</button>
</div>
<div id="newAccountMain" style="display:none;">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" id="new-account-password">
<label class="mdl-textfield__label" for="new-account-password">New Password</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" id="new-account-password-confirm">
<label class="mdl-textfield__label" for="new-account-password-confirm">Confirm Password</label>
</div>
<div class="cryptpass-popup-new-main-buttons">
<button id="cancelCreateNew" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
CANCEL
</button>
<button id="confirmCreateNew" class="mdl-button mdl-js-button mdl-button--raised" disabled>
OK
</button>
</div>
</div>
<div id="newAccountSuccess" style="display:none;">
<div class="cryptpass-popup-new-label1"><label class="mdl-typography--body-2">You have successfully
created your Nebulas account!</label></div>
<div id="public-address-notice" class="cryptpass-popup-new-label1 mdl-typography--body-2"></div>
<div class="cryptpass-popup-new-label2"><label class="mdl-typography--body-2">Please back it up in a secure location</label></div>
<button id="saveKeystoreBtn" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
SAVE MY KEYSTORE FILE
</button>
<div class="cryptpass-popup-new-label2" style="margin-top:24px;"><label class="mdl-typography--body-2">Claim your free Nebulas (NAS) token before you start using <strong>b.lock</strong></label></div>
<button id="claimFreeNas" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
CLAIM NOW
</button>
<button id="enter-block" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
ENTER b.lock
</button>
</div>
</div>
<div id="restoreAccount" class="cryptpass-popup-restore">
<div class="cryptpass-popup-restore-label1"><label class="mdl-typography--body-2">Or sign in if you already have an account</label></div>
<input type="file" id="restore-keystore" style="display:none;">
<label for="restore-keystore" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
RESTORE EXISTING
</label>
</div>
<div id="loginKeystore" class="cryptpass-popup-login" style="display:none;">
<div class="cryptpass-popup-login-main">
<div class="cryptpass-popup-login-main-label1"><label class="mdl-typography--body-2">Unlock your keystore</label></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="password" id="unlock-keystore-password">
<label class="mdl-textfield__label" for="unlock-keystore-password">Password</label>
</div>
<div id="cryptpass-popup-login-main-wrong-password" class="cryptpass-popup-login-wrong-password mdl-color-text--red-500" style="display:none;">
<label class="mdl-typography--body-2">Wrong password! Could not unlock keystore, please try again</label>
</div>
<button id="unlock-keystore" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
UNLOCK
</button>
</div>
</div>
</div>
<!-- <div id="privacy-policy" class="cryptpass-popup cryptpass-popup-login" style="display:none;">
<div class="cryptpass-popup-login-main">
</br>
</br>
</br>
</br>
</br>
</br>
</br>
<div class=""><label class="mdl-typography--display-1">Privacy Policy</label></div>
</br>
</br>
<div class=""><label class="mdl-typography--title mdl-color-text--blue-800">By continuing, you are agreeing to our privacy policy as stated <a href="https://blockproject.io/PrivacyPolicy.pdf" target="_blank">here</a></label></div>
</br>
<button id="agree-policy" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
CONTINUE
</button>
</div>
</div> -->
<div id="cryptpass-main" class="main" style="display:none;">
<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-tabs">
<header class="mdl-layout__header">
<div class="header-options">
<!-- <div style="flex-grow:1;padding-left:24px;display:flex;align-items:center;font-size:24px" class="mdl-color-text--white">
b.lock
</div> -->
<div>
<span class="active-network mainnet">Mainnet</span>
<span class="active-network testnet">Testnet</span>
<button id="demo-menu-lower-right" class="mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">arrow_drop_down</i>
</button>
<ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect"
for="demo-menu-lower-right">
<li class="select-network mdl-menu__item mainnet">Mainnet</li>
<li class="select-network mdl-menu__item mdl-menu__item--full-bleed-divider testnet">Testnet</li>
<li id="logout-keystore" class="mdl-menu__item">Logout</li>
</ul>
</div>
</div>
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a id="tab-favorite" href="#scroll-tab-1" class="mdl-layout__tab is-active">
<div class="icon material-icons">favorite</div>
</a>
<a id="tab-past-activity" href="#scroll-tab-2" class="mdl-layout__tab">
<div class="icon material-icons">event</div>
</a>
<a id="tab-all-entries" href="#scroll-tab-4" class="mdl-layout__tab">
<div class="icon material-icons">receipt</div>
</a>
<a id="tab-my-account" href="#scroll-tab-3" class="mdl-layout__tab">
<div class="icon material-icons">person</div>
</a>
<!-- <a id="tab-settings" href="#scroll-tab-4" class="mdl-layout__tab">
<div class="icon material-icons">menu</div>
</a> -->
<div class="mdl-tooltip" for="tab-favorite">Dashboard</div>
<div class="mdl-tooltip" for="tab-past-activity">Past Activity</div>
<div class="mdl-tooltip" for="tab-all-entries">All Entries</div>
<div class="mdl-tooltip" for="tab-my-account">My Account</div>
<!-- <div class="mdl-tooltip" for="tab-settings">Settings</div> -->
</div>
</header>
<main class="mdl-layout__content">
<section class="mdl-layout__tab-panel is-active" id="scroll-tab-1">
<div class="layout-tab-content tab-favorite">
<div class="tab-favorite-search">
<div class="icon material-icons">search</div>
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="search-field">
<label class="mdl-textfield__label" for="search-field">Search b.lock</label>
</div>
</div>
<div class="tab-favorite-active-now list-container">
<div id="active-entries-title" class="list-container-title mdl-typography--body-2 mdl-color-text--blue-800">
ACTIVE NOW
</div>
<div class="list-container-main" id="active-entries">
<div id="such-empty">
Such empty ~
</div>
</div>
</div>
<div class="tab-favorite-recent-transactions recent-transactions list-container">
<div class="list-container-title mdl-typography--body-2 mdl-color-text--blue-800">
RECENT TRANSACTIONS
</div>
<div class="list-container-main" id="recent-entries">
</div>
</div>
<div class="center-align recent-transactions">
<button id="see-all-tnxs-btn" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
SEE ALL
</button>
</div>
<div class="get-free-nas-section list-container hidden2">
<div class="mdl-typography--title mdl-color-text--blue-800">
GET FREE NEBULAS COINS
</br>
</br>
TO START USING B.LOCK
</div>
<a class="free-nas-btn" href="https://blockproject.io/faucet" target="_blank">
<button class="mdl-button mdl-js-button mdl-button--accent mdl-color--blue-400 mdl-color-text--white">
Get Free NAS
</button>
</a>
</div>
</div>
<div id="overlay-div"></div>
<div class="fixed-action-btn">
<a id="main-floating-action-btn" class="btn-floating btn-large blue">
<i class="large material-icons">add</i>
</a>
<ul>
<li id="new-credential"><a class="btn-floating blue darken-1">Password</a></li>
<li id="new-secretnote"><a class="btn-floating blue darken-2">Secret Note</a></li>
<li id="new-transaction"><a class="btn-floating blue darken-3">Send NAS</a></li>
</ul>
</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-2">
<div class="layout-tab-content">
<div id="all-transactions-container" class="list-container">
<div class="list-container-title mdl-typography--body-2 mdl-color-text--blue-800">
ALL PAST TRANSACTIONS
</div>
</div>
</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-4">
<div class="layout-tab-content" id="all-entries-container">
</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-3">
<div class="layout-tab-content tab-my-account">
<div class="my-account-public">
<div class="mdl-typography--body-2">Your Public Address</div>
<div class="mdl-typography--body-1 my-account-public-address-wrapper">
<input id="my-account-public-address" readonly></input>
<span id="my-account-public-address-copy">COPY</span>
</div>
<div class="my-account-info">
<div class="my-account-info-part">
<div class="info-label mdl-typography--body-2">Balance</div>
<div id="my-account-balance" class="info-value"></div>
<div id="claim-free-nas" class="">
<a class="free-nas-btn" href="https://blockproject.io/faucet" target="_blank">
<button class="mdl-button mdl-js-button mdl-button--accent mdl-color--blue-400 mdl-color-text--white">
Get Free NAS
</button>
</a>
</div>
</div>
<div class="my-account-info-part">
<div class="info-label mdl-typography--body-2">Nonce</div>
<div id="my-account-nonce" class="info-value"></div>
</div>
</div>
</div>
<div class="my-account-privatekey-container">
<div class="mdl-typography--body-2">Your Private Key</div>
<div class="my-account-privatekey-wrapper" id="my-account-privatekey-wrapper">
<div id="my-account-view-privatekey-password-wrapper" class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="password" id="my-account-view-privatekey-password">
<label class="mdl-textfield__label" for="new-credential-password">Password</label>
</div>
<div id="my-account-private-key" style="display:none;"></div>
<button id="view-private-key" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
VIEW
</button>
</div>
</div>
<div class="my-account-downloadkeystore">
<div class="mdl-typography--body-2" style="margin-bottom:12px;">Download your JSON keystore</div>
<button id="my-account-download-keystore-btn" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
DOWNLOAD
</button>
</div>
<div id="copy-public-address-snackbar" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
</section>
<!-- <section class="mdl-layout__tab-panel" id="scroll-tab-4">
<div class="layout-tab-content">
</div>
</section> -->
</main>
</div>
<div id="new-transaction-snackbar" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
<div id="new-credential-snackbar" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
<div id="new-secretnote-snackbar" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
<div id="template-list-item-entry" class="list-item entry-item hidden" expanded='false'>
<div class="list-item-icon">
<i class="material-icons">security</i>
</div>
<div class="list-item-content">
<div class="list-item-content-overview entries">
<div class="list-item-content-overview-title mdl-typography--body-2"></div>
<div class="list-item-content-overview-description mdl-color-text--grey-600 mdl-typography--caption"></div>
<div class="list-item-content-overview-fill mdl-color-text--red-600 mdl-typography--caption hidden"><b>Fill</b></div>
</div>
<div class="list-item-content-details" is-visible="false" edit-mode="false" style="display:none;">
<div class="list-item-content-details-main">
<div class="list-item-content-details-topic mdl-typography--body-2"></div>
<input class="list-item-content-details-key" type="text" disabled>
<input class="list-item-content-details-value hidden real" type="password" readonly>
<textarea class="list-item-content-details-value hidden real" rows="3" readonly></textarea>
<textarea class="list-item-content-details-value hidden dummy" rows="3" readonly>********</textarea>
</div>
<div class='action-buttons'>
<div class="list-item-content-details-action toggle-visibility-div">
<i class="material-icons toggle-visibility">visibility_off</i>
</div>
<div class="list-item-content-details-action">
<i class="material-icons toggle-edit-done">edit</i>
</div>
<div class="list-item-content-details-action">
<i class="material-icons button-delete">delete_forever</i>
</div>
</div>
</div>
</div>
<div class="list-item-action mdl-color-text--blue-800">
<i class="material-icons toggle-dropdown-cancel">arrow_drop_down</i>
</div>
</div>
<div id="template-list-item-transaction" class="list-item hidden open-txn-new-tab transaction-item" item-type="transaction">
<div class="list-item-icon">
<i class="material-icons">receipt</i>
</div>
<div class="list-item-content">
<div class="list-item-content-overview">
<div class="list-item-content-overview-title mdl-typography--body-2"></div>
<div class="list-item-content-overview-description mdl-color-text--grey-600 mdl-typography--caption"></div>
</div>
</div>
<div class="list-item-action mdl-color-text--blue-800">
<i class="material-icons open-txn-new-tab-i">open_in_new</i>
</div>
</div>
<div id="sliding-up-div" class="sliding-up-div">
<a id="close-popup-view" style="cursor:pointer;"><i class="material-icons mdl-color-text--red-500">close</i></a>
<div id="new-transaction-container" class="popup-view-container" style="color:white;display:none;">
<div class="mdl-color-text--blue-800">
<h4>Send NAS</h4>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="text" id="new-transaction-destination">
<label class="mdl-textfield__label" for="new-transaction-destination">Destination</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="number" step=".00001" id="new-transaction-amount">
<label class="mdl-textfield__label" for="new-transaction-amount">Amount (NAS)</label>
</div>
<button id="new-transaction-send" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
SEND
</button>
<div id="new-transaction-snackbar-error" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
<div id="new-credential-container" class="popup-view-container" style="color:white;display:none;">
<div class="mdl-color-text--blue-800">
<h4>Save Password</h4>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="text" id="new-credential-domain">
<label class="mdl-textfield__label" for="new-credential-domain">Domain</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="text" id="new-credential-login">
<label class="mdl-textfield__label" for="new-credential-login">Username/Email</label>
</div>
<div class="new-credential-password-wrapper">
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="password" id="new-credential-password">
<label class="mdl-textfield__label" for="new-credential-password">Password</label>
</div>
<i class="mdl-color-text--black new-credential-toggle-visibility material-icons">visibility_off</i>
</div>
<button id="new-credential-save" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
SAVE
</button>
<div id="new-credential-snackbar-error" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
<div id="new-secretnote-container" class="popup-view-container" style="color:white;display:none;">
<div class="mdl-color-text--blue-800">
<h4>Save Secret Note</h4>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input mdl-color-text--black" type="text" id="new-secretnote-title">
<label class="mdl-textfield__label" for="new-secretnote-title">Title</label>
</div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
<textarea style="height:10rem;" class="mdl-textfield__input mdl-color-text--black" type="text" rows= "10" id="new-secretnote-content"></textarea>
<label class="mdl-textfield__label" for="new-secretnote-content">Content</label>
</div>
<button id="new-secretnote-save" class="mdl-button mdl-js-button mdl-button--raised mdl-color--blue-800 mdl-color-text--white">
SAVE
</button>
<div id="new-secretnote-snackbar-error" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div>
</div>
</div>
</body>
</html>