-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
192 lines (187 loc) · 9.39 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Crowdserve - Interface</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/jquery.mCustomScrollbar.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="./libs/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="./libs/humanize-duration.js"></script>
<script src="./libs/xss-filters.min.js"></script>
<script src="./libs/moment.min.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/components.js"></script>
<script src="./js/crowdserve_api.js"></script>
<script src="./js/index.js"></script>
</head>
<body>
<div class="container-fluid site-main">
<div class="header">
<div class="title" ><h1><span style="color:#FFAF03;">Crypto</span><span class='stroke' style="color:#F2F2F2">primitive</span></h1></div>
<div id="navbar"></div>
</div>
<div id="noWeb3AccountWarning" hidden='true' align='center'>
<div class="alert alert-danger" style='display:inline-block;'>
<p><strong>No Ethereum account found.</strong></p>
<p>You are currently unable to initiate any commands. Make sure Metamask is installed and unlocked, and refresh.</p>
</div>
</div>
<div id="networkWarning" hidden='true' align='center'>
<div class="alert alert-danger" style='display:inline-block;'>
<p><strong>You are currently operating on the Ropsten testnet.</strong></p>
<p>To interact with real Burnable Payments, change your Metamask network to the "Main" Ethereum network, and refresh.</p>
</div>
</div>
<div id="mainVue">
<h2 class= "text-center" style="margin-top: 40px;color:#F2F2F2">Crowdserve Interface</h2>
<div class="contract-info">
<div class = "row">
<div class="well well-sm flex-container">
<div class="contract-state-time">
<contract-state-output :state='contractState' :preview='contractPreview'></contract-state-output>
<div><state-time-output style="margin-top:20px;":state='contractState' :preview-end-time='previewEndTime' :round-end-time='roundEndTime'></state-time-output></div>
</div>
<div class="proposal" >
<div class="panel panel-primary proposal-panel" >
<div class="panel-heading">Proposal</div>
<div class="panel-body">
<div class='proposal-body scrollBar'>
<div class="proposal-text"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="contributor-interface">
<div class="well well-sm row">
<div class="col-md-6">
<div class="total-contributions well well-sm" style="background-color:white;font-size: 20px">
<div style="text-align:left;">
<div class="total-contributed"><span style='color:#22d822;'>+ <ether-output :wei="totalContributed"></ether-output></span> contributed</div>
<div class="total-recalled"><span style="color:#dd250d;margin-left:3px;">- <ether-output :wei="totalRecalled"></ether-output></span> recalled</div>
<div class="line" style='height:2px;background-color:black;width:210px;'></div>
<div class="total-supply">Supply: <ether-output :wei="totalSupply"></ether-output></div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="individual-contributions">
<div class="well well-sm" style="background-color:white;">
<div class="individual-contributions-centering">
<h3 class="text-center">Your balance</h3>
<div style="text-align:center; margin-top: 20px;margin-left: 20px;font-size:20px;">
<ether-output :wei="balanceOfContributor"></ether-output>
</div>
<div class="row" style="display:flex;justify-content:space-evenly; margin-top:20px">
<div class="">
<button class="btn btn-primary" data-toggle="modal" data-target="#contribute">Contribute</button>
</div>
<div class="">
<button class="btn btn-primary" data-toggle="modal" data-target="#transfer">Transfer</button>
</div>
<div class="">
<button class="btn btn-primary" data-toggle="modal" data-target="#recall">Recall</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="statements">
<div class="row well well-sm">
<div class="col-md-12 statements-log scrollBar">
<div class="chat-container">
<crowdserve-event-row v-for="event in events" :event="event"></crowdserve-event-row>
</div>
</div>
</div>
<div class="row statements-input" style="display:flex;">
<div class="" style="flex:1;"><input id="statement-text-input" class="form-control" type="text" placeholder='Type your statement'></div>
<div class="" style="flex:0 1; margin-left: 20px;"><button class='btn btn-primary' onclick="sendStatementFromForm()">Make statement</button></div>
</div>
</div>
</div>
<div id="contribute" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="text-primary">Contribute Funds</h4>
</div>
<div class="modal-body">
<div class="text-center" style="margin-top:20px;">
Contribute <input id="contribute-amount-input" class="form-control" style="display:inline-block;width:60%;" placeholder="amount"> ether<br>
<button style ="margin-top: 30px;" type="button" class="btn btn-primary" data-dismiss="modal" onclick="contributeFundsFromForm()">Add Funds</button>
</div>
</div>
</div>
</div>
</div>
<div id="transfer" class="modal fade" role="dialog">
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="text-primary">Transfer Funds</h4>
</div>
<div class="modal-body">
<div class="text-center" style="margin-top:20px;">
<div style="margin-bottom: 20px;">
transfer <input id="transfer-amount-input" class="form-control" style="display:inline-block;width:30%;" placeholder="amount" > ether
</div>
<div>
to <input id="transfer-address-input" class="form-control" style="display:inline-block;width:60%;" placeholder="address" >
</div>
<button style ="margin-top: 30px;" type="button" class="btn btn-primary" data-dismiss="modal"
onclick="transferFundsFromForm()">Transfer Funds</button>
</div>
</div>
</div>
</div>
</div>
<div id="recall" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="text-primary">Recall Funds</h4>
</div>
<div class="modal-body">
<div class="text-center" style="margin-top:20px;">
Recall <input id="recall-amount-input" class="form-control" style="display:inline-block;width:60%;" placeholder="amount"> ether<br>
<button style ="margin-top: 30px;" type="button" class="btn btn-primary" data-dismiss="modal" onclick="recallFundsFromForm()">Recall Funds</button>
</div>
</div>
</div>
</div>
</div>
<!--
<div id="sent-success" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="text-success">Success!</h4>
</div>
<div class="modal-body">
<div class="text-center" style="margin:20px;">
Statement successfully sent!
</div>
</div>
</div>
</div>
</div>
-->
</div>
</body>
</html>