diff --git a/css/style.css b/css/style.css index 119edd0..79ba296 100644 --- a/css/style.css +++ b/css/style.css @@ -197,6 +197,19 @@ text-align: center; } + + /* Meetup + -------------------------------------------------- */ + + .meetup{width:60%; position:relative; margin:auto; clear:both} +.meetup h3{float:left; width:100%; text-align:center; margin:4% 0px} +.meetup span { margin-left:1%; border: 2px solid; + border-radius:100px; font-size:18px; padding:0px 2%;} +.meetup #description {float:left;} +.meetup #status{width:100%; float:left; text-align:center; margin-bottom:2%} + + + /* RESPONSIVE CSS -------------------------------------------------- */ diff --git a/index.html b/index.html index 7ecb64c..ef4cc32 100644 --- a/index.html +++ b/index.html @@ -256,10 +256,12 @@

We Meet Often. Come Join Us.< href="https://www.facebook.com/CodeForFTL"> Facebook to learn more about events and projects.

-
+ +
+

@@ -344,6 +346,8 @@

Ryan Gates

fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function (f) { t._e.push(f) } }); }(document, "script", "twitter-wjs")); + + diff --git a/js/meetup/meetup.js b/js/meetup/meetup.js new file mode 100644 index 0000000..4d33c3d --- /dev/null +++ b/js/meetup/meetup.js @@ -0,0 +1,35 @@ +$(document).ready(function(){ + $title = $('#title'); + $meetup = $('.meetup'); + + + $.ajax({ + type:"GET", + url:"https://api.meetup.com/code-for-FTL/events?&sign=true&photo-host=public&page=20", + success: function(response) { + + $(response.data).each(function(index, value){ + var getdate = new Date(value.time).toString().substring(0,16); + var gettime = new Date(value.time).toLocaleTimeString(); + $meetup.append( + + "

"+ value.name +"

\ +
"+"rsvp:"+value.yes_rsvp_count+ " " + getdate +" "+gettime+"
\ +

"+value.description + "

" + + + ); + + + }); + + + + + + }, + + dataType: 'jsonp', + }); + +});