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 2164cfa commit 82648a0Copy full SHA for 82648a0
js/contributors.js
@@ -22,11 +22,11 @@ function filterContributors(arr) {
22
});
23
}
24
25
-function shuffle(array) {
26
- for (let i = array.length - 1; i > 0; i--) {
+function shuffle(arr) {
+ for (let i = arr.length - 1; i > 0; i--) {
27
let j = Math.floor(Math.random() * (i + 1));
28
29
- [array[i], array[j]] = [array[j], array[i]];
+ [arr[i], arr[j]] = [arr[j], arr[i]];
30
31
32
@@ -46,7 +46,7 @@ function buildRows(rowSet) {
46
rowsString += '<div class="user-row">';
47
48
for (var i = 0; i < r; i++) {
49
- rowsString += userTemplate(contributors.shift());
+ rowsString += userTemplate(filtered.shift());
50
51
52
rowsString += '</div>';
0 commit comments