]>
git.r.bdr.sh - rbdr/heart/blob - js/app.js
12065b2c704e38320730442fee0d41a611237eb8
3 // Sets up the application
9 internals
.onLoad
= () => {
11 const mainElement
= window
.document
.getElementById('heart-app-entry-point');
12 const heartRenderer
= new HeartRenderer();
14 heartRenderer
.render(mainElement
);
15 heartRenderer
.activate();
17 window
.addEventListener('resize', heartRenderer
.resize
.bind(heartRenderer
));
20 * Exported global object. This will contain the instance of the heart
21 * renderer being used. It is set up on load.
25 * @property {HeartRenderer} heartRenderer The instance of the heart renderer being used.
32 window
.addEventListener('load', internals
.onLoad
);