From 6079def4044154a85e0d25bfb1f748968ca9ebf4 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:34:58 +1200 Subject: [PATCH 1/9] assign value to textbox --- script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/script.js b/script.js index 3273e60..aeb7d6b 100644 --- a/script.js +++ b/script.js @@ -145,5 +145,6 @@ const access = () => { keep = ", " + column.value; } + document.editor.textbox.value+="\n" + variable.value + "_select = " + variable.value + "[" + row.value + keep + "]"; } } From f7e61b46af0463ee7edc141078e0bc2e47c5c493 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:36:16 +1200 Subject: [PATCH 2/9] add select row button --- index.htm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.htm b/index.htm index eab62ea..831a1f4 100644 --- a/index.htm +++ b/index.htm @@ -80,6 +80,10 @@

Select

+

+ +

+ From 3e84df8f2210549ae4849f237d69eb6c9ca3c4e5 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:37:28 +1200 Subject: [PATCH 3/9] add accessRows function --- script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script.js b/script.js index aeb7d6b..c0d85f5 100644 --- a/script.js +++ b/script.js @@ -148,3 +148,7 @@ const access = () => { document.editor.textbox.value+="\n" + variable.value + "_select = " + variable.value + "[" + row.value + keep + "]"; } } + +const accessRows = () => { + +} From 104076b4d111e0f9c384eb274aeb37dbb3205c3f Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:38:44 +1200 Subject: [PATCH 4/9] add if statment for variable.value --- script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index c0d85f5..2e26f55 100644 --- a/script.js +++ b/script.js @@ -150,5 +150,7 @@ const access = () => { } const accessRows = () => { - + if (variable.value === "") { + return alert("Please enter a variable name in the 'Create Tensor' section"); + } } From c890fcc4710c2fd3a8a2cc1d49b2bf965d547620 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:40:00 +1200 Subject: [PATCH 5/9] add else if statement for row.value --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index 2e26f55..e6ce06f 100644 --- a/script.js +++ b/script.js @@ -152,5 +152,7 @@ const access = () => { const accessRows = () => { 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 0fb7dd260ebda19cf0ed4313d32ca53e28ffe812 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:42:15 +1200 Subject: [PATCH 6/9] add else if statement for rows.value --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index e6ce06f..95780c9 100644 --- a/script.js +++ b/script.js @@ -154,5 +154,7 @@ const accessRows = () => { 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 60fd78dcde111874c60aeffc42521ba06d8fc86c Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:43:18 +1200 Subject: [PATCH 7/9] add else statement --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index 95780c9..69a4629 100644 --- a/script.js +++ b/script.js @@ -156,5 +156,7 @@ const accessRows = () => { 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 { + document.editor.textbox.value+="\n" + variable.value + "_rows = " + variable.value + "[" + row.value + "::" + rows.value + "]"; } } From 3e64005c1dac7d529d00085e8c5720afdb026b14 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:46:21 +1200 Subject: [PATCH 8/9] add rows input field --- index.htm | 1 + 1 file changed, 1 insertion(+) diff --git a/index.htm b/index.htm index 831a1f4..0065fa2 100644 --- a/index.htm +++ b/index.htm @@ -82,6 +82,7 @@

Select

+

From c2c25e7667e57f79ddf5412c61d58bccb0d70d92 Mon Sep 17 00:00:00 2001 From: Supravisor <153783117+Supravisor@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:48:40 +1200 Subject: [PATCH 9/9] add rows variable --- script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script.js b/script.js index 69a4629..27d1c37 100644 --- a/script.js +++ b/script.js @@ -133,6 +133,8 @@ const reshape = (arg) => { } // Select +let rows = document.getElementById("rows"); + const access = () => { if (variable.value === "") { return alert("Please enter a variable name in the 'Create Tensor' section.");