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 60ac0da commit ba42fb8Copy full SHA for ba42fb8
leaderboard.html
@@ -107,7 +107,7 @@ <h3>Leaderboard</h3>
107
var table = '<table class=\'leaderboard\'><thead><th>Position</th><th class=\'handle\'>GitHub Handle</th><th>Score</th></thead><tbody>';
108
var pos = 0, currScore = -1;
109
110
- for(var i = 0; i<(rows.length<=25?rows.length:25); i++) {
+ for(var i = 0; ; i++) {
111
var cells = rows[i].split(',');
112
if (cells.length != 2) {
113
$('#leader-div').html('<p>Data could not be parsed.</p>');
@@ -117,6 +117,10 @@ <h3>Leaderboard</h3>
117
if (cells[1] != currScore) {
118
pos = i+1;
119
}
120
+
121
+ if (pos>25 && cells[1] != currScore) {
122
+ break;
123
+ }
124
125
currScore = cells[1];
126
0 commit comments