From 4b3d812031dd07c251623d7155159115e99d2671 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 28 Aug 2017 22:54:26 -0500 Subject: Commit everything hastily I left evertything until the last minute, so I didn't have a chance to do it nicely. SORRY. --- lib/sorting_hat.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/sorting_hat.js (limited to 'lib/sorting_hat.js') 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); -- cgit