Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19cd7dc commit adb6178Copy full SHA for adb6178
Week1/assets/app.js
@@ -59,6 +59,10 @@ function getContributors(repo) {
59
console.log(data);
60
61
data.map( e => {
62
+ let a = document.createElement('a');
63
+ a.setAttribute('target','_blank');
64
+ a.href = e.html_url;
65
+
66
let li = document.createElement("li");
67
li.className ="list-group-item d-flex justify-content-between align-items-center";
68
let title = document.createElement("h6");
@@ -74,8 +78,8 @@ function getContributors(repo) {
74
78
title.innerHTML = e.login;
75
79
li.appendChild(title);
76
80
li.appendChild(span);
77
-
- ul.appendChild(li);
81
+ a.appendChild(li)
82
+ ul.appendChild(a);
83
});
84
})
85
.catch(error => console.error(error));
0 commit comments