]>
git.r.bdr.sh - rbdr/heart/blob - js/app.js
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();
18 * Exported global object. This will contain the instance of the heart
19 * renderer being used. It is set up on load.
23 * @property {HeartRenderer} heartRenderer The instance of the heart renderer being used.
30 window
.addEventListener('load', internals
.onLoad
);