Skip to content

Commit eb5e76c

Browse files
committed
Re-add leaderboard avatars that was reverted in initial commits
1 parent 517d019 commit eb5e76c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leaderboard.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
114114
if (cells.length != 2) {
115115
$('#leader-div').html('<p>Data could not be parsed.</p>');
116116
console.log("Offending row: ", rows[i]);
117+
console.log("Offending row index in sheets: ", i + 1);
117118
console.log("Offending cell length segment: ", cells.length);
118119
console.log("data for offending segment: ", cells[1]);
119120

@@ -134,7 +135,7 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
134135
}
135136
table += '<tr>';
136137
table += '<td>'+pos+'</td>';
137-
table += '<td class=\'handle\'><a href=\'https://github.com/'+sortedData[i].username+'\' target=\'_blank\'>'+sortedData[i].username+'</a></td>';
138+
table += '<td class=\'handle\'><a href=\'https://github.com/'+sortedData[i].username+'\' target=\'_blank\'>'+sortedData[i].username+'</a></td>';`<img style='width: 22px; border-radius: 100%;' src='https://avatars.githubusercontent.com/${sortedData[i].username}' alt=${sortedData[i].username} />&nbsp;`;
138139
table += '<td>'+sortedData[i].score+'</td>';
139140
table += '</tr>';
140141
}

0 commit comments

Comments
 (0)