Client style updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user