-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
312 lines (292 loc) · 10.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CrowdNode.js UI</title>
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#242424">
<meta name="application-name" content="CrowdNode.js UI">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="">
<meta name="msapplication-TileColor" content="#00bbff">
<meta name="msapplication-TileImage" content="assets/icons/dash-d-rounded-square-250.png">
<meta name="msapplication-config" content="assets/icons/browserconfig.xml">
<link rel="icon" type="image/png" href="./favicon.png">
<link rel="shortcut icon" href="./favicon.png">
<!-- <link rel="shortcut icon" href="assets/icons/favicon.ico"> -->
<link rel="manifest" href="./manifest.json?v=0.0.5" crossorigin="use-credentials">
<script type="text/javascript">
if (JSON.parse(localStorage.getItem('theme'))) {
document.documentElement.classList.add('it')
}
if (location.pathname.includes('crowdnode-ui')) {
document.head.querySelector('title').insertAdjacentHTML('beforebegin', `<base href="/crowdnode-ui/" />`)
} else {
document.head.querySelector('title').insertAdjacentHTML('beforebegin', `<base href="/" />`)
}
</script>
<link rel="icon" type="image/png" sizes="250x250" href="assets/icons/dash-d-rounded-square-250.png">
<link rel="apple-touch-icon" sizes="250x250" href="assets/icons/dash-d-rounded-square-250.png">
<!--
<link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="57x57" href="assets/icons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/icons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/icons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/icons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/icons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/icons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/icons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/icons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="167x167" href="assets/icons/apple-touch-icon-167x167.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/icons/apple-touch-icon-180x180.png">
<link rel="apple-touch-icon" sizes="1024x1024" href="assets/icons/apple-touch-icon-1024x1024.png"> -->
<link rel="stylesheet" type="text/css" media="screen" href="./index.css?v=3">
</head>
<body>
<nav>
<a class="brand" href="#home">CrowdNode.js UI</a>
<div class="menu" id="home">
<!-- <a class="dashboard" href="#!/dashboard">Dashboard</a> -->
<a class="wallet" href="#!/wallet">Wallet</a>
<a class="staking" href="#!/staking">Staking</a>
</div>
<div class="balances" id="navBalances">
</div>
<div class="settings" id="navSettings">
<a class="addwallet" href="#addwallet" title="Add Wallet">+</a>
<a class="encrypt" href="#crypt" title="Encrypt / Decrypt">🔒</a>
<a class="theme" href="#theme" title="Invert Theme"></a>
<a class="settings" href="#!/settings" title="Settings">🛠</a>
</div>
</nav>
<main>
<!-- <header>
<aside class="dash-status">
<h3>Dash Wallet</h3>
<div class="balance">Balance: </div>
<form class="link" name="balanceForm">
<fieldset disabled>
<button type="submit">🗘 Refresh Balance</button>
</fieldset>
</form>
</aside>
<aside class="cn-status">
<h3>CrowdNode</h3>
<div class="balance">Balance: </div>
<div class="dividends">Dividends: </div>
</aside>
</header> -->
<section class="page" id="onboarding">
<!-- <form name="privKeyForm" comp-init="./components/forms/private-key.js">
<fieldset>
<input name="privateKey" placeholder="Ðash Private Key (WIF)" spellcheck="false" />
<button type="submit">Use or Generate Private Key</button>
<label>
<input type="checkbox" name="remember" /> Remember Private Key
</label>
</fieldset>
<script defer async>
document.privKeyForm.remember.checked = JSON.parse(localStorage.getItem('remember'))
</script>
</form>
<form name="encPrivKey">
<fieldset disabled>
<input type="password" name="passphrase" placeholder="Enter your encrypted private key passphrase" minlength="1" spellcheck="false" />
<button type="submit">Encrypt/Decrypt Private Key</button>
<p>Enter a password which will encrypt/decrypt your Private Key (WIF).</p>
<div class="error"></div>
</fieldset>
</form> -->
<!-- <form name="signupCrowdNodeForm">
<fieldset disabled>
<label>
<input name="acceptToS" type="checkbox" />
I accept the CrowdNode <a href="https://crowdnode.io/terms/" target="_blank">Terms and Conditions</a>
</label>
<button type="submit">Signup for CrowdNode</button>
</fieldset>
</form> -->
<!-- <form name="acceptCrowdNodeForm">
<fieldset disabled>
<p>Before using the CrowdNode service, you must accept the <a href="https://crowdnode.io/terms/" target="_blank">Terms and Conditions</a></p>
<button type="submit">Accept CrowdNode TOS for Private Key</button>
</fieldset>
</form> -->
</section>
<section class="page" id="dashboard">
<!-- <form name="depositCrowdNodeForm">
<fieldset disabled>
<input
type="number"
name="amount"
step="0.00000001"
placeholder="Ðash Amount (0.001)"
/>
</fieldset>
<fieldset disabled>
<button type="submit">Deposit Funds to CrowdNode</button>
</fieldset>
</form> -->
</section>
<section class="page" id="wallet">
<!-- <form name="addPrivKeyForm" comp-init="./components/forms/add-private-key.js">
<fieldset class="inline">
<input name="privateKey" placeholder="Ðash Private Key (WIF)" spellcheck="false" />
<button type="submit">Add Private Key</button>
</fieldset>
</form>
<form name="generatePrivKeyForm">
<fieldset>
<button type="submit">Generate New Private Key</button>
</fieldset>
</form> -->
<!-- <form name="encryptWallet">
<fieldset>
<input type="password" name="passphrase" placeholder="Enter your encryption passphrase" minlength="1" spellcheck="false" />
<button type="submit">Encrypt/Decrypt Wallet</button>
<p>Enter a password which will encrypt/decrypt your Private Keys stored in this wallet.</p>
<div class="error"></div>
</fieldset>
</form> -->
<h1>Wallets</h1>
<div class="grid wallet-grid hidden" id="addressGrid">
<header>
<article>
<div title="Encrypted Status"></div>
<div>Public Address</div>
<div>Deposit</div>
<div>Balance</div>
<div>Withdraw</div>
</article>
</header>
<section>
<!-- <article>
<div>🔒</div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</article> -->
</section>
<footer>
<article>
<div></div>
<div>Total</div>
<div></div>
<div class="db"></div>
<div></div>
<div></div>
</article>
</footer>
</div>
<!-- <table id="addressList">
<thead>
<tr>
<th colspan="7">
<header>
<div>My Keys</div>
<div>🏷️</div>
</header>
</th>
</tr>
<tr>
<th>🔒</th>
<th>Private Key</th>
<th>Deposit</th>
<th>Balance</th>
<th>Withdraw</th>
<th>Staked</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table> -->
<!-- <form name="depositCrowdNodeForm">
<fieldset disabled>
<input
type="number"
name="amount"
step="0.00000001"
placeholder="Ðash Amount (0.001)"
/>
</fieldset>
<fieldset disabled>
<button type="submit">Deposit Funds to CrowdNode</button>
</fieldset>
</form> -->
</section>
<section class="page" id="staking">
<h1>Staking</h1>
<div class="grid staking-grid hidden" id="stakingGrid">
<header>
<article>
<div title="Encrypted Status"></div>
<div>Public Address</div>
<div>Balance</div>
<div>Staked</div>
<div>Stake</div>
<div>Unstake</div>
</article>
</header>
<section>
</section>
<footer>
<article>
<div></div>
<div>Total</div>
<div class="db"></div>
<div class="cb"></div>
<div></div>
<div></div>
</article>
</footer>
</div>
</section>
<section class="page" id="settings">
<h1>Settings</h1>
</section>
<footer>
<h4>Alpha stage, not production ready. <span>Use at your own risk.</span></h4>
<h5>Checkout the <a target="_blank" href="https://github.com/dashhive/crowdnode-ui">Source Code</a></h5>
</footer>
</main>
<script type="text/javascript" async>
(function invertTheme(selector) {
let theme = JSON.parse(localStorage.getItem('theme'))
if (selector) {
document.querySelector(selector)
.addEventListener('click', event => {
event.preventDefault()
theme = !theme
localStorage.setItem('theme', theme)
document.documentElement.classList.toggle('it')
})
}
})('nav a.theme')
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register(`sw.js`)
.then(function () {
console.log("Service Worker Registered");
});
}
</script>
<script src="./node_modules/@dashevo/dashcore-lib/dist/dashcore-lib.min.js"></script>
<script src="./node_modules/@root/request/urequest.js"></script>
<script src="./node_modules/qrcode-svg/dist/qrcode.min.js"></script>
<!-- <script src="./pwa-install.js"></script> -->
<script src="./main.js" type="module" async defer></script>
</body>
</html>