From 7c9c74988da0c3d85a04d57de44262960c61528b Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Fri, 21 Oct 2022 04:09:55 +0800 Subject: [PATCH] add iframe to markup --- index.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 00e0dd8..c8a303e 100644 --- a/index.html +++ b/index.html @@ -13,17 +13,17 @@ --shadow_color: rgb(171 200 214); } - html, body { + html, body, .app { height: 100%; } - body { + .app { margin: 0px; /* same as ace editor */ font-family: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace; } - body::backdrop { + .app::backdrop { background-color: white; } @@ -375,12 +375,16 @@ import {init} from './src/index.js' window.addEventListener('load', () => { - init(document.body) + init(document.getElementById('app')) }) + +
+