diff --git a/5/script.js b/5/script.js index 875f1fd..a6b1d98 100644 --- a/5/script.js +++ b/5/script.js @@ -2,8 +2,9 @@ let output = document.getElementById("output"); let errorOutput = document.getElementById("error"); let input; let linesArr; -let parsedArr = []; +let parsedArr = [[], [], [], [], [], [], [], [], []]; let cmdArr = []; +let copy9001 = []; function readFile(input) { let file = input.files[0]; @@ -38,16 +39,25 @@ start.addEventListener("click", () => { errorOutput.innerHTML = "senk ju~ *UwU~"; } parseCmd(); + + copy9001 = [].concat(parsedArr); + console.log("🚀 ~ file: script.js:44 ~ start.addEventListener ~ copy9001", copy9001) for(let i=0; i=0; i--) { + copy9001[d-1].push(tmpArr[i]); } - return o; } function parseCmd() { @@ -129,4 +136,4 @@ function parseCmd() { cmdArr[i-10] = tmpLine; } console.log("cmdArr", cmdArr); -} +} \ No newline at end of file