This commit is contained in:
2026-06-30 20:23:53 +02:00
commit 594c4c674d
5 changed files with 1547 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { render } from "./render.js";
import { setupInput } from "./input.js";
const buffer = ["Hello, world!", "Second line."];
const cursor = { line: 0, col: 0 };
function onChange() {
render(buffer, cursor);
try {
console.log(buffer.map((line) => JSON.parse(App.testing(line))));
} catch (e) {
console.error(e);
}
document.getElementById("text").innerHTML += "<br>";
}
function escapeHtml(s) {}
setupInput(buffer, cursor, onChange);
render(buffer, cursor);