-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathaccount.html
99 lines (98 loc) · 6.22 KB
/
account.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>BlockSense——Blockchain Based Trust Crowd-sensing Platform</title>
<link rel="stylesheet" type="text/css" href="dist/css/bootstrap.min.css">
<style type="text/css">pre{white-space: pre-wrap;word-wrap: break-word;}</style>
</head>
<body style="overflow: hidden;">
<nav class="navbar navbar-default">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./index.html">BlockSense</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Profile <span class="sr-only">(current)</span></a></li>
<li><a href="./taskList.html">Task List</a></li>
<li><a href="./receivedTask.html">Your Accepted Task(s)</a></li>
<li><a href="./publishTask.html">Your Published Task(s)</a></li>
</ul>
<form class="navbar-form navbar-right">
<div class="form-group">
<input type="text" class="form-control" placeholder="Contract address">
</div>
<button type="submit" class="btn btn-default">Search</button>
</form>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div style="height: 595px;width: 100%;padding: 0 20px 0;" ms-controller="account_info">
<button type="button" class="btn btn-default" style="position: absolute;top: 72px;right: 20px" id="logout">Logout</button>
<button type="button" class="btn btn-primary" style="position: absolute;top: 72px;right: 100px">Backup Your Private Key</button>
<button type="button" class="btn btn-warning" style="position: absolute;top: 125px;right: 20px" ms-if="@data.isMining" disabled><span class="glyphicon glyphicon glyphicon-play" aria-hidden="true"></span> Be a Miner</button>
<button type="button" class="btn btn-warning" style="position: absolute;top: 125px;right: 20px" ms-if="@data.isMining == false" disabled><span class="glyphicon glyphicon glyphicon-play" aria-hidden="true"></span> Be a Miner</button>
<p style="position: absolute;top: 135px;right: 150px;color: #7c7c7c;font-size: 12px">Current Status: Syncing # <span style="color: #3498db">{{@data.blockNumber}}</span> blocks, <span style="color: #3498db" ms-if="@data.isMining">is</span><span style="color: #3498db" ms-if="@data.isMining == false">is not</span> mining</p>
<div class="media">
<div class="media-left">
<a href="#">
<img class="media-object" style="background-color:#e0e0e0;border-radius: 5px;width: 100px;height: 100px;" src="dist/img/profile.jpg">
</a>
</div>
<div class="media-body">
<h1 class="media-heading">{{@data.nickname}}</h1>
<p><span class="glyphicon glyphicon-user" aria-hidden="true" style="margin-right: 5px"></span>{{@data.address}}</p>
<h4 style="padding-left: 4px">{{@data.value}}<strong style="color: #3498db"> ETHER</strong></h4>
</div>
</div>
<h3><span class="glyphicon glyphicon-transfer" aria-hidden="true"></span> Transfer</h3>
<div class="input-group" style="margin-top: 10px;">
<span class="input-group-addon" id="basic-addon3">From</span>
<input type="text" class="form-control" aria-describedby="basic-addon3" ms-attr="{placeholder: @data.address}" disabled>
</div>
<div class="input-group" style="margin-top: 10px;">
<span class="input-group-addon" id="basic-addon4">To</span>
<input type="text" class="form-control" id="to_address" aria-describedby="basic-addon4" placeholder="0x0000000...">
</div>
<div class="input-group" style="margin-top: 10px;">
<span class="input-group-addon">$</span>
<input type="text" class="form-control" aria-label="Amount (to the nearest dollar)" id="transfer_amount">
<span class="input-group-addon">Wei</span>
</div>
<button type="button" class="btn btn-primary btn-block" id="transfer" style="margin-top: 10px">Transfer</button>
<h3><span class="glyphicon glyphicon-xbt" aria-hidden="true"></span> My Transactions</h3>
<div style="overflow-y: auto;height: 208px" ms-controller="txns">
<!-- txns repeat -->
<div class="row" style="height: 70px;margin:auto 0;" ms-for="el in @data">
<div class="col-md-8">
<p style="margin-bottom: 0">TX# <a style="color: #3498db">{{el.txn}}</a></p>
<p style="margin-bottom: 0">From <a style="color: #3498db">{{el.sender}}</a> to <a style="color: #3498db">{{el.receiver}}</a></p>
<p style="margin-bottom: 0">Amount {{el.amount}} Ether</p>
</div>
<div class="col-md-4" style="text-align: right">
<p>>{{el.time}} min ago</p>
</div>
</div>
</div>
</div>
</body>
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script type="text/javascript" src="dist/js/web3.min.js"></script>
<script type="text/javascript" src="dist/js/avalon.min.js"></script>
<script type="text/javascript" src="dist/js/jquery.min.js"></script>
<script type="text/javascript" src="dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="dist/js/sweetalert2.all.min.js"></script>
<script type="text/javascript" src="dist/js/account.js"></script>
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
</html>