mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
added contributors to splash page
This commit is contained in:
20
js/pixel-editor-splash-page.js
Normal file
20
js/pixel-editor-splash-page.js
Normal 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;
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user