diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-11-13 03:39:02 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-11-13 03:39:02 +0100 |
| commit | b30a00a9713fd52865129132317beb6fa875017c (patch) | |
| tree | c367859b2cfaf820c88eb4822e566d06144ecd4b /src_js/main.ts | |
| parent | 26b2dee4ef3f0a00bd6fb2989ada48ad9b054972 (diff) | |
type script
Diffstat (limited to 'src_js/main.ts')
| -rw-r--r-- | src_js/main.ts | 18 |
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; |
