-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·358 lines (312 loc) · 19.1 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
<!DOCTYPE html>
<!--
Copyright (c) 2018 Dainet Network
https://www.dain.network
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Dainet Web Wallet. Secure and light Dainet Wallet for erc20 token.">
<title>Dainet Web Wallet</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/pure-min.css">
<link rel="stylesheet" href="css/grids-responsive-min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/side-menu.css">
<link rel="stylesheet" href="css/jquery.modal.min.css">
<script src="js/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script>
if (location.protocol != 'https:') {
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
</script>
</head>
<body>
<div id="layout">
<a href="#menu" id="menuLink" class="menu-link">
<span></span>
</a>
<div class="header" id="header">
<div class="home-menu pure-menu pure-menu-horizontal pure-menu-fixed">
<span class="pure-menu-heading">
<a href="./"><img src="img/logo.png" alt="Dainet Erc20 Wallet"/> Dainet Wallet</a>
</span>
</div>
</div>
<div id="menu">
<div class="pure-menu">
<a class="pure-menu-heading" href="#">Menu</a>
<ul class="pure-menu-list">
<li class="pure-menu-item"><a href="./" class="pure-menu-link"><i class="fa fa-credit-card-alt fa-fw"></i> Wallet <span id="onlineMel">online</span></a></li>
<li class="pure-menu-item logout-element"><a href="#" class="pure-menu-link" id="openSendButton"><i class="fa fa-send fa-fw"></i> Send tokens</a></li>
<li class="pure-menu-item logout-element"><a href="#" class="pure-menu-link" id="saveKeysButton"><i class="fa fa-save fa-fw"></i> Export private key</a></li>
<li class="pure-menu-item"><a href="#" class="pure-menu-link" id="aboutButton"><i class="fa fa-question-circle fa-fw"></i> About</a></li>
<li class="pure-menu-item logout-element"><a href="#" class="pure-menu-link" id="logoutButton"><i class="fa fa-times-circle fa-fw"></i> Log out</a></li>
</ul>
</div>
</div>
<div id="main">
<div class="splash-container">
<div class="splash">
<div id="offlineInfo">
<i class="fa fa-exclamation-circle text-danger"></i> Wallet is offline. Check your internet connection...
</div>
<div class="spinner"></div>
<div class="spinnerlabel splash-subhead">Loading...</div>
<div id="registerSection" style="display:none">
<p class="splash-subhead">
Light Mobile Wallet<br />store and send your DAINET ERC20 Tokens
</p>
<p>
<a href="#" class="pure-button pure-button-big" id="createBigButton">Create new wallet</a>
</p>
<p>
<a href="#" class="pure-button pure-button-big" id="restoreButton">Restore your wallet</a>
</p>
</div>
<div id="saveKeySection" style="display:none" class="frameInfo pure-form">
<div class="headDiv">Congratulations</div>
Your new wallet is created. Write down these 12 words recovery seed:<br><br>
<div id="seedCopy">
<textarea id="d12keys" onclick="this.focus();this.select()" readonly="readonly"></textarea>
<div style="margin: 4px;">
<i class='fa fa-copy'></i> copy to clipboard
</div>
</div>
<p style="text-align: center;">
<span style="color: red;">
<i class="fa fa-2x fa-exclamation-triangle" aria-hidden="true"></i> <br />
We do not store your seed or private keys<br />
and will not be able to restore your wallet if you loose it.
</span>
<br>
Continue after save.<br><br>
<a href="#" class="pure-button pure-button-primary" id="saveSeedButton">Continue</a><br>
<br>
</p>
</div>
<div id="walletSection" style="display:none" class="pure-form">
<div class="frameInfo mainFrame">
<div>
<div class="headDiv">Your balance</div>
<div id="tokenBalanceDiv">
<span class="tokenBalance">0</span>DAIN<br><br>
</div>
</div>
<div>
<div class="headDiv" id="headWall">Your Wallet address <i class="fa fa-question-circle"></i></div>
<div id="ethAddressDiv">
<span id="ethAddress"><i>loading...</i></span>
<i class="fa fa-copy"></i>
</div>
<div class="pure-g">
<div class="pure-u-1-6"><img id="addrQR" class="pure-img-responsive" alt="QR Code" /></div>
<div class="pure-u-5-6">
<div style="margin-left: 12px;">
You have <br />
<span class="ethBalance">0</span> ETH
</div>
</div>
<div id="qrBox" style="display: none"><img id="addrQRZoom" class="pure-img-responsive" alt="QR Code" /></div>
</div>
<div class="notice">
Since Dainet is an ERC20 token you need to have some Ether in your wallet to facilitate your transaction with tokens on the Ethereum mainnet.
</div>
</div>
</div>
<div class="frameInfo mainFrame" id="sendBox">
<div class="headDiv">Send DAIN tokens</div>
<div class="notice">
Always validate your desination address.
The destination address must be the Ethereum address
</div>
<div>
To address: <br />
<input type="text" id="destAddr" value="" class="form-control" placeholder="0x000000000000000">
<br />
Amount Dains(s): <br />
<input type="text" id="tokenAmount" class="form-control" placeholder="0.000000" value="">
<div>
<span onclick="$('#gasPriceDiv').toggle();" class="pointer pull-right"><i class="fa fa-cog"></i></span>
<div id="gasPriceDiv">
Gas Price (in Gwei, recommended 5 - 40): <br />
<input type="text" id="gasPrice" class="form-control" placeholder="0.000000" value="">
</div>
</div>
<div class="is-center">
<button id="sendButton" class="pure-button pure-button-primary"><i class="fa fa-bolt"></i> Send</button>
</div>
<div id="resultDiv" class="info" style="display: none;"></div>
</div>
</div>
<div class="frameInfo transactions">
<div class="headDiv">Transactions</div>
<div>
You can check all transactions at Etherscan:
<a href='#' id="contractAddress" target='_blank'>Dainet Smart Contract Transactions</a>
</div>
</div>
</div>
</div>
</div>
<div class="buyDiv">
<div class="frameInfo">
<div class="headDiv">Buy Dainet tokens</div>
<div class="pure-g">
<center>
<div class="pure-u-1-3 pure-u-md-1-8">
<a href="https://www.dain.network/token"><img class="pure-img-responsive" src="img/dainet_buy.png" alt="Dainet Exchange" /></a>
</div>
<div class="pure-u-1-3 pure-u-md-1-8">
<a href="https://etherdelta.com/#0x73e210304d99d900ad2555e930f5e0c53f2c8a0d-ETH"><img class="pure-img-responsive" src="img/etherdelta.png" alt="Trade Dainet Ether Delta" /></a>
</div>
<div class="pure-u-1-3 pure-u-md-1-8">
<a href="https://forkdelta.app/#!/trade/0x73e210304d99d900ad2555e930f5e0c53f2c8a0d-ETH"><img class="pure-img-responsive" src="img/forkdelta.png" alt="Trade Dainet Fork Delta" /></a>
</div>
</center>
</div>
</div>
<div class="frameInfo">
<div class="content">
<h2 class="content-head is-center">
Dainet ERC20 Token is based on Ethereum Blockchain
</h2>
<div class="pure-g">
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-rocket"></i>
Speed of Ethereum
</h3>
<p>
Transaction confirmation time is around 2-3 minutes. You can find it on Ethereum explorer.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-life-ring"></i>
Versatility
</h3>
<p>
You can restore your founds on any Ethereum Wallet using your private keys.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-th-large"></i>
Decentralized
</h3>
<p>
Keys are validated client-side and do not leave your browser or network.
</p>
</div>
<div class="l-box pure-u-1 pure-u-md-1-2 pure-u-lg-1-4">
<h3 class="content-subhead">
<i class="fa fa-bolt"></i>
Light & Fast
</h3>
<p>
Smooth synchronization and interaction with the Ethereum blockchain
</p>
</div>
</div>
</div>
<div class="ribbon l-box-lrg pure-g">
<div class="l-box-lrg is-center pure-u-1 pure-u-md-1-2 pure-u-lg-2-5">
<img width="300" alt="Be secure" class="pure-img-responsive" src="./img/secure.png">
</div>
<div class="pure-u-1 pure-u-md-1-2 pure-u-lg-3-5">
<h2 class="content-head content-head-ribbon">Secure your Wallet</h2>
<p>
Please write your recovery seed and private key in safe place!<br />
You cannot recover your wallet if you lose it. <br />
Log out of the wallet after finishing your work.<br />
Always check the URL and SLL Certificate. <br />
You are responsible for your security.
</p>
</div>
</div>
<div class="content">
<h2 class="content-head is-center">More About Dainet<br /><br /><br />
<img src="img/logo.png" alt="Dainet" style="height: 128px;"/><br />
</h2>
<br />
<h3>The purpose of the Dainet token</h3>
Dainet token is used as the main source of currency to interact with the Dainet network, to handle transactions and settlements within a distributed network of artificial intelligence nodes.
<h3>ERC-20 standard</h3>
Tokens are hosted on Ethereum blockchain. Therefore, the address of the Dainet Wallet is also an Ethereum address.
You can send Dainet tokens to any Ethereum address and have access to it through MyEtherWallet.com. <a href="https://www.dain.network/myetherwallet">Read more...</a>
<h2 class="content-head is-center">
<a href="https://www.dain.network" class="pure-button pure-button-primary">Go to Dainet Network</a>
</h2>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
© 2018 <a href="https://www.dain.network">Dainet Network</a>
<a href="https://github.com/Dainet/Dainet-Wallet"><i class="fa fa-github"></i> Dainet Token Open Source ERC20 Web Wallet</a>
<a href="https://dainet.slack.com"><i class="fa fa-slack"></i> Support on Slack</a>
</div>
<div id="headWallExplain" style="display: none;">
The Dainet token is an ERC20 token based on
the Ethereum network. That's why the address of
your Dainet wallet is Ethereum's address. After
downloading the private key, you can handle your
address on other wallets, eg MyEtherWallet
</div>
<div id="modalVal" style="display: none; color: #000;">
</div>
<div id="modalImportSeed" style="display: none; color: #000;">
<div class="headDiv">Restore Wallet</div>
Insert your 12 words mnemonic phrase here: <br />
<textarea id="seedIn" class="form-control"></textarea>
<p style="text-align: center;">
<span style="color: red;" id="importError"></span>
<br />
<br />
<a href="#" class="pure-button pure-button-primary" id="restoreButtonNov">Continue</a><br>
</p>
</div>
<div id="modalExportKeys" style="display: none; color: #000;">
<div class="headDiv">Export private key</div>
Private key: <br />
<div id="modalExportKeysCopy">
<input type='text' id='privKeyExt' value='' class='form-control'/>
<br />
<i class='fa fa-copy'></i> copy to clipboard
</div>
<br /><br />
The key should be kept in secure place!
<div id="privKeyExtVal" style="display: none;"></div>
</div>
<script src="js/jquery.modal.min.js"></script>
<script src="js/config.js"></script>
<script src="js/lightwallet.js"></script>
<script src="js/dainetwallet.js"></script>
<script src="js/ui.js"></script>
<script type="text/javascript">
dainetwallet.initialize();
</script>
</body>
</html>