From 4162a5bbaf056cf76168d05d3f6ea4db3ffdff85 Mon Sep 17 00:00:00 2001 From: fkloft Date: Fri, 12 Jul 2013 17:42:27 +0200 Subject: [PATCH] show selected portal's color in mobile status bar --- code/smartphone.js | 6 +++++- mobile/smartphone.css | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/code/smartphone.js b/code/smartphone.js index 9d913c22..bc7371f7 100644 --- a/code/smartphone.js +++ b/code/smartphone.js @@ -70,7 +70,11 @@ window.runOnSmartphonesBeforeBoot = function() { window.smartphoneInfo = function(data) { var d = data.portalDetails; - var t = 'L' + Math.floor(getPortalLevel(d)); + var lvl = Math.floor(getPortalLevel(d)); + if(lvl == 0) + var t = 'L' + lvl + ''; + else + var t = 'L' + lvl + ''; var percentage = '0%'; var totalEnergy = getTotalPortalEnergy(d); if(getTotalPortalEnergy(d) > 0) { diff --git a/mobile/smartphone.css b/mobile/smartphone.css index bcbb8bef..6e7b6a9f 100644 --- a/mobile/smartphone.css +++ b/mobile/smartphone.css @@ -32,6 +32,11 @@ body { overflow: hidden; } +#mobileinfo .portallevel { + padding: 0 0.2em; + color: #FFF; +} + #sidebar, #chatcontrols, #chat, #chatinput { background: #0B3351 !important; }