Files
sage/assets/scripts/main.js
2016-11-07 01:51:18 -08:00

24 lines
637 B
JavaScript

// import external dependencies
import 'jquery';
import 'bootstrap/dist/js/bootstrap';
// import local dependencies
import Router from './util/router';
import common from './routes/Common';
import home from './routes/Home';
import aboutUs from './routes/About';
// Use this variable to set up the common and page specific functions. If you
// rename this variable, you will also need to rename the namespace below.
const routes = {
// All pages
common,
// Home page
home,
// About us page, note the change from about-us to aboutUs.
aboutUs,
};
// Load Events
jQuery(document).ready(() => new Router(routes).loadEvents());