forked from nedodn/ethcrow
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
106 lines (106 loc) · 4.26 KB
/
index.html
File metadata and controls
106 lines (106 loc) · 4.26 KB
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
<!DOCTYPE html>
<html>
<head>
<title>EthCrow</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
</head>
<body class="container">
<h1 id="title">EthCrow</h1>
<div class="row">
<div class="row" id="make">
<h2>Make Transaction</h2><br>
<input type="text" id="receiver" placeholder="Send to" style="width:400px"><br>
<input type="number" id="amount" placeholder="Amount to be Paid" style="width:400px"><br>
<input type="number" id="deadline" placeholder="Deadline (days)" style="width:400px"><br>
<input type="number" id="collateral" placeholder="How Much Collateral You Want Them to Put Up" style="width:400px"><br>
<a href="#" onclick="makeTransaction()" class="btn btn-danger">Make Transaction</a><br>
<span id="transMsg" style="display: none"><h2>Done</h2></span>
</div>
<div class="row" id="sentBlock">
<h2 style="width:500px;" id="sent">Check Sent Transactions</h2><br>
<a href="#" onclick="checkSentTransactions()" id="checkSent" class="btn btn-primary">Check Transactions</a>
<table class="table table-bordered" id="tableSent" style="display: none">
<thead>
<tr>
<th>Trans. Id</th>
<th>Receiver</th>
</tr>
</thead>
<tbody id="tableInfo">
</tbody>
</table>
<input type="text" id="sentId" placeholder="Check Transaction Data By Id"><br>
<a href="#" onclick="checkSentTransaction()" id="checkSentId" class="btn btn-primary" style="display: none">Check Transaction</a><br>
<table class="table table-bordered" id="tableSentTrans" style="display: none">
<thead>
<th>Id</th>
<th>Amount</th>
<th>Deadline</th>
<th>Receiver Collateral</th>
<th>Accepted</th>
<th>Withdrawal</th>
<th>Finalize</th>
<th>Dispute</th>
<thead>
<tbody>
<tr>
<td id="tableId"></th>
<td id="tableAmount"></td>
<td id="tableDeadline"></td>
<td id="tableCollateral"></td>
<td id="tableAccepted"></td>
<td id="tableWithdrawal"></td>
<td id="tableFinalize"></td>
<td id="tableDispute"></td>
</tr>
</tbody>
</table>
<h3 id="sendMsg" style="display:none"></h3>
</div>
<div class="row">
<h2 id="rec">Check Received Transactions</h2><br>
<a href="#" onclick="checkRecTransactions()" class="btn btn-primary">Check Received Transactions</a>
<table class="table table-bordered" id="tableRec" style="display: none">
<thead>
<tr>
<th>Trans. Id</th>
<th>Sender</th>
</tr>
</thead>
<tbody id="tableInfoR">
</tbody>
</table>
<h3 id="recMsg" style="display:none"></h3>
<input type="text" id="recId" placeholder="Check Transaction Data By Id"><br>
<a href="#" onclick="checkRecTransaction()" id="checkRecId" class="btn btn-primary" style="display: none">Check Transaction</a><br>
<table class="table table-bordered" id="tableRecTrans" style="display: none">
<thead>
<th>Id</th>
<th>Amount</th>
<th>Deadline</th>
<th>Collateral</th>
<th>Accepted</th>
<th>Withdrawal</th>
<th id="refundH" style="display:none">Refund</th>
<thead>
<tbody>
<tr>
<td id="tableIdR"></td>
<td id="tableAmountR"></td>
<td id="tableDeadlineR"></td>
<td id="tableCollateralR"></td>
<td id="tableAcceptedR"></td>
<td id="tableWithdrawalR"></td>
<td id="refund" style="display:none"></td>
</tr>
</tbody>
</table>
</div>
</div><br>
<span>Contract Located at <a href="https://rinkeby.etherscan.io/address/0x6badc9463c5cc91cbfb5176ef99a454c3c77b00e">0x6badc9463c5cc91cbfb5176ef99a454c3c77b00e</a></span>
</body>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="app.js"></script>
</html>