open-consul/website/source/assets/javascripts/_app/app.js

28 lines
353 B
JavaScript
Raw Normal View History

2014-02-08 00:41:03 +00:00
//
2014-04-05 09:03:01 +00:00
// app.js
2014-02-08 00:41:03 +00:00
//
2014-04-05 09:03:01 +00:00
var APP = (function() {
2014-02-08 00:41:03 +00:00
2015-11-07 07:17:00 +00:00
function initializeSidebar() {
new Sidebar();
}
2014-02-08 00:41:03 +00:00
2015-11-07 07:17:00 +00:00
function initialize() {
APP.Utils.runIfClassNamePresent('page-home', initHome);
2014-04-05 09:03:01 +00:00
2015-11-07 07:17:00 +00:00
//always init sidebar
initializeSidebar();
}
function initHome() {
APP.Homepage.init();
}
//api
return {
initialize: initialize
}
2014-02-08 00:41:03 +00:00
2014-04-05 09:03:01 +00:00
})();