diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-08-28 22:54:26 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-08-28 22:54:26 -0500 |
| commit | 4b3d812031dd07c251623d7155159115e99d2671 (patch) | |
| tree | 21fb3015ccd07105862f968fd0e1aaefdcb4d3a8 /lib/sorting_hat.js | |
| parent | dc7f608a828fc0b34a291af915727ab1f7d6ba0a (diff) | |
Commit everything hastily
I left evertything until the last minute, so I didn't have a chance
to do it nicely. SORRY.
Diffstat (limited to 'lib/sorting_hat.js')
| -rw-r--r-- | lib/sorting_hat.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/sorting_hat.js b/lib/sorting_hat.js new file mode 100644 index 0000000..4534a9f --- /dev/null +++ b/lib/sorting_hat.js @@ -0,0 +1,30 @@ +import Vue from 'vue'; + +import WaveRendererComponent from './components/wave_renderer'; +import StatusComponent from './components/status'; + +/* global window */ + +const internals = {}; + +internals.SortingHat = { + + start() { + + this.vm = new Vue({ + el: '#sorting-hat', + components: { + waveRenderer: WaveRendererComponent, + status: StatusComponent + } + }); + } +}; + + +internals.run = function () { + + internals.SortingHat.start(); +}; + +window.addEventListener('load', internals.run); |