mirror of
https://github.com/status-im/consul.git
synced 2025-02-01 00:16:27 +00:00
25 lines
309 B
JavaScript
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
|
|
}
|
|
|
|
})(); |