aboutsummaryrefslogtreecommitdiff
path: root/src_js/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src_js/main.ts')
-rw-r--r--src_js/main.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src_js/main.ts b/src_js/main.ts
new file mode 100644
index 0000000..6a9ca82
--- /dev/null
+++ b/src_js/main.ts
@@ -0,0 +1,18 @@
+import * as u from '@hat-open/util';
+import r from '@hat-open/renderer';
+
+import * as common from './common';
+import * as vt from './vt/index';
+
+import '../src_scss/main.scss';
+
+
+function main() {
+ const root = document.body.appendChild(document.createElement('div'));
+ r.init(root, common.defaultState, vt.main);
+}
+
+
+window.addEventListener('load', main);
+(window as any).r = r;
+(window as any).u = u;