From bd16bbafa74d32b49b7a5033931b89fcd1ea2dcb Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:52:11 +1200 Subject: [PATCH 01/10] add select column button --- index.htm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.htm b/index.htm index 0065fa2..deb0a44 100644 --- a/index.htm +++ b/index.htm @@ -82,6 +82,10 @@

Select

+ +

+ +

From 66aafea76d27e8493961aa28d98aa1b0b07d81bc Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:53:25 +1200 Subject: [PATCH 02/10] add accessColumn function --- script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script.js b/script.js index 27d1c37..f354a82 100644 --- a/script.js +++ b/script.js @@ -162,3 +162,7 @@ const accessRows = () => { document.editor.textbox.value+="\n" + variable.value + "_rows = " + variable.value + "[" + row.value + "::" + rows.value + "]"; } } + +const accessColumn = () => { + +} From db704e3558bb44be697159ee0e9af31c9a3b2e65 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:54:38 +1200 Subject: [PATCH 03/10] add if statement for variable.value --- script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index f354a82..8837ed8 100644 --- a/script.js +++ b/script.js @@ -164,5 +164,7 @@ const accessRows = () => { } const accessColumn = () => { - + if (variable.value === "") { + return alert("Please enter a variable name in the 'Create Tensor' section"); + } } From c764c94c49992ac5447621e030f006dd8b06b5ce Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:56:07 +1200 Subject: [PATCH 04/10] add else if statement for row.value --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index 8837ed8..ce38c1e 100644 --- a/script.js +++ b/script.js @@ -166,5 +166,7 @@ const accessRows = () => { const accessColumn = () => { if (variable.value === "") { return alert("Please enter a variable name in the 'Create Tensor' section"); + } else if (row.value === "") { + return alert("Please enter a number in the 'row' field in the 'Tensor functions' section."); } } From f11a1a67977699846e36a3d0dcf51fc1be120a8e Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:57:45 +1200 Subject: [PATCH 05/10] add else if statement for rows.value --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index ce38c1e..c5f1012 100644 --- a/script.js +++ b/script.js @@ -168,5 +168,7 @@ const accessColumn = () => { return alert("Please enter a variable name in the 'Create Tensor' section"); } else if (row.value === "") { return alert("Please enter a number in the 'row' field in the 'Tensor functions' section."); + } else if (rows.value === "") { + return alert("Please enter a number in the 'rows' field in the 'Select' section."); } } From dc9c4b1ed3f8348d78e43ebff9ffc89f2820ffc4 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:58:59 +1200 Subject: [PATCH 06/10] add else if statement for columns.value --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index c5f1012..f9e8229 100644 --- a/script.js +++ b/script.js @@ -170,5 +170,7 @@ const accessColumn = () => { return alert("Please enter a number in the 'row' field in the 'Tensor functions' section."); } else if (rows.value === "") { return alert("Please enter a number in the 'rows' field in the 'Select' section."); + } else if (columns.value === "") { + return alert("Please enter a number in the 'columns' field in the 'Select' section."); } } From e919a97299590c165eca1fd55fdcbd5bc3178429 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:00:11 +1200 Subject: [PATCH 07/10] add else statement --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index f9e8229..19626b5 100644 --- a/script.js +++ b/script.js @@ -172,5 +172,7 @@ const accessColumn = () => { return alert("Please enter a number in the 'rows' field in the 'Select' section."); } else if (columns.value === "") { return alert("Please enter a number in the 'columns' field in the 'Select' section."); + } else { + document.editor.textbox.value+="\n" + variable.value + "_column = " + variable.value + "[" + row.value + ":" + rows.value + ", " + columns.value + "]"; } } From b58b979ea521a6e28af7eaac6ca76d359e43ae2d Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:02:56 +1200 Subject: [PATCH 08/10] add columns input field --- index.htm | 1 + 1 file changed, 1 insertion(+) diff --git a/index.htm b/index.htm index deb0a44..f019e10 100644 --- a/index.htm +++ b/index.htm @@ -87,6 +87,7 @@

Select

+

From 8df078eb23da79095078052177faf8817fe681d7 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:04:31 +1200 Subject: [PATCH 09/10] add columns variable --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 19626b5..2498c12 100644 --- a/script.js +++ b/script.js @@ -134,6 +134,7 @@ const reshape = (arg) => { // Select let rows = document.getElementById("rows"); +let columns = document.getElementById("columns"); const access = () => { if (variable.value === "") { From c67304c13f5cd0ff9b4b6a59a449c7212be9512d Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 10:07:08 +1200 Subject: [PATCH 10/10] add #columns selector --- styles.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/styles.css b/styles.css index 5a21e36..0acd3b6 100644 --- a/styles.css +++ b/styles.css @@ -106,3 +106,6 @@ input[type="number"] { width: 60px; } +#columns { + width: 70px; +}