mirror of https://github.com/hashicorp/consul
28 lines
353 B
JavaScript
28 lines
353 B
JavaScript
//
|
|
// app.js
|
|
//
|
|
|
|
var APP = (function() {
|
|
|
|
function initializeSidebar() {
|
|
new Sidebar();
|
|
}
|
|
|
|
function initialize() {
|
|
APP.Utils.runIfClassNamePresent('page-home', initHome);
|
|
|
|
//always init sidebar
|
|
initializeSidebar();
|
|
}
|
|
|
|
function initHome() {
|
|
APP.Homepage.init();
|
|
}
|
|
|
|
//api
|
|
return {
|
|
initialize: initialize
|
|
}
|
|
|
|
})();
|