Skip to content

Commit aad30d1

Browse files
committed
cell numbering bug fix
1 parent 56613e4 commit aad30d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/2secrets.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ function makeGrid(rows, cols) {
4848
for (var r = 0; r < rows; r++) {
4949
var rowId = "row" + r;
5050
var row = $("<div/>").addClass("row").attr("id", rowId).appendTo('body');
51-
var vi = r / (rows - 1);
5251
for (var c = 0; c < cols; c++) {
53-
var cellId = "cell" + ((r * rows) + c);
52+
var cellId = "cell" + ((r * cols) + c);
5453
$(row).append('<div class="cell" id="' + cellId + '"></div>');
5554
}
5655
}

0 commit comments

Comments
 (0)