-
Notifications
You must be signed in to change notification settings - Fork 3
/
interact.html
163 lines (137 loc) · 7.51 KB
/
interact.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Ether Patron - Trustless open source crowdfunding contract</title>
</head>
<body>
<div class="d-flex justify-content-center">
<div class="grid">
<div class="row justify-content-center m-1 mt-3" >
<h5>
Ether Patron for:
</h5>
</div>
<div class="row justify-content-center m-1 mt-3" >
<h3>
<div id="purpose-url"></div>
</h3>
</div>
<div class="row justify-content-center m-1 mt-3" >
<div class="d-block w-100">
<div class="progress">
<div class="progress-bar progress-bar-striped bg-warning progress-bar-animated" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" id="eth-progress-bar"></div>
</div>
</div>
<small class="form-text text-muted" id="eth-progress-bar-text"></small>
</div>
<div class="row justify-content-center m-1 mt-3" >
<div class="d-block w-100">
<div class="progress">
<div class="progress-bar progress-bar-striped bg-info progress-bar-animated" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" id="time-progress-bar"></div>
</div>
</div>
<small class="form-text text-muted" id="time-progress-bar-text"></small>
</div>
<div class="center-block text-center m-1 mt-3">
<button type="submit" class="btn btn-warning" data-toggle="modal" data-target="#donate-modal">Donate!</button>
<button type="submit" class="btn btn-danger" data-toggle="modal" data-target="#refund-modal">Get refund</button>
</div>
<div class="center-block text-center m-1 mt-3" id="total-donated">
You donated 0 eth so far. </br> Thank you!
</div>
</div>
</div>
<!-- Donate Modal -->
<div class="modal fade" id="donate-modal" tabindex="-1" role="dialog" aria-labelledby="getYourOwn-modalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="donateModalTitle">Donate to EtherPatron.com</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="grid">
<div class="row justify-content-center m-4">
Distribute donation in periods:
</div>
<div class="row justify-content-center m-1 ">
<input type="number" step="1" id="donatePeriods" placeholder="1">
</div>
<div class="row justify-content-center m-1 ">
<small class="form-text text-muted" id="daysInPeriod">One period is </small>
</div>
<div class="row justify-content-center m-4">
Total ETH to donate:
</div>
<div class="row justify-content-center ">
<input type="number" step="0.01" id="sumToDonate" placeholder="0.01 eth">
</div>
<div class="row justify-content-center ">
<small class="form-text text-muted" id="minDonationPerPeriod">Minimum donation is 0.01 eth per period</small>
</div>
<div class="row justify-content-center m-4 metaMaskError alert alert-danger d-none" role="alert" >
Requires MetaMask
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary btn-warning" id="donateBtn">Donate!</button>
</div>
</div>
</div>
</div>
<!-- END Donate Modal -->
<!-- Refund Modal -->
<div class="modal fade" id="refund-modal" tabindex="-1" role="dialog" aria-labelledby="getYourOwn-modalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="refundModalTitle">Get refund from EtherPatron.com</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="grid">
<div class="row justify-content-center m-4">
If you want to stop being a patron, you can cancel your future donations and get a refund.
</div>
<div class="row justify-content-center m-4" id="amountToRefund">
You can refund 0 eth (counted from 12 next periods)
</div>
<div class="row justify-content-center m-4">
Refund periods:
</div>
<div class="row justify-content-center m-1 ">
<input type="number" step="1" id="refundPeriods" placeholder="12">
</div>
<div class="row justify-content-center m-4 metaMaskError alert alert-danger d-none" role="alert" >
Requires MetaMask
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary btn-danger" id="refundBtn">Refund!</button>
</div>
</div>
</div>
</div>
<!-- END Refund Modal -->
<footer class="page-footer font-small blue fixed-bottom">
<div class="text-right py-3 bg-light pr-5">
<a href="/">EtherPatron.com</a> |
<a href="https://github.com/MartinKral/ether-patron" target="_blank">GitHub</a>
</div>
</footer>
<script src="interact.js"></script>
</body>
</html>