-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalldeals.html
194 lines (152 loc) · 6.86 KB
/
alldeals.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="dapp-styles/dist/dapp-styles.css">
<link rel="stylesheet" type="text/css" href="dapp-styles/icons/style.css">
<link rel="stylesheet" type="text/css" href="dapp-styles/icons/simple-line-icons.css">
<link rel="stylesheet" type="text/css" href="fontawsome/font-awesome-4.6.3/css/font-awesome.css">
<style type="text/css">
#outer {height: 400px; overflow: hidden; position: relative;}
#outer[id] {display: table; position: static;}
#middle {position: absolute; top: 50%;} /* for explorer only*/
#middle[id] {display: table-cell; vertical-align: middle; width: 100%;}
#inner {position: relative; top: -50%}
</style>
<script src="https://code.jquery.com/jquery-1.12.2.min.js">
</script>
<script src="web3.min.js"></script>
<script src="bignumber.js"></script>
<script src="globalParams.js"></script>
<script src="userinput.js"></script>
<script src="deals.js"></script>
<script src="events.js"></script>
<script src="init.js"></script>
<script src="allDeals.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-85156609-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<header class="dapp-header dapp-overflow">
<div align="center">
<h1>Decenteralized Ether Mixer  <span style="color:red">BETA!</span></h1>
</div>
</header>
<div class="dapp-flex-content dapp-overflow">
<!-- aside -->
<aside class="dapp-aside">
<nav>
<div class="list-group">
<ul>
<li>
<a class="list-group-item" href="index.html"><i class="fa fa-home fa-fw" aria-hidden="true"></i> Home</a>
</li>
<li>
<a class="list-group-item" href="mydeals.html"><i class="fa fa-tachometer fa-fw" aria-hidden="true"></i> Mix Dashboard</a>
</li>
<li>
<a class="list-group-item" href="alldeals.html"><i class="fa fa-book fa-fw" aria-hidden="true"></i> Deals Monitor</a>
</li>
<li>
<a class="list-group-item" href="contract.html"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i> The Contract</a>
</li>
<li>
<a class="list-group-item" href="about.html"><i class="fa fa-cog fa-fw" aria-hidden="true"></i> About</a>
</li>
</ul>
</div>
</nav>
</aside>
<!-- content-->
<main class="dapp-content">
<div id="all_deals_div">
<div style="clear: both">
<h2 style="float: left">All Deals</h2>
<h2 style="float: right" id="all_deals_show_legend">Show Legend</h2>
</div>
<table id="all_deals_table_legend">
<tr>
<th>Icon</th>
<th>Meaning</th>
<th>Corresponding Variable in Contract</th>
</tr>
<tr>
<td><i class="fa fa-hashtag" aria-hidden="true"></i></td>
<td>Deal Id</td>
<td><code class="language-javascript">_dealId</code></td>
</tr>
<tr>
<td><i class="fa fa-calendar" aria-hidden="true"></i></td>
<td>Start Date</td>
<td><code class="language-javascript">_startTime</code></td>
</tr>
<tr>
<td><i class="fa fa-clock-o" aria-hidden="true"></i><i class="fa fa-shopping-cart" aria-hidden="true"></i></td>
<td>Joining Phase Duration (in hours, from the start date)</td>
<td><code class="language-javascript">_claimDurationInHours</code></td>
</tr>
<tr>
<td><i class="fa fa-clock-o" aria-hidden="true"></i><i class="fa fa-bank" aria-hidden="true"></i></td>
<td>Deposit Duration Phase (in hours, from the end of the joining phase)</td>
<td><code class="language-javascript">_depositDurationInHours</code></td>
</tr>
<tr>
<td><i class="fa fa-money" aria-hidden="true"></i></td>
<td>Value to Mix (in Ether)</td>
<td><code class="language-javascript">_claimUnitValueInWei * 1000000000000000000</code></td>
</tr>
<tr>
<td><i class="fa fa-legal" aria-hidden="true"></i></td>
<td>Collateral Amount (in Ether)</td>
<td><code class="language-javascript">_claimDepositInWei * 1000000000000000000</code></td>
</tr>
<tr>
<td><i class="fa fa-user-times" aria-hidden="true"></i></td>
<td>Minimal Required Number of Users (in Ether)</td>
<td><code class="language-javascript">_minNumClaims</code></td>
</tr>
<tr>
<td><i class="fa fa-users" aria-hidden="true"></i></td>
<td>Current Number of Users</td>
<td><code class="language-javascript">Deal::numClaims</code></td>
</tr>
<tr>
<td><i class="fa fa-percent" aria-hidden="true"></i></td>
<td>Current Percentage of Deposited Funds</td>
<td><code class="language-javascript">100 * Deal::depositSum / Deal::claimSum</code></td>
</tr>
</table>
<table align="center" id="all_deals_table" class="dapp-zebra">
</table>
<div id="outer">
<div id="middle">
<div id="inner">
<div id="all_deals_before_load" align="center">
<i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i>
<span class="sr-only">Loading...</span>
</div>
</div>
</div>
</div>
<div>
</main>
<!-- actionbar -->
<aside class="dapp-actionbar dapp-overflow" hidden>
</aside>
</div>
<!--
<script type="text/javascript">
function autorun(){
init();
}
if (document.addEventListener) document.addEventListener("DOMContentLoaded", autorun, false);
else if (document.attachEvent) document.attachEvent("onreadystatechange", autorun);
else window.onload = autorun;
</script>-->
</body>
</html>