added html and css editors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user