Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tikrack committed Sep 12, 2024
2 parents 610a3d0 + cc82eb5 commit f786ad6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions salam-online.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</g>
</svg>
</button>
<button class="save"><span class="title">ذخیره کد</span>
<button class="save"><span class="title">ذخیره</span>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
Expand All @@ -66,7 +66,7 @@
</button>
</div>
<a href="https://auth.salamlang.ir/auth" class="login">
<span class="title">ورود به سایت</span>
<span class="title">ورود</span>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"></g>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g>
Expand All @@ -79,7 +79,7 @@
</g>
</svg>
</a>
<button class="logout"><span class="title">خروج از سایت</span>
<button class="logout"><span class="title">خروج</span>
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M15 12L2 12M2 12L5.5 9M2 12L5.5 15" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path> <path d="M9.00195 7C9.01406 4.82497 9.11051 3.64706 9.87889 2.87868C10.7576 2 12.1718 2 15.0002 2L16.0002 2C18.8286 2 20.2429 2 21.1215 2.87868C22.0002 3.75736 22.0002 5.17157 22.0002 8L22.0002 16C22.0002 18.8284 22.0002 20.2426 21.1215 21.1213C20.3531 21.8897 19.1752 21.9862 17 21.9983M9.00195 17C9.01406 19.175 9.11051 20.3529 9.87889 21.1213C10.5202 21.7626 11.4467 21.9359 13 21.9827" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round"></path> </g></svg>
</button>
</header>
Expand Down
16 changes: 9 additions & 7 deletions script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%";
}
}
};

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit f786ad6

Please sign in to comment.