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 0699cb1 commit 1c9e52aCopy full SHA for 1c9e52a
leaderboard.html
@@ -111,10 +111,11 @@ <h3 style="text-align: center;">NWoC 2020 Leaderboard</h3>
111
var sortedData=[];
112
for(var i = 0; i<rows.length ; i++) {
113
var cells = rows[i].split(',');
114
- // if (cells.length != 2) {
115
- // $('#leader-div').html('<p>Data could not be parsed.</p>');
116
- // return;
117
- // }
+ if (cells.length != 2) {
+ $('#leader-div').html('<p>Data could not be parsed.</p>');
+ return;
+ }
118
+ console.log(cells.length)
119
console.log("data",cells[1]);
120
sortedData.push({score: parseInt(cells[1].trim()), username: cells[0]});
121
}
0 commit comments