-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.html
132 lines (111 loc) · 4.06 KB
/
events.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
<!DOCTYPE HTML>
<html>
<head>
<title>TechDiversified - Upcoming Events</title>
<link rel="icon" type="image/ico" href="favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<!--[if lte IE 8]>
<script src="css/ie/html5shiv.js"></script><![endif]-->
<script src="js/jquery.min.js"></script>
<script src="js/mustache.js"></script>
<script src="js/jquery.poptrox.min.js"></script>
<script src="js/skel.min.js"></script>
<script src="js/static-pages.js"></script>
<noscript>
<link rel="stylesheet" href="css/skel-noscript.css"/>
<link rel="stylesheet" href="css/style.css"/>
</noscript>
<link rel="stylesheet" href="css/static.css"/>
<!--[if lte IE 8]>
<link rel="stylesheet" href="css/ie/v8.css"/><![endif]-->
</head>
<body>
<div class="expando">
<!-- Nav -->
<nav id="nav" style="top: 0px;position:relative">
<!-- Logo -->
<h1 id="logo"><a href="http://techdiversified.org"><img src="images/td_logo_hires.png"/><span class="logo_text">tech diversified</span></a>
</h1>
<div id="headerMenuToggle" class="threeLines" style="float:right" class="clearfix">
<div class="horizontal-bar"></div>
<div class="horizontal-bar"></div>
<div class="horizontal-bar"></div>
</div>
<ul id="headerItems">
</ul>
</nav>
<div id="rightSideBar">
<div id="sideBarToggle" class="threeLines" style="float:right" class="clearfix">
<div class="horizontal-bar"></div>
<div class="horizontal-bar"></div>
<div class="horizontal-bar"></div>
</div>
<ul id="right-nav-menu">
</ul>
</div>
<!-- Main -->
<section id="staticWrapper" class="main">
<div class="static-inner">
<header>
<h2>Upcoming Events</h2>
</header>
<div class="content clearfix">
<div class="half-width textBlock">
<p>
Tech Diversified is a Seattle-based nonprofit program striving to improve representation in the tech industry for people of color. We provide adults (18+) with free resources such as technical workshops, career counseling, one-on-one mentoring and networking meet-ups.
</p>
</div>
<div class="textBlock">
<table id="eventList" style="width:auto;">
</table>
</div>
</div>
</div>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<!--
Social Icons
Use anything from here: http://fortawesome.github.io/Font-Awesome/cheatsheet/)
-->
<ul id="footerItems" class="actions">
</ul>
<!-- Menu -->
<ul class="menu">
<li>© 2014 Tech Diversified. All Rights Reserved.</li>
</ul>
</footer>
</body>
<script>
$( document ).ready(function() {
loadEventsFromMeetup();
});
function loadEventsFromMeetup() {
var url = 'https://api.meetup.com/2/events?&sign=true&photo-host=public&group_urlname=tech-diversified&page=20&key=5350685a4d783d675e4927440431a6c';
$.ajax({ url: url,
crossDomain: true,
jsonp: "callback",
dataType: "jsonp",
}).success(function(data) {
if (data.results.length == 0) {
}else{
//Add date formatting functions here
$.each(data.results, function(idx, item){
item.DateFormatter = function() {
return function(rawDate, render) {
return new Date(parseInt(render(rawDate))).toGMTString();
}
}
});
$.get('templates/eventList.mst', function(template) {
var rendered = Mustache.render(template, data);
$('#eventList').html(rendered);
});
}
});
}
</script>
</html>