finish chat feature; hide low level portal on zoom out; introduce render limit

This commit is contained in:
Stefan Breunig
2013-02-04 02:52:24 +01:00
parent ecfaca7f9b
commit f92c963a54
9 changed files with 639 additions and 310 deletions

View File

@ -30,11 +30,11 @@ window.renderPortalDetails = function(guid) {
// collect and html-ify random data
var randDetails = [playerText, sinceText, getRangeText(d), getEnergyText(d), linksText, getAvgResoDistText(d)];
randDetails = randDetails.map(function(e) {
if(!e) return '';
e = e.split(':');
e = '<aside>'+e.shift()+'<span>'+e.join(':')+'</span></aside>';
return e;
randDetails = randDetails.map(function(detail) {
if(!detail) return '';
detail = detail.split(':');
detail = '<aside>'+detail.shift()+'<span>'+detail.join(':')+'</span></aside>';
return detail;
}).join('\n');
// replacing causes flicker, so if the selected portal does not