added html and css editors

This commit is contained in:
David Meincke
2022-03-26 20:44:52 +01:00
parent cda1b5c972
commit 6ed4b80c64
23 changed files with 548 additions and 144 deletions
+14
View File
@@ -8,4 +8,18 @@ export function createScript(value: string) {
document.body.appendChild(script);
executeDrawQueue();
}
export function createHtml(value: string) {
var div: HTMLDivElement = document.createElement("div");
div.innerHTML = value;
document.body.appendChild(div);
}
export function createCss(value: string) {
var style: HTMLStyleElement = document.createElement("style");
style.innerHTML = value;
document.body.appendChild(style);
}