From c78f883f1b9bae1061f114912f864762e5fdebfa Mon Sep 17 00:00:00 2001 From: Max Base Date: Thu, 12 Sep 2024 15:36:35 +0330 Subject: [PATCH 1/2] fix bug of toggle in mode 1 --- script/script.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/script/script.js b/script/script.js index ed71bbd..308d8db 100644 --- a/script/script.js +++ b/script/script.js @@ -91,10 +91,12 @@ const displayError = (text) => { }; const toggleIframePosition = () => { - if (elm_iframe.style.right === "50%") { - elm_iframe.style.right = "150%"; - } else { - elm_iframe.style.right = "50%"; + if (toggleStatus === 1) { + if (elm_iframe.style.right === "50%") { + elm_iframe.style.right = "150%"; + } else { + elm_iframe.style.right = "50%"; + } } }; @@ -205,13 +207,13 @@ const captureLint = (arguments) => { const captureOutput = (showOutput, arguments) => { console.log("Capture Output: ", arguments); + elm_output.textContent = ''; + elm_error.textContent = ''; + if (showOutput) { toggleIframePosition(); } - elm_output.textContent = ''; - elm_error.textContent = ''; - try { const exitCode = callMain(arguments); From cc82eb5c1748c0751d4892d5bc9eab838e98515e Mon Sep 17 00:00:00 2001 From: Max Base Date: Thu, 12 Sep 2024 15:37:12 +0330 Subject: [PATCH 2/2] update html --- salam-online.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salam-online.html b/salam-online.html index 327b79b..a761236 100644 --- a/salam-online.html +++ b/salam-online.html @@ -50,7 +50,7 @@ - -