File tree 2 files changed +21
-14
lines changed
2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 26
26
< div id ="next-meetup "> </ div >
27
27
< p > We meet on the third Tuesday of every month to talk about JavaScript, node.js and more.
28
28
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 > .
31
31
</ div >
32
32
33
33
< a name ="talks "> </ a >
Original file line number Diff line number Diff line change @@ -21,19 +21,26 @@ $(function() {
21
21
} ) ;
22
22
return templateCopy ;
23
23
}
24
-
25
24
$ . 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 ( / V e g a s J S / 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
+ }
37
44
}
38
45
} ) ;
39
46
You can’t perform that action at this time.
0 commit comments