diff --git a/index.html b/index.html index 85f0f5e..fb34203 100644 --- a/index.html +++ b/index.html @@ -284,23 +284,15 @@ href="https://github.com/mikebryant/ac-nh-turnip-prices/issues">Github

Oh! And let's not forget to thank those who have contributed so far!

-

Contributors: - Mike Bryant, - Trevor Welch, - Lou Huang, - Tyler Matchett, - Valerio Riva, - Naji Astier, - Pheonix Meadowlark, - Peter Shih, - Michael Ritter, - jtplatt99 +

+ Contributors:

+ diff --git a/js/contributors.js b/js/contributors.js new file mode 100644 index 0000000..90b9940 --- /dev/null +++ b/js/contributors.js @@ -0,0 +1,17 @@ +function getContributors() { + if (window.jQuery) { + const container = $('#contributors'); + jQuery.ajax('https://api.github.com/repos/mikebryant/ac-nh-turnip-prices/contributors', {}) + .done(function (data) { + data.forEach((contributor, idx) => { + console.debug('DEBUG:', contributor); + container.append(`${contributor.login}`); + if (idx < data.length - 1) { + container.append(', '); + } + }); + }); + } +} + +$(document).ready(getContributors);