|
|
@ -3,12 +3,14 @@ function getContributors() {
|
|
|
|
const container = $('#contributors');
|
|
|
|
const container = $('#contributors');
|
|
|
|
jQuery.ajax('https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors', {})
|
|
|
|
jQuery.ajax('https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors', {})
|
|
|
|
.done(function (data) {
|
|
|
|
.done(function (data) {
|
|
|
|
|
|
|
|
const contributorList = [];
|
|
|
|
data.forEach((contributor, idx) => {
|
|
|
|
data.forEach((contributor, idx) => {
|
|
|
|
container.append(`<a href="${contributor.html_url}">${contributor.login}</a>`);
|
|
|
|
contributorList.push(`<a href="${contributor.html_url}">${contributor.login}</a>`);
|
|
|
|
if (idx < data.length - 1) {
|
|
|
|
if (idx < data.length - 1) {
|
|
|
|
container.append(', ');
|
|
|
|
contributorList.push(', ');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
container.append(contributorList.join(''));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|