From c0f04ce84a66955f6363c5a7fe565359079c6457 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Sat, 5 Jul 2025 18:05:17 +0200 Subject: laod sample --- client/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/index.js') 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; -- cgit v1.2.3-70-g09d2