-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
131 lines (128 loc) · 6.73 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>mquad</title>
<meta charset="utf-8" />
<meta name="description" content="M+Climate quadratic funding" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="assets/icon.png" />
<link rel="stylesheet" href="assets/style.css" />
</head>
<body>
<div id="noFooter">
<p id="startMessage">loading...</p>
<button id="connect" class="button" type="button">connect</button>
<div id="main">
<div id="administrator">
<h1>administrator</h1>
<h2>manage administrators</h2>
<p class="center">
You are the administrator. Total administrators -
<span id="totalAdministrators">...</span>.
Address can be removed from administrators or added to administrators if there is
a simple majority of votes.</p>
<div id="pendingAdministrators"></div>
<label class="label">
enter administrator's address
<span id="administratorAddressHint" class="hint"></span>
<input id="administratorAddress" class="input" type="text" size="42" maxlength="42" />
</label>
<div class="buttons">
<button id="addAdministrator" class="button" type="button">add</button>
<button id="removeAdministrator" class="button" type="button">remove</button>
</div>
<h2>manage funders</h2>
<p class="center">Add or remove addresses that can participate in the qf funding.</p>
<label class="label">
enter funder's address
<span id="funderAddressHint" class="hint"></span>
<input id="funderAddress" class="input" type="text" size="42" maxlength="42" />
</label>
<div class="buttons">
<button id="addFunder" class="button" type="button">add</button>
<button id="removeFunder" class="button" type="button">remove</button>
</div>
<h2>start qf round</h2>
<label class="label">
enter duration in hours
<span id="startHoursHint" class="hint"></span>
<input id="startHours" class="input" type="text" />
</label>
<button id="start" class="button" type="button">start</button>
<h2>manage projects</h2>
<p class="center">
The project must be approved by the administrator in order to participate in the qf funding.
</p>
<div id="pendingProjects"></div>
<label class="label">
enter project's address
<span id="approveAddressHint" class="hint"></span>
<input id="approveAddress" class="input" type="text" size="42" maxlength="42" />
</label>
<button id="approve" class="button" type="button">approve</button>
<h2>finish qf round</h2>
<span id="finishHint" class="hint"></span>
<button id="finish" class="button" type="button">finish</button>
<hr />
</div>
<h2>you have <span id="balance">...</span> M+C</h2>
<h2>add funds</h2>
<p class="center">
Add M+C tokens to the shared pool, which will be divided between projects according to
the results of the qf funding.
Currently it has <span id="poolBalance">...</span> M+C tokens.
It is assumed that M+C community fund adds tokens to this pool, but it can be any M+C holder.
</p>
<label class="label">
enter M+C value
<span id="poolValueHint" class="hint"></span>
<input id="poolValue" class="input" type="text" />
</label>
<button id="pool" class="button" type="button">fund</button>
<h2>add project</h2>
<p class="center">
Add a new project to the current funding round.
Anyone can do this.
To participate in the qf funding, the project must be approved by administrator.
</p>
<label class="label">
enter address
<span id="projectAddressHint" class="hint"></span>
<input id="projectAddress" class="input" type="text" size="42" maxlength="42" />
</label>
<label class="label">
enter link
<span id="projectLinkHint" class="hint"></span>
<input id="projectLink" class="input" type="text" size="42" maxlength="42" />
</label>
<button id="addProject" class="button" type="button">add</button>
<h2>projects</h2>
<p class="center">Qf-vote to the project. The voting round <span id="round">...</span>.</p>
<div id="projects"></div>
<label class="label">
enter project's address
<span id="voteAddressHint" class="hint"></span>
<input id="voteAddress" class="input" type="text" size="42" maxlength="42" />
</label>
<label class="label">
enter M+C value
<span id="voteValueHint" class="hint"></span>
<input id="voteValue" class="input" type="text" size="42" maxlength="42" />
</label>
<button id="vote" class="button" type="button">vote</button>
<h2>logs</h2>
<div id="log"></div>
</div>
</div>
<div id="footer">
<a target="_blank" rel="noopener" href="https://aqoleg.github.io/mquad/docs/index.html">video</a>
<a target="_blank" rel="noopener" href="https://github.com/aqoleg/mquad">github</a>
<a target="_blank" rel="noopener"
href="https://kovan.etherscan.io/address/0x04151a909061d37dAA770b9dd65Db1c9Bb830249">
etherscan
</a>
</div>
<script src="assets/bignumber.min.js"></script>
<script src="assets/script.js"></script>
</body>
</html>