show selected portal's color in mobile status bar

This commit is contained in:
fkloft 2013-07-12 17:42:27 +02:00
parent ccc3872476
commit 4162a5bbaf
2 changed files with 10 additions and 1 deletions

View File

@ -70,7 +70,11 @@ window.runOnSmartphonesBeforeBoot = function() {
window.smartphoneInfo = function(data) { window.smartphoneInfo = function(data) {
var d = data.portalDetails; var d = data.portalDetails;
var t = 'L' + Math.floor(getPortalLevel(d)); var lvl = Math.floor(getPortalLevel(d));
if(lvl == 0)
var t = '<span class="portallevel">L' + lvl + '</span>';
else
var t = '<span class="portallevel" style="background: '+COLORS_LVL[lvl]+';">L' + lvl + '</span>';
var percentage = '0%'; var percentage = '0%';
var totalEnergy = getTotalPortalEnergy(d); var totalEnergy = getTotalPortalEnergy(d);
if(getTotalPortalEnergy(d) > 0) { if(getTotalPortalEnergy(d) > 0) {

View File

@ -32,6 +32,11 @@ body {
overflow: hidden; overflow: hidden;
} }
#mobileinfo .portallevel {
padding: 0 0.2em;
color: #FFF;
}
#sidebar, #chatcontrols, #chat, #chatinput { #sidebar, #chatcontrols, #chat, #chatinput {
background: #0B3351 !important; background: #0B3351 !important;
} }