forked from Code4HR/previous-landing
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
448 lines (347 loc) · 19.2 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
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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
<!DOCTYPE html>
<html lang="en-US">
<head>
<!-- Pauls change -->
<meta charset="utf-8">
<title>Code for Kansas City | A Code for America Brigade</title>
<meta name="description" content="Kansas City locals helping KC area governments open their data and create meaningful apps">
<link rel="shortcut icon" href="favicon.ico" />
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="fitvids.js"></script>
<script>
$(document).ready(function(){
$("#cfa").fitVids();
});
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl])
_gaq.push(['_setAccount', 'abcde']);
_gaq.push(['_setDomainName', 'codeforkansascity.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target=".navbar">
<!-- NAVBAR
================================================== -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Code for KC (#KCBrigade)</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="#">Home</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#meetup">Events</a></li>
<li><a href="#contact">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Get Involved <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://www.meetup.com/kcbrigade"><span class="glyphicon glyphicon-calendar"></span> At Meetups</a></li>
<li><a href="https://plus.google.com/communities/100955515676911241506"><span class="glyphicon glyphicon-plus"></span> On Google+</a></li>
<li><a href="http://webchat.freenode.net?channels=codeforkc&uio=d4"><span class="glyphicon glyphicon-transfer"></span> In #IRC</a></li>
<li class="divider"></li>
<li><a href="https://github.com/luminopolis"><span class="glyphicon glyphicon-tower"></span> Our Code</a></li>
<!--
<li class="divider"></li>
list individual projects here <li><a href="#">Separated link</a></li>
-->
</ul>
</li>
</ul>
<!-- <ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div>-->
<!-- /.navbar-collapse -->
</nav>
<!-- fork me banner, top right
================================================== -->
<a class="forkme" href="https://github.com/luminopolis/codeforkc.org"><img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<!-- Carousel - only using one at the moment
================================================== -->
<div id="banner" class="carousel slide" data-ride="carousel" data-interval="10000">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#banner" data-slide-to="0" class="active"></li>
<li data-target="#banner" data-slide-to="1"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<div class="container">
<div class="jumbotron col-md-12">
<h1>Welcome to Code for KC!</h1>
<p class="lead">
We're the Kansas City area chapter of <a target="_blank" href="http://brigade.codeforamerica.org">Code for America Brigade</a>, a group of civic-minded folks in the KC metro area hoping to enhance our communities through diverse skillsets.</p>
<br />
<a class="btn btn-danger btn-lg" href="http://www.meetup.com/kcbrigade">Join Our Meetups</a>
</div>
</div>
</div>
</div>
<a class="left carousel-control" href="#banner" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#banner" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div><!-- /.carousel -->
<div class="container marketing clearleft">
<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-sm-4">
<img src="images/captain.png" alt="CfA Brigade Captain" />
<h2>Attend Meetups</h2>
<p>Casual weekly meetups. <strong>Hack Nights</strong> & <strong>Yack Nights</strong>.</p>
<a class="btn btn-primary btn-lg" href="#meetup">Details »</a>
</div><!-- /.span4 -->
<div class="col-sm-4">
<img src="images/community.png" alt="Community" />
<h2>Discuss Online</h2>
<p>What we're doing now and what's next.</p>
<a class="btn btn-primary btn-lg" href="#groups">Details »</a>
</div><!-- /.span4 -->
<div class="col-sm-4">
<img src="images/cfa_logo_greyscale.png" alt="Code for America" />
<h2>Get Inspired</h2>
<p>Code for America is our Mothership.
</p>
<a class="btn btn-primary btn-lg" href="#cfa">Details »</a>
</div><!-- /.span4 -->
</div><!-- /.row -->
<!-- START THE FEATURETTES -->
<div id="projects">
<hr class="featurette-divider">
<div class="featurette">
<div class="col-sm-12">
<h2 class="featurette-heading">Some Current Projects We Work On:</h2>
<p class="lead">
<dl class="lead">
<dt>FluShot Finder App</dt>
<dd>We’ve built an app to let Kansas Citians quickly and easily find the
nearest place to get a flu vaccination. It’s nearly complete -- just some data collection help is
needed in aggregating vaccination clinic information via sites such as http://vaccinefinder.org/.<br />
Skills needed: Data entry, jQuery, HTML5, Bootstrap<br />
(<a href="http://hot.codeforkc.org">Site</a>)
(<a href="https://github.com/codeforkansascity/flushots2013">Code</a>)
</dd>
<dt>311 App:</dt><dd> KCMO has approached Code for KC about improving their 311
public service system, which integrates with the city’s open data
portal at http://data.kcmo.gov. We are working on a citizen engagement
app that will display new and resolved 311 issues, produce a message
of the day and increase access to other related 311 information.
This project is a single web page using jQuery to access KCMO’s 311
data, and a Google Doc.</dd>
<dt>Open Data/Survey</dt>
<dd>Help build a inventory of open datasets for the Kansas City area.
We need people willing to find, research, and catalog datasets.
Data will be stored in a google spread sheet, and moved a more
accessible location in the future.<br />
Skills needed: Research, data entry </dd>
<dt>
</dl>
<ul class="lead">
<li>
(LIVE) Bizfriend.ly
(<a href="http://bizfriend.ly/">Site</a>)
(<a href="https://github.com/codeforamerica/bizfriendly-web">Code</a>)</li>
<li>
(LIVE) Kansas City's Local Wiki
(<a href="http://wikikc.org/">Site</a>)</li>
<li>
(pre-beta) Teardown Tattler
(<a href="http://teardowntattler.com">Demo</a>)
(<a href="https://github.com/luminopolis/teardown-tattler">Code</a>)</li>
<li>
(pre-beta) Awesome Transit App
(<a href="http://look.itsab.us:8080/">Demo</a>)
(<a href="#">Code</a>)</li>
</ul>
</div>
<!--
<div class="col-sm-6">
<h2 class="featurette-heading">Or help on Other Projects:</h2>
<iframe src="http://codeforamerica.org/geeks/civicissues/widget?labels=help wanted,enhancement" width="100%" height="600" frameBorder="0"></iframe>
</div>
-->
</div>
</div>
<div id="cfa">
<hr class="featurette-divider">
<div class="featurette">
<a href="http://brigade.codeforamerica.org/">
<img name="cfa" class="featurette-image pull-right" src="images/cfa_brigade_logo.png" alt="Code for America Brigade" />
</a>
<h2 class="featurette-heading">Want To Help KC?</h2>
<p class="lead">We're the KC metro's <a href="http://brigade.codeforamerica.org/">Code for America Brigade</a>,
a group of civic-minded geeks who volunteer our talents to projects that improve how our local governments and community organizations use the web.
</p>
<p class="lead">Brigade is about <strong>action</strong> & you're here because you are someone who takes action.
<a href="http://brigade.codeforamerica.org/pages/activities">See what kind of things brigades do</a>, and stop by a Meetup to see if Brigade is right for you.</a></p>
<h3>Still Not Sure? Watch This:</h3>
<iframe width="1280" height="720" src="//www.youtube.com/embed/n4EhJ898r-k" frameborder="0" allowfullscreen></iframe>
</div>
</div>
<div id="meetup">
<hr class="featurette-divider">
<div class="featurette">
<a href="http://www.meetup.com/kcbrigade">
<img name="meetup" class="featurette-image pull-left" src="images/meetup.jpg" alt="Meetup.com" />
</a>
<!--<iframe width="225" height="570" src="http://meetu.ps/24X1wF" frameborder="0"></iframe>-->
<h2 class="featurette-heading">We Meet Often. <span class="muted">Hack With Us.</span></h2>
<p class="lead">We usually have four meetups per month. Three are <strong>Hack Nights</strong> where we help build civic apps and open data. One per month is a <strong>Yack Night</strong> where we get to know each other and our local govs. View our <a href="http://www.meetup.com/kcbrigade">
Meetup.com group</a> for upcoming sessions. We meet every
Monday where we hack (develop) our projects,
or brainstorm on current issues and activities around the KC metro. It's a lot of fun, with great people and (usually) food & drink.</p>
</div>
</div>
<div id="groups">
<hr class="featurette-divider">
<div class="featurette">
<a href="https://groups.google.com/a/codeforamerica.org/forum/#!forum/c4hrva">
<img name="groups" class="featurette-image pull-right" src="images/google_groups.png" alt="Google Groups" />
</a>
<h2 class="featurette-heading">We Discuss Things Online. <span class="muted">Join & Introduce Yourself.</span></h2>
<p class="lead">
Can't make it to a meetup? No problem. We collaborate on projects, ask for help, and post wins
to our <a href="https://plus.google.com/communities/100955515676911241506">Google+ Group</a>. We welcome anyone to sign-up... you might just see something you're interested in helping with. </p>
</div>
</div>
<div id="sponsors">
<hr class="featurette-divider">
<div class="featurette">
<img name="groups" class="featurette-image pull-left" src="images/google-fiber.png" alt="Google Fiber Logo" />
<h2 class="featurette-heading">Our Sponsor</h2>
<p class="lead">
We would like to thank our sponsor Google Fiber for their support of the Kansas City Brigade and our effort in helping bridge the digital divide.
</div>
</div>
<div id="contact">
<hr class="featurette-divider">
<div class="featurette">
<img name="contact" class="featurette-image pull-right" src="">
<h2 class="featurette-heading">Want Even More Info? <span class="muted">Get in touch.</span></h2>
<p class="lead">Our Brigade Captain is Jase Wilson (Find him on <a href="http://linkedin.com/in/luminopolis">Linkedin</a> and <a href="https://twitter.com/luminopolis">@luminopolis</a> on Twitter).</p>
</div>
</div>
<hr class="featurette-divider">
<!-- /END THE FEATURETTES -->
<!-- FOOTER -->
<footer>
<p class="pull-right"><a href="#">Back to top</a></p>
<p>Maintained by Code for KC. Forked from <a href="http://codeforhamptonroads.org">Code for Hampton Roads.</a> Some Icons Provided by <a href="http://thenounproject.com">The Noun Project</a>.</p>
</footer>
</div><!-- /.container -->
</body>
<script src="bootstrap-tooltip.js"></script>
<script>
$(document).ready(function(){
//GLOBAL VARIABLES HERE//
var apiKey = "2ac783a2a6ae44852301b2d5672",
meetupGroupUrl = "KCBrigade";
var memberList = new Array();
//get the next event
$.getJSON("http://api.meetup.com/2/events?status=upcoming&order=time&limited_events=False&group_urlname=" + meetupGroupUrl+ "&desc=false&offset=0&format=json&page=20&fields=&sig_id=7997287&sig=1e967902e7837fbd5625d4397b299dc608a6943d&callback=?",function(upcomingData) {
eventTime = upcomingData.results[0].time - 900000; //checkins display 15 minutes ahead of time.
currentTime = new Date().getTime();
//currentTime = eventTime + 1 //testing value
if (upcomingData.results[0].duration) {
eventEndTime = eventTime + upcomingData.results[0].duration; //if a specific end time is set for the given event, it is used.
} else {
eventEndTime = eventTime + 60000*60*3; //else, the event is assumed to be three hours long.
}
eventId = upcomingData.results[0].id;
//eventId = "113850802";
if (currentTime >= eventTime && currentTime < eventEndTime) {
var memberbox = "<div class='memberbox'></div>";
$(".carousel-caption").append(memberbox);
$(".memberbox").hide();
function showThumbnails() {
//get the checkin data for the next event
$.getJSON("https://api.meetup.com/2/checkins?key="+apiKey+"&sign=true&event_id="+eventId+"&page=20&callback=?",function(checkinData) {
howMany = checkinData.meta.count;
if (howMany === 0) {
$(".memberbox").html("<h2>Nobody has checked in yet.</h2>");
$(".memberbox").slideDown();
} else if (howMany >= 1) {
$.each(checkinData.results, function(i,checkinData) {
$.getJSON("https://api.meetup.com/2/member/"+checkinData.member_id+"?key="+apiKey+"&&sign=true&page=20&callback=?", function(memberData) {
var memberName = memberData.name,
toolTips = "<a class='tip' href='#' data-toggle='tooltip' data-placement='bottom' data-original-title='"+memberData.name+"'>",
memberPix = memberData.photo.thumb_link,
memberThumb = toolTips +"<img class='pix-thumb' src='"+memberPix+"' alt='"+ memberData.name +"'/></a>";
if (memberList.indexOf(memberName) === -1) {
memberList.push(memberName);
$(memberThumb).appendTo($(".memberbox"));
console.log(memberList);
} else {
//do nothing
}
$('.tip').tooltip();
});
});
//event information
$.getJSON("https://api.meetup.com/2/events?key="+apiKey+"&sign=true&event_id="+eventId+"&page=20&callback=?", function(eventData) {
var eventName = eventData.results[0].name,
eventLocation = eventData.results[0].venue.name,
eventStAddress = eventData.results[0].venue.address_1,
eventCity = eventData.results[0].venue.city,
eventState = eventData.results[0].venue.state,
eventURL = eventData.results[0].event_url;
$(window).load(function(){
var memberCount = memberList.length,
eventCheckin = "<p id='checkins'>"+memberCount+" Civic Hackers are checked in at <a href='http://maps.google.com/maps?q="+eventStAddress+" "+eventCity+" "+eventState+"'>"+eventLocation+"</a> for <a href='"+eventURL+"'>"+eventName+"</a>.</p>";
$(eventCheckin).appendTo($(".memberbox"));
$(".memberbox").slideDown();
});
});
}
});
}
showThumbnails();
console.log(memberList);
console.log(memberList.length);
} else {
console.log("Nothing to see here.");
}
});
});
</script>
</html>