Display current energy for whole portal

This commit is contained in:
Pavol Babincak
2013-02-09 17:30:32 +01:00
parent c9045aa988
commit 904be9b5b1
4 changed files with 26 additions and 3 deletions

View File

@ -148,3 +148,7 @@ if (typeof String.prototype.startsWith !== 'function') {
return this.slice(0, str.length) === str;
};
}
window.prettyEnergy = function(nrg) {
return nrg> 1000 ? Math.round(nrg/1000) + 'k': nrg;
}