From 4db6a94af3be0c2c3902e0f0a970a1d7163d2ce7 Mon Sep 17 00:00:00 2001 From: Michael Deeb Date: Wed, 26 Jun 2024 12:29:51 -0400 Subject: [PATCH] fix: bad javascript for the meetup event data --- assets/js/meetup.js | 6 ++- index.html | 92 +++++++++++++++++++-------------------------- 2 files changed, 43 insertions(+), 55 deletions(-) diff --git a/assets/js/meetup.js b/assets/js/meetup.js index 5ec6c8b..d09c18f 100644 --- a/assets/js/meetup.js +++ b/assets/js/meetup.js @@ -26,6 +26,7 @@ document.addEventListener("DOMContentLoaded", function (event) { // `${moment(futureMeetup.time).format("dddd, MMMM D, YYYY @ h:mm a")}` : // `Tonight @ ${moment(nextMeetup.time).format('h:mm a')}` //) + $("#next-name").html(nextMeetup.name); if (nextMeetup.is_online_event) { $("#next-location").html("Online event"); } else { @@ -45,10 +46,11 @@ document.addEventListener("DOMContentLoaded", function (event) { $("#future-meetup-date").html( `${moment(futureMeetup.time).format("dddd, MMMM D, YYYY @ h:mm a")}`, ); + $("#future-name").html(futureMeetup.name); if (futureMeetup.is_online_event) { - $("#next-location").html("Online event"); + $("#future-location").html("Online event"); } else { - $("#next-location").html( + $("#future-location").html( ` ${futureMeetup.venue.address_1} `, diff --git a/index.html b/index.html index 7a86304..6bc1e67 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ --- layout: default redirect_from: - - /contact.html +- /contact.html ---
@@ -30,44 +30,30 @@

Join us at one of our upcoming project nights!

+


do-gooders will be there — what about you?
- RSVP on Meetup » + RSVP on Meetup + »

+


do-gooders will be there — what about you?
- RSVP on Meetup » + RSVP on Meetup + »

- See all upcoming events » + See all + upcoming events »

@@ -114,17 +100,17 @@

Projects


- +
- {% include project-card.html project_slug="data-portal" %} {% include - project-card.html project_slug="anc-finder" %} {% include project-card.html - project_slug="open-election-map" %} + {% include project-card.html project_slug="data-portal" %} {% include + project-card.html project_slug="anc-finder" %} {% include project-card.html + project_slug="open-election-map" %} -
+ @@ -135,30 +121,30 @@

Projects

About

-
-

- Founded in 2012, Civic Tech DC is a non-partisan, non-political group - of volunteer civic hackers working together to solve local issues in - the Washington, DC area and helping people engage with the city. We - host twice-monthly hacknights and other events to gather, discuss, and - get stuff done. -

-

- We're looking to bring people with all different skill sets together - to maximize our potential. Civic hackers aren't just developers — - they're journalists, lawyers, designers, and interested citizens in - general. The more community participation, the better. -

-

- To contact us, please email team@civictechdc.org. -

-
-
-
-
-
-

-
+
+

+ Founded in 2012, Civic Tech DC is a non-partisan, non-political group + of volunteer civic hackers working together to solve local issues in + the Washington, DC area and helping people engage with the city. We + host twice-monthly hacknights and other events to gather, discuss, and + get stuff done. +

+

+ We're looking to bring people with all different skill sets together + to maximize our potential. Civic hackers aren't just developers — + they're journalists, lawyers, designers, and interested citizens in + general. The more community participation, the better. +

+

+ To contact us, please email team@civictechdc.org. +

+
+
+
+
+
+

+
@@ -171,4 +157,4 @@

About

- + \ No newline at end of file