Skip to content

Commit fc3d4fc

Browse files
Update
Co-Authored-By: JehanKandy <jehankandy@gmail.com>
1 parent c2725f1 commit fc3d4fc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

codeEditor/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ <h1>Online Code Editor</h1>
1616
</div>
1717
<div class="code-in">
1818
<label for="">CSS</label><br>
19-
<textarea id="for-html" onkeyup="runCode()"></textarea>
19+
<textarea id="for-css" onkeyup="runCode()"></textarea>
2020
</div>
2121
<div class="code-in">
2222
<label for="">JS</label><br>
23-
<textarea id="for-html" onkeyup="runCode()"></textarea>
23+
<textarea id="for-js" onkeyup="runCode()"></textarea>
2424
</div>
2525

2626
</div>

js/script.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function runCode(){
2+
const codeHtml = document.getElementById('for-html');
3+
const codeCss = document.getElementById('for-css');
4+
const codeJS = document.getElementById('for-js');
5+
const codeResult = document.getElementById('result-code');
6+
7+
}

0 commit comments

Comments
 (0)