Skip to content

Commit b7219bf

Browse files
authored
Merge pull request #79 from paramsiddharth/profile-pics
Add GitHub profile pictures to leaderboard
2 parents f63fdeb + a36beaa commit b7219bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

leaderboard.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,14 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
130130
}
131131
table += '<tr>';
132132
table += '<td>'+pos+'</td>';
133-
table += '<td class=\'handle\'><a href=\'https://github.com/'+sortedData[i].username+'\' target=\'_blank\'>'+sortedData[i].username+'</a></td>';
133+
table += (
134+
'<td class=\'handle\'><a href=\'https://github.com/'
135+
+ sortedData[i].username
136+
+ '\' target=\'_blank\'>'
137+
+ `<img style='width: 22px; border-radius: 100%;' src='https://avatars.githubusercontent.com/${sortedData[i].username}' alt=${sortedData[i].username} />&nbsp;`
138+
+ sortedData[i].username
139+
+ '</a></td>'
140+
);
134141
table += '<td>'+sortedData[i].score+'</td>';
135142
table += '</tr>';
136143
}

0 commit comments

Comments
 (0)