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

25 lines
309 B
JavaScript

//
// home.js
//
var Serf = (function() {
function initialize (){
Serf.Util.runIfClassNamePresent('page-home', initHome);
}
function initHome() {
if(!Serf.Util.isMobile){
Serf.Nodes.init();
}else{
Serf.Home.mobileHero();
}
}
//api
return {
initialize: initialize
}
})();