Skip to content

Instantly share code, notes, and snippets.

@eldondev
Last active December 20, 2015 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eldondev/6206564 to your computer and use it in GitHub Desktop.
Save eldondev/6206564 to your computer and use it in GitHub Desktop.
<html>
<head>
<style>
.classDate {
margin: 0;
margin-top: 5px;
font-weight: bold;
color: #B70000!important;
font: Verdana, Helvetica, Arial, sans-serif;
}
a:link, a:visited, a:hover, a:active{
color: #0096E3!important;
font-size: 12px;
}
</style>
<script type="text/javascript">
var theEvents = {};
function events_callback(json) { theEvents = json; }
</script>
<script src="https://api.meetup.com/events.json/?callback=events_callback&group_urlname=Freeside-Atlanta&key=1c371a6d1d7b12657c26604b263c2980">
</script>
<script>
if (theEvents['results'].length <= 0) {
document.write('<i>None currently scheduled--please check back!</i><br /><br />')
}
var previousDate = '';
for (var i = 0; i < theEvents['results'].length; i++) {
var currentDate = theEvents['results'][i].time.substring(0,10);
var writeBreak = true;
if (currentDate != previousDate) {
writeBreak = false;
document.write('<div class="classDate">'+currentDate + '</div>')
previousDate = currentDate;
}
document.write('<a href="' + theEvents['results'][i].event_url + '" class="classLink" target="_blank">' + theEvents['results'][i].name + '</a><br />');
}
</script>
</head>
<body></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment