var_Profile={
id:0,
type:"basic",
icon:"",
name:"",
site:"ruochu",
siteType:"web",
isWeixin:""
}
var_inlineCodes=[];
var_inlineRun=function(fn){
_inlineCodes.push(fn);
}
_inlineRun(function(){
varnavclazz;
varpath=window.location.pathname;
switch(path){
case"/":
navclazz="home";
break;
case"/top":
navclazz="rank";
break;
case"/all":
navclazz="stack";
break;
case"/accounts/pay":
navclazz="pay";
break;
default:
break;
}
/*if(!navclazz&&path.startWith("/top")){
navclazz="rank";
}*/
if(navclazz){
$(".nav."+navclazz).addClass("active");
}
});