diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/index.js b/client/index.js index 3b207a1..7d1bd55 100644 --- a/client/index.js +++ b/client/index.js @@ -103,8 +103,10 @@ function toggle(freq) { function add(i, j) { const a = i + 1 + base_x; const b = j + 1 + base_y; - // const a = i + 1; - // const b = i + j + 2; + // const a = i + 1 + base_x; + // const b = i + j + 2 + base_y; + // const a = i + j + 1 + base_x; + // const b = j + 1 + base_y; // const a = PRIMES[i]; // const b = PRIMES[i + j + 1]; const div = document.createElement("div"); @@ -276,6 +278,7 @@ function keydown(e) { window.addEventListener("keydown", keydown, true); keys.listen(function (index) { + index += 7; const x = index % 7; const y = Math.floor(index / 7); const a = x; |
