-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
318 lines (260 loc) · 12.1 KB
/
index.html
File metadata and controls
318 lines (260 loc) · 12.1 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
<!DOCTYPE html>
<html ng-app>
<head>
<!-- info pane? legends connected to map, filters-->
<!--WATCH THE TUTORIALS ON CARTODB ACADEMY-->
<!--http://academy.cartodb.com/courses/03-cartodbjs-ground-up/lesson-3.html-->
<title>
Westside Investment Map
</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<!--link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/themes/css/cartodb.css" type="text/css" /-->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" href="bootstrap.css" />
<link rel="stylesheet" href="semantic.min.css" />
<link rel="stylesheet" href="http://academy.cartodb.com/css/cdbui.css" type="text/css" />
<link rel="stylesheet" href="cartoDBstyle.css" type="text/css" />
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="http://libs.cartocdn.com/cartodb.js/v3/cartodb.js" type="text/javascript"></script>
<style type="text/css">
</style>
<style type="cartocss/html" id="labels">
/*label the dots with organization name*/
#blank_westside_fund_recipients::labels {
text-name: [project]; /*changed*/
text-face-name: 'DejaVu Sans Book';
text-size: 10;
text-label-position-tolerance: 10;
text-fill: #000;
text-halo-fill: #FFF;
text-halo-radius: 1;
text-dy: -10;
text-allow-overlap: true;
text-placement: point;
text-placement-type: simple;
}
</style>
<style type="cartocss/html" id="bubble">
/** bubble visualization */
#blank_westside_fund_recipients{
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1.5;
marker-line-opacity: 1;
marker-placement: point;
marker-multi-policy: largest;
marker-type: ellipse;
marker-fill: #000000;
marker-allow-overlap: true;
marker-clip: false;
}
#blank_westside_fund_recipients [ amount <= 497772] {
marker-width: 25.0;
}
#blank_westside_fund_recipients [ amount <= 405000] {
marker-width: 23.3;
}
#blank_westside_fund_recipients [ amount <= 355720] {
marker-width: 21.7;
}
#blank_westside_fund_recipients [ amount <= 190220] {
marker-width: 20.0;
}
#blank_westside_fund_recipients [ amount <= 115000] {
marker-width: 18.3;
}
#blank_westside_fund_recipients [ amount <= 62535] {
marker-width: 16.7;
}
#blank_westside_fund_recipients [ amount <= 55000] {
marker-width: 15.0;
}
#blank_westside_fund_recipients [ amount <= 28000] {
marker-width: 13.3;
}
#blank_westside_fund_recipients [ amount <= 25000] {
marker-width: 11.7;
}
#blank_westside_fund_recipients [ amount <= 20000] {
marker-width: 10.0;
}
</style>
<style type="cartocss/html" id="simple">
/*no color code, no size*/
#blank_westside_fund_recipients{
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1.5;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 20;
marker-fill: #000000;
marker-allow-overlap: true;
}
</style>
<style type="cartocss/html" id="category">
/** category visualization */
#blank_westside_fund_recipients {
marker-fill-opacity: 0.9;
marker-line-color: #FFF;
marker-line-width: 1.5;
marker-line-opacity: 1;
marker-placement: point;
marker-type: ellipse;
marker-width: 20;
marker-allow-overlap: true;
}
#blank_westside_fund_recipients[status="In Progress"] { /*maybe TODO. not yet, but: change based on fundingEnds wrt today's date using jquery.filter.css if cicily will not be editing the google spreadsheet*/
marker-fill: gold;
}
#blank_westside_fund_recipients[status="Completed"] {
marker-fill: #229A00; /*edit this color*/
}
#blank_westside_fund_recipients[status="Discontinued"] {
marker-fill: #cccccc; /*edit this color*/
}
</style>
</head>
<body onClick="PassContent()">
<!--legend for color code-->
<style>
.nav-tabs{
height: 600px;
width: 200px;
position: absolute;
z-index: 9999;
top: 3%;
left: 80%;}
.tab-content{
height: 600px;
width: 200px;
position: absolute;
z-index: 9999;
top: 10%;
left: 80%;
}
</style>
<script>
$(function () {
$('#myTab a:last').tab('show')
})
</script>
<div id="map"></div>
<div id="menu_content" class="collapse in">
<button id="filters-toggle" class="sidebar-show" data-toggle="collapse" data-target="#menu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div id="menu" class="layer_selector col-lg-4 pull-left collapse in">
<p><strong>Sectors</strong></p>
<form id="sectors">
<input type="checkbox" id="education" checked><label for="checkbox"> Education</label><br>
<input type="checkbox" id="transportation" checked><label for="checkbox"> Transportation</label><br>
<input type="checkbox" id="environment" checked><label for="checkbox"> Environment</label><br>
<input type="checkbox" id="health" checked><label for="checkbox"> Healthy Living</label><br>
<input type="checkbox" id="housing" checked><label for="checkbox"> Housing</label><br>
<input type="checkbox" id="redevelopment" checked><label for="checkbox"> Redevelopment</label><br> <!--changed-->
<input type="checkbox" id="jobs" checked><label for="checkbox"> Job Training</label><br>
<input type="checkbox" id="leadership" checked><label for="checkbox"> Leadership Training</label><br> <!-- changed-->
<input type="checkbox" id="youthSector" checked><label for="checkbox"> Youth Programming</label><br>
<input type="checkbox" id="crime" checked><label for="checkbox"> Crime and Safety</label>
</form>
<p><strong>Participants</strong></p>
<form id="beneficiaries">
<input type="checkbox" id="teens" checked><label for="checkbox"> Youth 12-17 Years</label><br>
<input type="checkbox" id="seniors" checked><label for="checkbox"> Senior Citizens</label><br>
<input type="checkbox" id="under12" checked><label for="checkbox"> Youth Under 12</label><br>
<input type="checkbox" id="adults" checked><label for="checkbox"> Adults</label><br>
<input type="checkbox" id="community" checked><label for="checkbox"> Community at Large</label><br>
</form>
<p><strong>Toggle Labels</strong></p>
<input type="radio" id="labelOn" name="labels" checked><label for="radio">On</label><br>
<input type="radio" id="labelOff" name="labels" unchecked><label for="radio">Off</label><br>
<p><strong>Toggle Color Code</strong></p>
<input type="radio" id="colorOn" name="colorcode" checked><label for="radio">On</label><br>
<input type="radio" id="colorOff" name="colorcode" unchecked><label for="radio">Off</label><br>
<p><strong>Toggle Bubble Size</strong></p>
<input type="radio" id="bubbleOn" name="bubblesize" unchecked><label for="radio">On</label><br>
<input type="radio" id="bubbleOff" name="bubblesize" checked><label for="radio">Off</label><br>
</div><!--menu_content-->
</div><!--menu-->
</div><!--col-lg-4-->
<div id="right-pane" class="col-lg-6 pull-right collapse in">
<button id="map-filters-toggle" class="sidebar-show" data-toggle="collapse" data-target="#infoPane">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div id="infoPane" class="cartodb-popup-customize" >
<div class="ui raised segment collapse in" id="InfoPane-toggle">
<div class="cartodb-popup-content passcontent">
<div class="ui column">
<div id="SectorRibbon" class="ui inverted green button centered column" style="padding:.5em 1em 1em 1em;">
<i class="icon" id="SectorIcon"></i>
<p class="colllapse in" id="orgname"></p>
<p id="SectorLabelText">{{sector}}</p>
</div>
<hr>
<h4 data-toggle="collapse" data-target="#projectName-pass" style="font-size:20px;"><strong>Project Name</strong></h4>
<p id="projectName-pass"></p>
<h4 data-toggle="collapse" data-target="#amountreceived" style="font-size:20px;"><strong>Amount Received</strong></h4>
<p id="amountreceived"></p>
<h4 data-toggle="collapse" data-target="#description-pass" style="font-size:20px;"><strong>Description</strong></h4>
<p id="description-pass"></p>
<h4 data-toggle="collapse" data-target="#participants" style="font-size:20px;"><strong>Participants</strong></h4>
<p id="participants"></p>
<h4 data-toggle="collapse" data-target="#funder" style="font-size:20px;"><strong>Funders</strong></h4>
<p id="funder-pass"></p>
</div><!--raised segment-->
</div><!--passcontent-->
<div id='colorCode' class='cartodb-legend custom' style="margin-top:5%;">
<div class="legend-title">Color Key</div>
<ul>
<li>
<div class="bullet" style="background:gold"></div>
In Progress
</li>
<li>
<div class="bullet" style="background:#229A00"></div>
Funding period ended
</li>
<li>
<div class="bullet" style="background:#cccccc"></div>
Discontinued
</li>
</ul>
</div><!--colorcode-->
</div>
<!-- <div class="cartodb-popup-tip-container"></div> --> <!--this adds a little tool tip carrot-->
</div><!--infoPane-->
</div><!--right-pane-->
</div><!--row-->
<!--Menu on the left-->
</div>
<div id= "toolTip"class="cartodb-tooltip-content-wrapper">
<div class="cartodb-tooltip-content">
<h4>Organization</h4>
<p id="org"></p>
<h4>Project Name</h4>
<p id="projectTip"></p>
<h4>Funder</h4>
<p id="toolTipFunder"></p>
<h4>Amount Received</h4>
<p id="amt"></p>
<h4>Sector</h4>
<p id="toolTipSector"></p>
<h4>Participants</h4>
<p id="toolTipBenif"></p>
</div>
</div>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="bootstrap.js"></script>
<script src="semantic.min.js"></script>
<script src="script.js"></script>
</body>
</html>