diff --git a/index.html b/index.html index de27703..d9e9b03 100644 --- a/index.html +++ b/index.html @@ -104,7 +104,6 @@ - AM - 8:00 am to 11:59 am PM - 12:00 pm to 10:00 pm
@@ -284,11 +283,16 @@ Support, comments and contributions are available through Github

+

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

+

+ Contributors: +

+ diff --git a/js/contributors.js b/js/contributors.js new file mode 100644 index 0000000..c3d09e5 --- /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);