-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcoin.php
590 lines (446 loc) · 23.5 KB
/
coin.php
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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<?php
// session_start();
// $_SESSION["user_id"];
// require_once('db.php');
// include_once("dashboard-header.php");
include_once("header.php");
?>
<!-- <script type="text/javascript" src="./web3.min.js"></script>
<script type="text/javascript" src="./human_standard_token_abi.js"></script>
<script type="text/javascript" src="./coin.js"></script>
<head>
<style>
.box{
box-shadow: 2px 0px 2px 1px #888888;
text-align: center;
border: 4px solid #FFFFFF;
background-color: #FFFFFF;
margin-top:5%;
font-family: 'Lato', sans-serif;
}
.sp {
width: 70%;
margin: 0 auto;
}
.col-4 img{
width: 95%;
}
.head, spa{
color:#2196F3;
}
.pro{
border-radius:50%;
height:40px;
width:40px;
}
.btn{
width:150px;
}
.noun{
height:90px;
width:70px;
padding-top:20px;
}
body{
background-color: red;
}
</style>
</head>
<body onload="checkBalance()">
wallet board -->
<!-- <section id="board">
<div class="container">
<div class="box">
<p> Current Coin Balance </p>
<h1 id="accountbalance"></h1>
<p> HNG Wallet Address : <?php //if(isset($_SESSION['address'])){
//echo $_SESSION['address'];
//} else{
//echo "You have not set an address yet";
// }?></p>
<div>
</div>
</div>
</section>
<br> -->
<!-- Bootstrap CSS -->
<link href="css/coin.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<header class="banner">
<div class="layer">
<h1 class="banner-text-colour banner-header mb-3">The HNG Crypt-Token</h1>
<h2 class="banner-text-colour banner-subheader mb-5 sp" style="margin:0 10%">A token that is used to support the development of software developers in Africa through the HNG Internship</h2>
<div class="d-flex justify-content-center mt-3 mb-5">
<a href="#"><button class="banner-button"><span class="button-text" href="#">Support the mission</span></button></a></div>
</div>
</header>
<div class="container-fluid">
<section class="row py-5 justify-content-center grey-bg phone-section">
<h2 class="body-header text-center col-12 mb-5 pb-5">What's this all about?</h2>
<div class="col-4 text-right pt-5 justify-content-end">
<div class="py-2 text-center mb-3" style="width: 50px;
height: 50px;
background: #FBFAFA;
border: 1px solid #E6E5E5;
box-sizing: border-box;
border-radius: 50%;
display: inline-block;
">
<img src="img/chain-doctor.png" class="small-icons" width="100%">
</div>
<h3 class="row justify-content-end body-normal-font body-black-normal text-right" style="font-size: 18px">Proof of Improvement</h3>
<p class="row body-small-font body-black-light text-right mb-5 justify-content-end"><span style="width:72%;">Make your professional profile accessible anytime anywhere on the blockchain. Stand out by visualizing your individual career path in a stunning way.</span></p>
<div class="py-2 text-center mb-3 mt-5" style="width: 50px;
height: 50px;
background: #FBFAFA;
border: 1px solid #E6E5E5;
box-sizing: border-box;
border-radius: 50%;
display: inline-block;
">
<img src="img/chain-person.png" class="small-icons" width="100%">
</div>
<h3 class="row justify-content-end body-normal-font body-black-normal text-right" style="font-size: 18px">Make the world better</h3>
<p class="row body-small-font body-black-light text-right mb-5 justify-content-end"><span style="width:76%;">Get your skills validated in an anonymous, simple and objective way. Through consensus of other expert users or by interacting with AI based systems like chatbots</span></p>
</div>
<div class="col-3 mx-5 mb-5"><img src="img/coin-phone.png" width="100%" height="617px"></div>
<div class="col-4 text-left pt-5">
<div class="py-2 text-center mb-3" style="width: 50px;
height: 50px;
background: #FBFAFA;
border: 1px solid #E6E5E5;
box-sizing: border-box;
border-radius: 50%;
display: inline-block;
">
<img src="img/chain-doctor.png" class="small-icons" width="100%">
</div>
<h3 class="row justify-content-start body-normal-font body-black-normal text-left" style="font-size: 18px">Technology</h3>
<p class="row body-small-font body-black-light text-left mb-5 justify-content-start"><span style="width:72%;">Make your professional profile accessible anytime anywhere on the blockchain. Stand out by visualizing your individual career path in a stunning way.</span></p>
<div class="py-2 text-center mb-3 mt-5" style="width: 50px;
height: 50px;
background: #FBFAFA;
border: 1px solid #E6E5E5;
box-sizing: border-box;
border-radius: 50%;
display: inline-block;
">
<img src="img/chain-person.png" class="small-icons" width="100%">
</div>
<h3 class="row justify-content-start body-normal-font body-black-normal text-left" style="font-size: 18px">Exchange listing</h3>
<p class="row body-small-font body-black-light text-left mb-5 justify-content-start"><span style="width:76%;">Get your skills validated in an anonymous, simple and objective way. Through consensus of other expert users or by interacting with AI based systems like chatbots</span></p>
</div>
</section>
</div>
<div class="container-fluid" style="background:url('img/grey-square.png');background-repeat: no-repeat space;background-color: #CFD2D9;">
<section class="row">
<div class="col-sm-12 col-md-5 offset-md-1">
<img src="img/mark-essien-coin-2.png" width="100%" height="100%">
</div>
<div class="col-md-5 col-sm-12 ml-4 mt-5 pt-4" style="background:url('img/grey-square.png');background-repeat: no-repeat space;background-position: right bottom">
<h3 class="banner-subheader body-black-deep text-left mb-4">Understand the HNG Internship</h3>
<p class="body-normal-font body-black-normal text-left">We have built one of the best ways to rapidly increase the number of coders in African Eco-system.</p>
<p class="body-small-font body-black-light text-left mb-4">We have reached over 10,000 people so far, and expect more to come in the coming years.</p>
<div class="d-flex mt-3 mb-5">
<a href="#"><button class="banner-button"><span class="button-text" href="#">Read More</span></button></a></div>
</div>
</section>
</div>
<section class="container-fluid pt-5 big-section pb-5" style="background-color: white">
<h2 class="row justify-content-center body-header col-12 mb-5 pb-5">How to Buy HNGC Tokens</h2>
<div class="row">
<div class="col-sm-12 col-md-6 pr-5 pl-4">
<div class="row mb-4 justify-content-center"> <div class="blue-number text-center py-2">1</div></div>
<div class="row align-items-start justify-content-center">
<div class="col-2 py-2 mr-3" style="padding: 0">
<img src="img/us-dollar.png" width= "56px" height= "56px">
</div>
<div class="col-9 pl-4" style="padding: 0">
<h4 class="row body-normal-font body-black-light">SEND ETH</h4>
<p class="row body-small-font body-black-light">You can send the eth to Our contract address to recive an equivalent amount of HNGC tokens</p>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6 pl-4">
<div class="row mb-4 justify-content-center"> <div class="blue-number text-center py-2">2</div></div>
<div class="row align-items-start justify-content-center">
<div class="col-2 py-2 mr-3" style="padding: 0">
<img src="img/us-dollar-sack.png" width= "57px" height= "57px">
</div>
<div class="col-9 pl-4" style="padding: 0">
<h4 class="row body-normal-font body-black-light">RECEIVE TOKEN</h4>
<p class="row body-small-font body-black-light">On successful payment comfirmation, your equavalent tokenss will be send to you.</p>
</div>
</div>
</div>
</div>
<!-- </section>
<section class="container-fluid" style="padding: 0% 10% 0% 10%"> -->
<h2 class="row justify-content-center body-header col-12 mb-5 pb-5 pt-5">The Team</h2>
<div class="row justify-content-between mb-2">
<div class="card" style="text-align: center;">
<div class="row justify-content-center pt-3">
<img class="card-avi" src="img/OminiObahs Ofemena David.jpg" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-main-text">OminiObahs Ofemena David</h5>
<p class="card-small-text">Developer</p>
<div class="row justify-content-center">
<span class="col-2"><i class="fa fa-facebook-f card-contacts"></i></span>
<span class="col-2"><i class="fa fa-twitter card-contacts"></i></span>
<span class="col-2"><i class="fa fa-linkedin card-contacts"></i></span>
</div>
</div>
</div>
<div class="card" style="text-align: center;">
<div class="row justify-content-center pt-3">
<img class="card-avi" src="img/Everistus Olumese.jpg" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-main-text">Everistus Olumese</h5>
<p class="card-small-text">Developer</p>
<div class="row justify-content-center">
<span class="col-2"><i class="fa fa-facebook-f card-contacts"></i></span>
<span class="col-2"><i class="fa fa-twitter card-contacts"></i></span>
<span class="col-2"><i class="fa fa-linkedin card-contacts"></i></span>
</div>
</div>
</div>
<div class="card" style="text-align: center;">
<div class="row justify-content-center pt-3">
<img class="card-avi" src="img/Jeremiah righteous.jpg" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-main-text">Jeremiah Righteous</h5>
<p class="card-small-text">Designer</p>
<div class="row justify-content-center">
<span class="col-2"><i class="fa fa-facebook-f card-contacts"></i></span>
<span class="col-2"><i class="fa fa-twitter card-contacts"></i></span>
<span class="col-2"><i class="fa fa-linkedin card-contacts"></i></span>
</div>
</div>
</div>
<div class="card" style="text-align: center;">
<div class="row justify-content-center pt-3">
<img class="card-avi" src="img/Okechuckuw Onwuohra.jpg" alt="Card image cap">
</div>
<div class="card-body">
<h5 class="card-main-text">Okechuckuw Onwuohra</h5>
<p class="card-small-text">Developer</p>
<div class="row justify-content-center">
<span class="col-2"><i class="fa fa-facebook-f card-contacts"></i></span>
<span class="col-2"><i class="fa fa-twitter card-contacts"></i></span>
<span class="col-2"><i class="fa fa-linkedin card-contacts"></i></span>
</div>
</div>
</div>
</div>
</section>
<section class="container-fluid grey-bg mt-3 pb-5" style="padding: 0 10%">
<h2 class="row justify-content-center body-header col-12 mb-5 pb-4 pt-5">Our Partners</h2>
<h4 class="row justify-content-center col-12">Internship 4</h4>
<div class="row justify-content-around mb-4 pb-5">
<div class="col-4">
<img src="img/oracle-red.png">
</div>
<div class="col-4">
<img src="img/bluechips.png">
</div>
<div class="col-4">
<img src="img/figma-dark.png">
</div>
</div>
<h4 class="row justify-content-center col-12">Internship 3</h4>
<div class="row justify-content-around mb-4 pb-5">
Akwa Ibom State Government
</div>
<h4 class="row justify-content-center col-12">Internship 1 & 2</h4>
<div class="row justify-content-around mb-4 pb-5">
<img src="img/hng-square.png" style="margin: 0 auto;">
</div>
</section>
<section class="container-fluid footer py-5" style="padding: 0 10%">
<div class="row align-items-baseline mb-3">
<div>
<img src="img/hngcoin_logo_dark.png" class="coin-logo">
</div>
</div>
<div class="row align-items-baseline mb-5">
<div class="col-4 row footer-text justify-content-between">
<a href="#" class="footer-text">About</a>
</div>
<div class="col row">
<div class="col text-right footer-text"><input type="textbox" class="footer-text p-2" placeholder="Enter your email here..." name="" style="
background: #F5F7FA;
border: 1px solid #C4C4C4;
box-sizing: border-box;
border-radius: 4px;
color: rgba(33, 37, 41, 0.54);
opacity: 0.6;
margin-bottom: 0;
width: 54%;"
></div>
<button class="btn btn-primary" style="
background: #2196F3;
border-radius: 4px;
color:#ffffff;
height: 100%">SUBSCRIBE</button>
</div>
</div>
<hr class="row"/>
<div class="row align-items-center">
<p class="col-6 text-left footer-text pl-0">Copyright © 2018 Hngcoin Project. All rights reserved</p>
<div class="col row justify-content-end">
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-instagram fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-facebook-f fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-pinterest-p fa-stack-1x fa-inverse"></i>
</span>
<span class="fa-stack ml-3">
<i class="fa fa-circle fa-stack-2x socials"></i>
<i class="fa fa-medium fa-stack-1x fa-inverse"></i>
</span>
</div>
</div>
</section>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
</body>
</html>
<!-- Transaction board -->
<!--
<Section id="Transaction">
<div class ="container">
<div class="row">
<div class="col">
<ul class="list-group">
<button type="button" class="list-group-item list-group-item-action ">
<h4 class="head">Your Coins</h4>
</button>
<li class="list-group-item d-flex justify-content-between align-items-center">
<h4>HNG Coin</h4>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<h4>HNG Coin</h4>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<h4>HNG Coin</h4>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center">
<h4>HNG Coin</h4>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</ul>
</div>
<div class="col">
<ul class="list-group">
<button type="button" class="list-group-item list-group-item-action ">
<h4 class="head">Transaction History</h4>
</button>
<li class="list-group-item d-flex justify-content-between align-items-center"><span><strong>APR</strong> <br>30</span>
<span><strong>Transferred HNG Coin</strong> <br><spa> Ogbeni Ore</spa></span>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><span><strong>APR</strong> <br>30</span>
<span><strong>Transferred HNG Coin</strong> <br> <spa>Ogbeni Ore</spa></span>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><span><strong>APR</strong> <br>30</span>
<span><strong>Transferred HNG Coin</strong> <br><spa> Ogbeni Ore</spa></span>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center"><span><strong>APR</strong> <br>30</span>
<span><strong>Transferred HNG Coin</strong> <br><spa> Ogbeni Ore</spa></span>
<span><strong>3000 HNG</strong> <br> NGN 5000.00</span>
</li>
</ul>
</div>
</div>
</Section>
<br>
Activity
<section id="Activity">
<div class="container">
<div class="row">
<div class="col">
<ul class="list-group">
<button type="button" class="list-group-item list-group-item-action ">
<h4 class="head">Transaction History</h4>
</button>
<li class="list-group-item d-flex justify-content-between align-items-center"><span><img class="pro" src"https://res.cloudinary.com/syfon/image/upload/v1526589888/Img.png" alt "image">
<strong>Ogbeni Ore</strong></span>
<span><button type="button" class="btn btn-primary">Sell</button></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center border-top-0"><span><img class="pro" src"https://res.cloudinary.com/syfon/image/upload/v1526589888/Img.png" alt "image">
<strong>Ogbeni Ore</strong></span>
<span><button type="button" class="btn btn-primary">Buy</button></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center border-top-0"><span><img class="pro" src"https://res.cloudinary.com/syfon/image/upload/v1526589888/Img.png" alt "image">
<strong>Ogbeni Ore</strong></span>
<span><button type="button" class="btn btn-primary">Buy</button></span>
</li>
<li class="list-group-item d-flex justify-content-between align-items-center border-top-0"><span><img class="pro" src"http://res.cloudinary.com/syfon/image/upload/v1526589888/Img.png" alt "image">
<strong>Ogbeni Ore</strong></span>
<span><button type="button" class="btn btn-primary">Buy</button></span>
</li>
</ul>
</div>
<div class="col">
<div class="share">
<ul class="list-group ">
<li class="list-group-item text-center"><img class= "noun" src="https://res.cloudinary.com/syfon/image/upload/v1526591211/noun_106750_cc.png"><br>
<span><strong>Share HNG Coins with Friends</strong><br><br>
Encourage your friends to learn coding by offering <br> them HNG Coins today!
<br><br>
</li>
<li class="list-group-item text-right"><spa>INVITE FRIENDS</spa></li>
</ul>
</div>
</div>
</div>
</div>
</section>
-->
<!-- <script type="text/javascript">
//var address = document.getElementById('address').value;
var address = "<?php //if(isset($_SESSION['address'])){ echo $_SESSION['address'];} else{echo "";}?>";
//var address = "0xa105721347F229f0d7bbBD3E10D72d14E2Ba3961";
function checkBalance() {
var balancetokens = web3.fromWei(tokenContract.balanceOf(address).toNumber(), 'ether');//var tokenContract = web3.eth.contract(contractABI).at(contractAddress)
var supply = web3.fromWei(tokenContract.totalSupply().toNumber(), 'ether');
var balance = web3.fromWei( web3.eth.getBalance(address).toNumber(), 'ether');
var symbol = tokenContract.symbol();
//transactions = web3.eth.getTransaction();
var decimal = tokenContract.decimals();
var tokenName = tokenContract.name();
document.getElementById('accountbalance').innerHTML = balancetokens + ' <spa>' + symbol + '</spa> ' + balance + ' <spa>ETH</spa> ' ;
// document.getElementById('supply').innerHTML = 'Total supply: ' + supply + ' ' + symbol;
// document.getElementById('balance').innerHTML = 'Total Ethereum Balance: ' + balance + ' ETH';
// document.getElementById('symbol').innerHTML = tokenName;
}
console.log(tokenContract.balanceOf(address).toNumber())
</script>
-->
<?php
//include_once("footer.php");
?>