Skip to content

Commit

Permalink
Merge pull request #16 from raduetsya/output_clear
Browse files Browse the repository at this point in the history
Clear output on Run code
  • Loading branch information
profelis authored Jul 24, 2024
2 parents 1a9d4fd + bed014b commit 489d5a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
6 changes: 2 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,11 @@
<div id="main_col3" class="main_col">
<div class="main_col_opened">

<div class="main_options" style="height:85px">
<div class="main_options">


<div class="main_options_header">Output</div>
<div class="main_options_tools">
<button id="clear_output" class="btn btn-dark">Clear</button>
</div>
<div class="main_options_tools"><!-- Some buttons here --></div>



Expand Down
7 changes: 1 addition & 6 deletions src/outputview.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ class OutputView

this.currentText = "";

document.getElementById("clear_output").addEventListener("click",function(){

this.clear();
}.bind(this))


this.addLine();
}

Expand Down Expand Up @@ -90,6 +84,7 @@ class OutputView

resetRuntimeOutput() {
this.runtimeOutput = [""];
this.clear();
}

printLine(text,type) {
Expand Down
2 changes: 1 addition & 1 deletion src/windowcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class WindowController


let mcc = mc.getElementsByClassName("main_options")[0];
this.mainOptionsHeight.push(parseInt(mcc.style.height,10));
this.mainOptionsHeight.push(mcc.offsetHeight);

}

Expand Down

0 comments on commit 489d5a1

Please sign in to comment.