diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-07-28 01:43:55 +0200 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-07-29 00:01:57 +0200 |
| commit | 1e874e790c12839695761a654b44fb427149a353 (patch) | |
| tree | 6942441ac511ec1417b2434b111101fa8d7f7e68 /src_js/main.js | |
init
Diffstat (limited to 'src_js/main.js')
| -rw-r--r-- | src_js/main.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src_js/main.js b/src_js/main.js new file mode 100644 index 0000000..7dd5e1b --- /dev/null +++ b/src_js/main.js @@ -0,0 +1,19 @@ +import r from '@hat-core/renderer'; +import * as u from '@hat-core/util'; + +import * as common from './common'; +import * as vt from './vt'; + +import 'main.scss'; + + +function main() { + const root = document.body.appendChild(document.createElement('div')); + r.init(root, common.state, vt.main); + common.init(); +} + + +window.addEventListener('load', main); +window.r = r; +window.u = u; |
