Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit adb6178

Browse files
Farhan NazirFarhan Nazir
Farhan Nazir
authored and
Farhan Nazir
committed
a tag fix
1 parent 19cd7dc commit adb6178

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Week1/assets/app.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function getContributors(repo) {
5959
console.log(data);
6060

6161
data.map( e => {
62+
let a = document.createElement('a');
63+
a.setAttribute('target','_blank');
64+
a.href = e.html_url;
65+
6266
let li = document.createElement("li");
6367
li.className ="list-group-item d-flex justify-content-between align-items-center";
6468
let title = document.createElement("h6");
@@ -74,8 +78,8 @@ function getContributors(repo) {
7478
title.innerHTML = e.login;
7579
li.appendChild(title);
7680
li.appendChild(span);
77-
78-
ul.appendChild(li);
81+
a.appendChild(li)
82+
ul.appendChild(a);
7983
});
8084
})
8185
.catch(error => console.error(error));

0 commit comments

Comments
 (0)