Client style updates

This commit is contained in:
2025-09-25 09:07:44 +10:00
parent b677b9f507
commit 2dc3992566
3 changed files with 51 additions and 8 deletions

View File

@@ -1,9 +1,11 @@
let textbox;
let textconsole;
let text = '<p># welcome to gride!</p>\n<p># start typing to code a program in Ground!</p>\n<p>';
// Wait for the window to load before doing anything
window.addEventListener("load", function() {
textbox = document.getElementById("editor");
textconsole = document.getElementById("console");
textbox.innerHTML = text + "</p>";
});
@@ -33,5 +35,5 @@ async function runCode() {
"body": text.split("<p>").join("").split("</p>").join("")
});
const data = await result.json();
console.log("Output: ", data);
textconsole.innerHTML = data.stdout;
}