summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2025-07-05 18:05:17 +0200
committerjulian laplace <julescarbon@gmail.com>2025-07-05 18:05:17 +0200
commitc0f04ce84a66955f6363c5a7fe565359079c6457 (patch)
treec8e9d743fc60681d4712ae784bbcfd0f2c80d39b /client/index.js
parent200c1a4f0ebd3188faebaea8e7278fc5105227cf (diff)
laod sample
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js7
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;