Skip to content

Commit 49689cf

Browse files
committed
cleaned code
1 parent eb5e76c commit 49689cf

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

leaderboard.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
119119
console.log("data for offending segment: ", cells[1]);
120120

121121
}
122-
// console.log("cells length:", cells.length);
123-
// console.log("data",cells[1]);
122+
console.log("cells length:", cells.length);
123+
console.log("data",cells[1]);
124124
sortedData.push({score: parseInt(cells[1].trim()), username: cells[0]});
125125
}
126126
sortedData = sortedData.sort((a, b) => {
@@ -135,7 +135,14 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
135135
}
136136
table += '<tr>';
137137
table += '<td>'+pos+'</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;`;
138+
table += (
139+
'<td class=\'handle\'><a href=\'https://github.com/'
140+
+ sortedData[i].username
141+
+ '\' target=\'_blank\'>'
142+
+ `<img style='width: 22px; border-radius: 100%;' src='https://avatars.githubusercontent.com/${sortedData[i].username}' alt=${sortedData[i].username} />&nbsp;`
143+
+ sortedData[i].username
144+
+ '</a></td>'
145+
);
139146
table += '<td>'+sortedData[i].score+'</td>';
140147
table += '</tr>';
141148
}

0 commit comments

Comments
 (0)