forked from jjulian/bmoreonrails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmembers.js
22 lines (20 loc) · 1018 Bytes
/
members.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// http://api.meetup.com/2/members/?_=1358903423986&order=name&group_urlname=bmore-on-rails&offset=0&format=json&page=200&sig_id=5560034&sig=4a5245d524bd4c8e57ad9bf0e0b75e917f14d2b7
function buildMembers() {
$.ajax({
url: "http://api.meetup.com/2/members/?_=1358904482064&order=visited&group_urlname=bmore-on-rails&desc=true&offset=0&format=json&page=200&sig_id=5560034&sig=712a7b2e326836061c3a3735916c09fbd6bbb9c1",
dataType: 'jsonp',
success: function(response) {
_.chain(response.results)
// .each(function(member) { console.log(member.photo && member.photo.thumb_link); })
.filter(function(member) { return member.photo && member.photo.thumb_link; })
.each(function(member) {
$('.members-array').append('<div class="member"><a href="" title="'
+ member.name + '"><img src="'
+ member.photo.thumb_link + '" /></a></div>');
});
}
});
}
$(function() {
buildMembers();
});