Skip to content

Latest commit

 

History

History
73 lines (65 loc) · 2.17 KB

progress.md

File metadata and controls

73 lines (65 loc) · 2.17 KB
title layout exclude
Progress
page
true

Enrolled students

{% for enrolled in site.data.enrolled %} {% endfor %}
GitHub ID Project Evaluate Committer to site?
{{ enrolled.github_id }} {{ enrolled.project }} {{ enrolled.evaluate }}

Note that the carpool-project doesn't have any enrolled class members! Members of that team should reciprocate and provide some help to the air-quality project.

<script> // Isolate our JavaScript (function() { var event_url = 'https://api.github.com/repos/BIDS-collaborative/' + 'hackingmeasurement.github.io/events'; var ajax = new XMLHttpRequest(); // For now, keep event_data global var event_data; ajax.onreadystatechange = function() { var qualifying_event = ['PushEvent', 'PullRequestEvent']; // The if clause appears to be critical, otherwise // we end up with malformed JSON. Weird! if(ajax.readyState == 4 && ajax.status == 200) { var event_data = JSON.parse(ajax.responseText); for(var i in event_data) { // .indexOf() is -1 if the item is not found if(qualifying_event.indexOf(event_data[i].type) !== -1) { // We created elements with class based on username above var id = event_data[i].actor.login + '-committed'; var target = document.getElementById(id); if(target) { target.innerHTML = 'X'; } } } // Maybe wrap in try / catch? var link_header = ajax.getResponseHeader('Link'); var matches = link_header.match(/<([^,]*?)>; rel="next"/); if(matches) { console.log('visiting', matches[1]); ajax.open('GET', matches[1], true); ajax.send(null); } } } // Actually do our AJAX request ajax.open('GET', event_url, true); ajax.send(null); })(); </script>