Skip to content

Commit b7b24c3

Browse files
committed
Updated sponsors, filtering meetups to VegasJS events.
1 parent 3e5542b commit b7b24c3

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
<div id="next-meetup"></div>
2727
<p>We meet on the third Tuesday of every month to talk about JavaScript, node.js and more.
2828
Developers of all levels are welcome!.</p>
29-
Proudly sponsored by <a href="http://www.nic.vegas/"><img class="sponsor" src="images/dotVegas.png"></a>
30-
and <a href="http://www.zappos.com">Zappos.com</a>.
29+
Proudly sponsored by <a href="http://www.nic.vegas/"><img class="sponsor" src="images/dotVegas.png"></a>,
30+
<a href="http://theironyard.com/locations/las-vegas/">The Iron Yard</a> and <a href="http://www.wedgies.com">Wedgies.com</a>.
3131
</div>
3232

3333
<a name="talks"></a>

javascript/meetup.js

+19-12
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,26 @@ $(function() {
2121
});
2222
return templateCopy;
2323
}
24-
2524
$.getJSON(signedUrl + "&callback=?", function(data) {
26-
var meetup = data && data.results && data.results[0];
27-
if ( meetup ) {
28-
var date = new Date(meetup.time);
29-
var data = {
30-
month: months[ date.getMonth() ],
31-
day: date.getDate(),
32-
url: meetup.event_url,
33-
count: meetup.yes_rsvp_count,
34-
name: meetup.name
35-
};
36-
$('#next-meetup').html( notMustache( meetupTemplate, data ) ).slideDown();
25+
if (data && data.results) {
26+
var meetup = null;
27+
for (var i=0;i<data.results.length;i++) {
28+
if ( data.results[i].name.match(/VegasJS/i) ) {
29+
meetup = data.results[i];
30+
break;
31+
}
32+
}
33+
if ( meetup ) {
34+
var date = new Date(meetup.time);
35+
var data = {
36+
month: months[ date.getMonth() ],
37+
day: date.getDate(),
38+
url: meetup.event_url,
39+
count: meetup.yes_rsvp_count,
40+
name: meetup.name
41+
};
42+
$('#next-meetup').html( notMustache( meetupTemplate, data ) ).slideDown();
43+
}
3744
}
3845
});
3946

0 commit comments

Comments
 (0)