]> git.r.bdr.sh - rbdr/sorting-hat-renderer/blob - lib/sorting_hat.js
Update docs / remove bundle
[rbdr/sorting-hat-renderer] / lib / sorting_hat.js
1 import Vue from 'vue';
2
3 import WaveRendererComponent from './components/wave_renderer';
4 import StatusComponent from './components/status';
5
6 /* global window */
7
8 const internals = {};
9
10 internals.SortingHat = {
11
12 start() {
13
14 this.vm = new Vue({
15 el: '#sorting-hat',
16 components: {
17 waveRenderer: WaveRendererComponent,
18 status: StatusComponent
19 }
20 });
21 }
22 };
23
24
25 internals.run = function () {
26
27 internals.SortingHat.start();
28 };
29
30 window.addEventListener('load', internals.run);