Skip to content

Commit

Permalink
fix: bad javascript for the meetup event data
Browse files Browse the repository at this point in the history
  • Loading branch information
mikewolfd committed Jun 26, 2024
1 parent 285ad32 commit 4db6a94
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 55 deletions.
6 changes: 4 additions & 2 deletions assets/js/meetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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(
`
<a href="https://www.google.com/maps/search/?api=1&query=${futureMeetup.venue.name}%2C%20${futureMeetup.venue.address_1}%2C%20${futureMeetup.venue.city}%2C%20${futureMeetup.venue.state}" target="_blank">${futureMeetup.venue.address_1}</a>
`,
Expand Down
92 changes: 39 additions & 53 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
redirect_from:
- /contact.html
- /contact.html
---

<div class="">
Expand Down Expand Up @@ -30,44 +30,30 @@ <h2 id="project-nights">Join us at one of our upcoming project nights!</h2>
</div>
<div class="grid-col-6">
<h3 id="next-meetup-date"></h3>
<h4 id="next-name"></h4>
<p id="next-details">
<span id="next-location"></span>
<br />
<span id="next-rsvps"> </span> do-gooders will be there — what about you?
<br />
<a
id="next-rsvp"
target="_blank"
href="https://www.meetup.com/Civic-Tech-DC/"
class="usa-button"
>RSVP on Meetup »</a
>
<a id="next-rsvp" target="_blank" href="https://www.meetup.com/Civic-Tech-DC/" class="usa-button">RSVP on Meetup
»</a>
</p>

<h3 id="future-meetup-date"></h3>
<h4 id="future-name"></h4>
<p id="future-details">
<span id="future-location"></span>
<br />
<span id="future-rsvps"> </span> do-gooders will be there — what about
you?
<br />
<a
id="future-rsvp"
target="_blank"
href="https://www.meetup.com/Civic-Tech-DC/"
class="usa-button"
>RSVP on Meetup »</a
>
<a id="future-rsvp" target="_blank" href="https://www.meetup.com/Civic-Tech-DC/" class="usa-button">RSVP on Meetup
»</a>
</p>
<p>
<strong
><a
id="all-meetup-events"
href="https://www.meetup.com/Civic-Tech-DC/events/"
target="_blank"
>See all upcoming events »</a
></strong
>
<strong><a id="all-meetup-events" href="https://www.meetup.com/Civic-Tech-DC/events/" target="_blank">See all
upcoming events »</a></strong>
</p>
</div>
<div class="grid-col-6">
Expand Down Expand Up @@ -114,17 +100,17 @@ <h2 id="projects">Projects</h2>
</p>
<br />


</div>


<div class="grid-row grid-gap">

{% 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" %}

</div>
</div>
</div>
</div>

Expand All @@ -135,30 +121,30 @@ <h2 id="projects">Projects</h2>
<h2 id="about">About</h2>
<div class="grid-row grid-gap">

<div class="grid-col-8">
<p>
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.
</p>
<p>
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.
</p>
<p>
To contact us, please email team@civictechdc.org.
</p>
<br />
<br />
<br />
</div>
<div class="grid-col-4">
<p></p>
</div>
<div class="grid-col-8">
<p>
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.
</p>
<p>
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.
</p>
<p>
To contact us, please email team@civictechdc.org.
</p>
<br />
<br />
<br />
</div>
<div class="grid-col-4">
<p></p>
</div>
</div>
</div>
</div>
Expand All @@ -171,4 +157,4 @@ <h2 id="about">About</h2>
</div>
</div>

<script src="{{ site.baseurl }}/assets/js/meetup.js"></script>
<script src="{{ site.baseurl }}/assets/js/meetup.js"></script>

0 comments on commit 4db6a94

Please sign in to comment.