Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsonukushwaha authored Dec 25, 2021
1 parent 8f26344 commit 7af211e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const getPersons = async () => {
const person = document.getElementById('person');
let url = 'https://api.github.com/repos/flyingsonu122/tarana/contributors';
const res = await fetch(url);
const data = await res.json();
// console.log(data);
data.forEach(i => {
let template = `
<a href = "${i.html_url}" target = "_blank" rel = "noopener noreferrer"><img src="${i.avatar_url}" alt="${i.login}" class="pic" title="${i.login}"></a>
`;
person.innerHTML += template;
});

}

window.addEventListener("DOMContentLoaded", () => getPersons());

0 comments on commit 7af211e

Please sign in to comment.