-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
315 lines (279 loc) · 14.4 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!DOCTYPE html>
<html>
<head>
<title>CashCow</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="image/x-icon"/>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<div class="container">
<div class="row d-none" id="wallet-info-disconnect">
<div class="col-8">
<div class="block d-inline-block">
<p>
<span class="border border-dark py-2"><strong>Network:</strong> <span id="network-name"></span></span>
<span class="border border-dark py-2"><strong>Selected account:</strong> <span id="selected-account"></span></span>
</p>
</div>
</div>
<div class="col-4">
<button class="btn btn-outline-dark float-end" id="btn-disconnect">
Disconnect purse
</button>
</div>
</div>
<div class="row">
<br>
<br>
<div class="col">
<br>
<br>
<br>
<h1 class="text text-center fs-1">🏧 🐮 🔍</h1>
<h4 class="text text-center font-monospace fs-4">cashcow.quest</h4>
</div>
</div>
<hr />
<div class="row" id="cow-description">
<div class="col-2"></div>
<div class="col-8">
<p class="text font-monospace">
<b> CashCow.Quest </b> is a seed stage Venture Capital protocol that aims to faciliate the asyncronous creation of predictable and liquid agreements for both ends of the deal.
</p>
</div>
<div class="col-2"></div>
<hr />
</div>
<div class="row">
<!-- <div class="alert alert-danger" id="alert-error-https" style="display: none">
You can run this example only over HTTPS connection.
</div> -->
<div id="prepare" class="text-center">
<br>
<button class="btn btn-outline-dark border-1" id="btn-connect">
<span class="fs-3">
🔗👛
</span>
<br>
<span class="fs-5">
Connect purse
</span>
</button>
</div>
<div id="connected" class="d-none">
<div class="row" id="accordeon">
<!------------------ accordeon start ------------------>
<div class="col-12">
<div class="accordion" id="accordionExample">
<div class="accordion-item">
<h2 class="accordion-header" id="headingOne">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
Propose Cow
</button>
</h2>
<div id="collapseOne" class="accordion-collapse collapse show" aria-labelledby="headingOne" data-bs-parent="#accordionExample">
<div class="accordion-body">
<div class="create-form form form-control">
<!-- project token-->
<div class="input-group mb-3">
<label for="yp-address" class="form-label p-1 m-1">Your ERC20 Contract</label><br>
<input type="text" class="form-control" onchange="ypContractAddressChanged()" id="yp-address" placeholder="You project's (YP) ERC20 address" aria-label="yp_address" aria-describedby="basic-addon2">
<span class="input-group-text" id="yp-symbol">ERC20 name</span>
</div>
<div class="row">
<div class="col-6">
<!-- amount pt-->
<div class="input-group mb-3">
<label for="yp-amount" class="form-label p-1 m-1">Offer Amount </label><br>
<input type="number" class="form-control" id="yp-amount" onchange="ypAmChanged()" placeholder="YP amount for sale" aria-label="yp_amount" aria-describedby="yp_erc20"">
<span class="input-group-text text-danger" id="yp-approved">amount approved</span>
</div>
</div>
<div class="col-6">
<!-- amount DAI-->
<div class="input-group mb-3">
<label for="dai-amount" class="form-label p-1 m-1">Wanted Amount</label><br>
<input type="number" class="form-control" id="dai-amount" placeholder="DAI amount wanted" aria-label="dai_amount" aria-describedby="basic-addon2">
<span class="input-group-text" id="dai-create">DAI contract</span>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<label for="vest_start" class="form-label">Vest Start Date</label>
<input class="form-control" type="number" placeholder="Vest Start or Liquidation Eligibility in Days after minting" id="vest_start">
</div>
<div class="col-6">
<label for="vest_end" class="form-label">Vest End Date</label>
<input class="form-control" type="number" placeholder="Fully Matures in days after Vest Start" id="vest_end">
</div>
</div>
<div class="row">
<div class="mb-3">
<label for="formFile" class="form-label"><b>Project Description File</b></label>
<input class="form-control" type="file" id="formFile" onclick='alert("file upload department is on vacation. act like you know")'>
</div>
</div>
<div class="row">
<button class="btn btn-dark" onclick="submittedCreateCow()">
Propose Cow
</button>
</div>
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingTwo">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
Mint Cow
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
<div class="accordion-body" id="mint-body">
<div class="container d-inline" id="floating-cows-place">
</div>
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingThree">
<button class="accordion-button collapsed" type="button" onclick="appendVestableCows()" data-bs-toggle="collapse" data-bs-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
Vest Cow
</button>
</h2>
<div id="collapseThree" class="accordion-collapse collapse" aria-labelledby="headingThree" data-bs-parent="#accordionExample">
<div class="accordion-body" id="vestingbox">
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="headingFour">
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
Heard View
</button>
</h2>
<div id="collapseFour" class="accordion-collapse collapse" aria-labelledby="headingFour" data-bs-parent="#accordionExample">
<div class="accordion-body overflow-scroll">
<div class="container d-inline">
<table class="table table-light overflow-auto">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Proposer</th>
<th scope="col">Taker</th>
<th scope="col">Project ERC20</th>
<th scope="col">Liquidity Pool ERC20</th>
<th scope="col">Offerring</th>
<th scope="col">Value</th>
<th scope="col">LP Balance</th>
<th scope="col">Vest/Liquidate</th>
<th scope="col">Vest End</th>
<th scope="col">Deal Description (IPFS#)</th>
</tr>
</thead>
<tbody id="cowlisttable">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!---------------------- end -------------->
</div>
</div>
<br>
</div>
<hr />
<div id="welcome-details">
<div class="row">
<div class="container">
<div class="row text-center justify-content-center mb-5">
<br />
<div class="col-xl-6 col-lg-8">
<h3 class="font-weight-bold"> How it works </h3>
<p class="text-muted">An idea is submitted. A price is paid. An understanding is created.</p>
<p class="text-muted">The ERC721 understanding can be sold, dumped, pumped or harvested.</p>
</div>
</div>
<div class="row">
<br />
<div class="col">
<div class="timeline-steps aos-init aos-animate" data-aos="fade-up">
<div class="timeline-step">
<div class="timeline-content" data-toggle="popover" data-trigger="hover" data-placement="top" title="" >
<div class="inner-circle"></div>
<p class="h6 text-muted mb-0 mb-lg-0">Cow Proposed</p>
</div>
</div>
<div class="timeline-step">
<div class="timeline-content" data-toggle="popover" data-trigger="hover" data-placement="top" title="" >
<div class="inner-circle"></div>
<p class="h6 text-muted mb-0 mb-lg-0">Cow Minted</p>
</div>
</div>
<div class="timeline-step">
<div class="timeline-content" data-toggle="popover" data-trigger="hover" data-placement="top" title="" >
<div class="inner-circle"></div>
<p class="h6 text-muted mb-0 mb-lg-0">Cow Decision</p>
</div>
</div>
<div class="timeline-step">
<div class="timeline-content" data-toggle="popover" data-trigger="hover" data-placement="top" title="" >
<div class="inner-circle"></div>
<p class="h6 text-muted mb-0 mb-lg-0">Cow Vested</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="container">
<h3 class="font-weight-bold text-center"> Do you have what it takes? </h3>
<div class="text-center">
<li class="text-center">it takes DAI (ERC20)*, so you need to have DAI to pay for a deal, or you need to have a deployed fixed cap ERC20 for your project</li>
</div>
<br>
<span class="text-muted">*subject to changed, cow coin soon™</span>
</div>
</div>
</div>
<footer class="footer mt-auto py-2 bg-light fixed-bottom">
<div class="container">
<div class="d-inline">
Made with <span style="color: #e25555;">♥</span> by <a class="text-decoration-none" href="https://github.com/parseb">parseb</a>
</div>
<div class="d-inline" id="cashcowad">
| ad: <a href="http://cashcow.guru" class="text-decoration-none"><b>cashcow.guru</b> "the best cashcows to get"</a>
</div>
<div class="float-end" id="right-corner-footer">
</div>
</div>
</footer>
<!-- We use simple <template> templating for the example -->
<div id="templates" style="display: none">
<template id="template-balance">
<tr>
<th class="address"></th>
<td class="balance"></td>
</tr>
</template>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/web3.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/index.js"></script>
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/umd/index.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/@walletconnect/[email protected]/dist/umd/index.min.js"></script>
<script src="https://cdn.ethers.io/lib/ethers-5.6.umd.min.js" type="application/javascript"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>