-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
364 lines (321 loc) · 16.3 KB
/
Copy pathindex.html
File metadata and controls
364 lines (321 loc) · 16.3 KB
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html>
<title>CareFactor</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<style>
html,body,h1,h2,h3,h4,h5 {font-family: "Raleway", sans-serif}
</style>
<script src="https://kit.fontawesome.com/76ed55ffd2.js" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="jquery.ui.touch-punch.min.js"></script>
<script src="CareFactor.js"></script>
<style>
/* for autocomplete box */
.ui-autocomplete {
max-height: 200px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
* html .ui-autocomplete {
height: 200px;
}
</style>
<body class="w3-light-grey" style="width: 95%; font-size: 80%;" onload="initPortfolio();">
<!-- Top container -->
<div class="w3-bar w3-top w3-black w3-large" style="z-index:4">
<button class="w3-bar-item w3-button w3-hide-large w3-hover-none w3-hover-text-light-grey" onclick="w3_open();"><i class="fas fa-bars"></i> Menu</button>
<span class="w3-bar-item w3-right"><i class="fas fa-tools fa-fw"></i> Under Development</span>
</div>
<!-- Sidebar/menu -->
<nav class="w3-sidebar w3-collapse w3-white w3-animate-left" style="z-index:3;width:300px;" id="mySidebar"><br>
<div class="w3-container w3-row">
<div class="w3-col s4">
<img src="w3images/avatar2.png" class="w3-circle w3-margin-right" style="width:46px">
</div>
<div class="w3-col s8 w3-bar">
<span id="new-user-salutation">Welcome, <strong>New User</strong></span><br>
<a href="#" class="w3-bar-item w3-button"><i class="fas fa-envelope"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fas fa-user"></i></a>
<a href="#" class="w3-bar-item w3-button"><i class="fas fa-cog"></i></a>
</div>
</div>
<hr>
<div class="w3-container">
<h5>Portfolio Tools</h5>
</div>
<div class="w3-bar-block">
<a href="#" class="w3-bar-item w3-button w3-padding-16 w3-hide-large w3-dark-grey w3-hover-black" onclick="w3_close()" title="close menu"><i class="fas fa-remove fa-fw"></i> Close Menu</a>
<a href="#" class="w3-bar-item w3-button w3-padding w3-blue"><i class="fas fa-eye fa-fw"></i> Overview</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-chart-bar fa-fw"></i> Analyse</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-edit fa-fw"></i> Edit</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-upload fa-fw"></i> Publish</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-credit-card fa-fw"></i> Payments</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-calendar-alt fa-fw"></i> Events</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-history fa-fw"></i> History</a>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-cog fa-fw"></i> Settings</a>
<br>
<a href="#" class="w3-bar-item w3-button w3-padding"><i class="fas fa-plug fa-fw"></i> Connections</a>
<div id="accordion" style="font-size: 90%;">
<h3 class="w3-bar-item w3-button w3-padding"><img src="w3images\facebook-icon.png"><span class="w3-padding">Facebook</span></h3>
<div>
<p style="color: Gainsboro;"><i class="fas fa-heart fa-fw "></i><i class="w3-padding">Listening to likes</i></p>
<p><i class="fas fa-user-plus fa-fw"></i><span class="w3-padding">Listening to follows</span></p>
<p><i class="fas fa-align-justify fa-fw"></i><span class="w3-padding">Syncing to feed</span></p>
</div>
<h3 class="w3-bar-item w3-button w3-padding"><img src="w3images\instagram-icon.png"><span class="w3-padding">Instagram</span></h3>
<div>
<p style="color: Gainsboro;"><i class="fas fa-heart fa-fw "></i><i class="w3-padding">Listening to likes</i></p>
<p><i class="fas fa-user-plus fa-fw"></i><span class="w3-padding">Listening to follows</span></p>
<p style="color: Gainsboro;"><i class="fas fa-align-justify fa-fw"></i><i class="w3-padding">Syncing to feed</i></p>
</div>
<h3 class="w3-bar-item w3-button w3-padding"><img src="w3images\meetup-icon.png"><span class="w3-padding">MeetUp</span></h3>
<div>
<p><i class="fas fa-heart fa-fw "></i><span class="w3-padding">Listening to likes</span></p>
<p><i class="fas fa-user-plus fa-fw"></i><span class="w3-padding">Listening to follows</span></p>
<p><i class="fas fa-align-justify fa-fw"></i><span class="w3-padding">Syncing to feed</span></p>
</div>
<h3 class="w3-bar-item w3-button w3-padding"><img src="w3images\linkedin-icon.png"><span class="w3-padding">LinkedIn</span></h3>
<div>
<p><i class="fas fa-heart fa-fw "></i><span class="w3-padding">Listening to likes</span></p>
<p><i class="fas fa-user-plus fa-fw"></i><span class="w3-padding">Listening to follows</span></p>
<p style="color: Gainsboro;"><i class="fas fa-align-justify fa-fw"></i><i class="w3-padding">Syncing to feed</i></p>
</div>
</div>
</div>
</nav>
<!-- Overlay effect when opening sidebar on small screens -->
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" title="close side menu" id="myOverlay"></div>
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px;margin-top:43px;">
<div class="w3-yellow w3-center w3-padding" id="new-user-intro" style="display:none">
<h4>As a new user, CareFactor is showing a <i>demo portfolio</i>. To create your own, start with our <b>Giving Profile Builder </b><i class="fas fa-hand-holding-heart fa-fw"></i> </h4>
</div>
<!-- Header -->
<header class="w3-container" style="padding-top:22px">
<h5><b><i class="fas fa-eye"></i> Overview</b></h5>
</header>
<div class="w3-panel">
<div class="w3-row-padding" style="margin:0 -16px">
<div class="w3-third">
<h5><i class="fas fa-address-card fa-fw"></i> Your Giving Profile</h5>
<div id="tabs">
<ul>
<li><a href="#tabs-1">Focus</a></li>
<li><a href="#tabs-2">Approach</a></li>
<li><a href="#tabs-3">Scope</a></li>
<li><a href="#tabs-4">Targets</a></li>
<li><a href="#tabs-5">Funding</a></li>
</ul>
<div id="tabs-1">
<p>Please drag and drop these items to rank your preferences.</p>
<ul class="w3-ul w3-card-4 w3-blue" id="sortable1">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Community & Welfare</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Health</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Religion</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>International Aid & Development</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Education</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Environment & Animal Welfare</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Sporting & Recreation</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Arts & Culture</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Disaster Relief</li>
</ul>
</div>
<div id="tabs-2">
<p>Please drag and drop these items to rank your preferences.</p>
<ul class="w3-ul w3-card-4 w3-blue" id="sortable2">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Research</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Political Activism</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Public Advocacy</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Education & Training</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Service Delivery</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Direct Support</li>
</ul>
</div>
<div id="tabs-3">
<p>Please use the sliders to set your preferences.</p><br>
<center><div id="scope-slider" style=" width:100%;">
<span id="slider0" style="position: absolute; top: -25px; left: 5%;">L</span>
<span id="slider1" style="position: absolute; top: -25px; left: 25%;">R</span>
<span id="slider2" style="position: absolute; top: -25px; left: 55%;">S</span>
<span id="slider3" style="position: absolute; top: -25px; left: 75%;">N</span>
<span id="slider4" style="position: absolute; top: -25px; left: 95%;">G</span>
</div></center>
<p id="sliders">
<label for="places1">Local:</label><span id="places1">10</span><span>%</span><br/>
<label for="places2">Regional:</label><span id="places2">30</span><span>%</span><br/>
<label for="places3">State:</label><span id="places3">30</span><span>%</span><br/>
<label for="places4">National:</label><span id="places4">20</span><span>%</span><br/>
<label for="places5">Global:</label><span id="places5">10</span><span>%</span><br/>
</p>
</div>
<div id="tabs-4">
<p>Please select from the drop-down list.</p>
<select name="benficiary" id="beneficiary">
<option>Children</option>
<option>Youth</option>
<option selected="selected">Sick</option>
<option>Parents</option>
<option>Women</option>
<option>Men</option>
<option>Elderly</option>
<option>Underpriveleged</option>
<option>Victims</option>
<option>Animals</option>
<option>Community</option>
<option>Environment</option>
<option>Disabled</option>
</select>
<input id="keyword">
<p>Optionally, use the search box to further specify an item.</p>
</div>
<div id="tabs-5">
<p>Please drag and drop these items to rank your preferences.</p>
<ul class="w3-ul w3-card-4 w3-blue" id="sortable3">
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Individual Donors</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Institutional Funds</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Philanthropic Trusts</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Government Services</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Legacies & Bequests</li>
<li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Social Enterprises</li>
</ul>
</div>
</div>
</div>
<div class="w3-twothird">
<h5><i class="fas fa-chart-pie fa-fw"></i> Your Giving Portfolio</h5>
<div class="w3-third">
<p><strong>Settings</strong></p>
<p>Use the controls to set the number of causes you'd like to support and the monthly gift.</p>
<p>The portfolio will automatically update.</p>
<label>Number of Causes = </label>
<span type="text" id="SlotsText" size="1">14</span><br>
<input type="range" id="SlotsSlider" value="14" min="1" max="25" onChange="updateInput();"><br>
<br>
<label>Monthly Gift = $</label><input type="text" id="SpendText" size="3" value="100" onChange="updateInput();">
<br><br>
<label>Flex Fund Share = </label>
<span type="text" id="FlexText" size="1">25</span><label>%</label><br>
<input type="range" id="FlexSlider" value="25" min="15" max="80" step="5" onChange="updateInput();"><br>
<br>
<label for="Follow">Following:</label>
<select name="Follow" id="FollowName" onChange="updateInput();">
<option value="Katy-Perry">Katy Perry</option>
<option value="GiveWell">GiveWell</option>
<option value="Bill-Gates">Bill Gates</option>
<option value="Dalai-Lama">Dalai Lama</option>
<option value="Patagonia">Patagonia</option>
<option value="Prince-Harry">Prince Harry</option>
</select>
<br><br>
<label>Follow Fund Share = </label>
<span type="text" id="FollowText" size="1">10</span><label>%</label><br>
<input type="range" id="FollowSlider" value="10" min="0" max="80" step="5" onChange="updateInput();"><br>
</div>
<div class="w3-twothird">
<div id='portfolio-chart-treemap' style="width: 550px; height: 450px;" onclick='drawChart();'>Loading ...</div>
</div>
</div>
</div>
</div>
<hr>
<div class="w3-row-padding w3-margin-bottom">
<h5><i class="fas fa-bullhorn fa-fw"></i> Your Community Engagement</h5>
<div class="w3-quarter">
<div class="w3-container w3-purple w3-padding">
<div class="w3-left"><i class="fas fa-comment w3-xxlarge"></i></div>
<div class="w3-right">
<h3>52</h3>
</div>
<div class="w3-clear"></div>
<h4>Messages</h4>
</div>
</div>
<div class="w3-quarter">
<div class="w3-container w3-blue w3-padding">
<div class="w3-left"><i class="fas fa-trophy w3-xxlarge"></i></div>
<div class="w3-right">
<h3>11</h3>
</div>
<div class="w3-clear"></div>
<h4>Challenges</h4>
</div>
</div>
<div class="w3-quarter">
<div class="w3-container w3-teal w3-padding">
<div class="w3-left"><i class="fas fa-share-alt w3-xxlarge"></i></div>
<div class="w3-right">
<h3>23</h3>
</div>
<div class="w3-clear"></div>
<h4>Shares</h4>
</div>
</div>
<div class="w3-quarter">
<div class="w3-container w3-orange w3-text-white w3-padding">
<div class="w3-left"><i class="fas fa-users w3-xxlarge"></i></div>
<div class="w3-right">
<h3>50</h3>
</div>
<div class="w3-clear"></div>
<h4>Followers</h4>
</div>
</div>
</div>
<div class="w3-container">
<h5>Recent Followers</h5>
<ul class="w3-ul w3-card-4 w3-white">
<li class="w3-padding-16">
<img src="w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Mike</span><br>
</li>
<li class="w3-padding-16">
<img src="w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Jill</span><br>
</li>
<li class="w3-padding-16">
<img src="w3images/avatar2.png" class="w3-left w3-circle w3-margin-right" style="width:35px">
<span class="w3-xlarge">Jane</span><br>
</li>
</ul>
</div>
<hr>
<div class="w3-container">
<h5>Recent Comments</h5>
<div class="w3-row">
<div class="w3-col m2 text-center">
<img class="w3-circle" src="w3images/avatar2.png" style="width:96px;height:96px">
</div>
<div class="w3-col m10 w3-container">
<h4>John <span class="w3-opacity w3-medium">Sep 29, 2020, 9:12 PM</span></h4>
<p>Keep up the GREAT work! I am cheering for you!! Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><br>
</div>
</div>
<div class="w3-row">
<div class="w3-col m2 text-center">
<img class="w3-circle" src="w3images/avatar2.png" style="width:96px;height:96px">
</div>
<div class="w3-col m10 w3-container">
<h4>Bo <span class="w3-opacity w3-medium">Sep 28, 2020, 10:15 PM</span></h4>
<p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><br>
</div>
</div>
</div>
<br>
<!-- Footer -->
<footer class="w3-container w3-padding-16 w3-light-grey">
<p>Powered by <a href="https://www.w3schools.com/w3css/default.asp" target="_blank">w3.css</a></p>
</footer>
<!-- End page content -->
</div>
</body>
</html>