added contributors to splash page

This commit is contained in:
Sam Keddy
2020-04-16 18:21:34 +00:00
parent 737afc6e79
commit f1fe597b80
3 changed files with 71 additions and 10 deletions

View File

@ -0,0 +1,20 @@
ajax('https://api.github.com/repos/lospec/pixel-editor/contributors', response => {
console.log(response)
if (Array.isArray(response)) {
var html = '';
response.forEach(c => {
//skip lospec
if (c.login == 'lospec') return;
//add to html
html+='<a target="_blank" href="'+c.html_url+'"><img src="'+c.avatar_url+'&s=60" /> '+c.login+'</a>'
});
document.querySelector('.contributors').innerHTML = html;
}
});