Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocean-OS authored Nov 28, 2023
1 parent 41278e9 commit 1150405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<b>IDE</b><button class="run" onclick="run()">Run</button>&nbsp;<button class="save" onclick="save()">Save</button><span class="saveInfo">This will save the code <b>locally</b> to your computer via localStorage. If you clear your cache, you will lose your code.</span>
</div>
<div class="main">
<iframe class="window" src = "data:text/html;charset=utf-8," width = "10%" height="10%"></iframe>
<iframe class="window" src = "window.html" width = "10%" height="10%"></iframe>
<div class="code" contenteditable = "true" onkeydown="save()">
</div></div>
<script>
Expand All @@ -61,7 +61,7 @@
}
function run() {
//alert("run")
document.getElementByClassName("window").src = "date:text/html;charset=utf-8," + document.getElementByClassName("code").innerText||document.getElementByClassName("code").textContent;
//document.getElementByClassName("window").src = "window.html"; //"date:text/html;charset=utf-8," + document.getElementByClassName("code").innerText||document.getElementByClassName("code").textContent;
}
</script>

Expand Down

0 comments on commit 1150405

Please sign in to comment.