Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion
This commit is contained in:
commit
7b652cfa54
@ -45,12 +45,14 @@ window.requests.abort = function() {
|
||||
// to website. Updates info in layer chooser.
|
||||
window.renderUpdateStatus = function() {
|
||||
|
||||
var t = '<span class="help portallevel" title="Indicates portal levels displayed. Zoom in to display lower level portals."><b>portals</b>: ';
|
||||
var t = '<span class="help portallevel" title="Indicates portal levels displayed. Zoom in to display lower level portals.">';
|
||||
if(!window.isSmartphone()) // space is valueable
|
||||
t += '<b>portals</b>: ';
|
||||
var minlvl = getMinPortalLevel();
|
||||
if(minlvl === 0)
|
||||
t += 'all';
|
||||
t+= '<span id="loadlevel">all</span>';
|
||||
else
|
||||
t+= 'L'+minlvl+(minlvl<8?'+':'');
|
||||
t+= '<span id="loadlevel" style="background:'+COLORS_LVL[minlvl]+'">L'+minlvl+(minlvl<8?'+':'') + '</span>';
|
||||
t +='</span>';
|
||||
|
||||
t += ' <span class="map"><b>map</b>: ';
|
||||
|
@ -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 = '<span class="portallevel">L' + lvl + '</span>';
|
||||
else
|
||||
var t = '<span class="portallevel" style="background: '+COLORS_LVL[lvl]+';">L' + lvl + '</span>';
|
||||
var percentage = '0%';
|
||||
var totalEnergy = getTotalPortalEnergy(d);
|
||||
if(getTotalPortalEnergy(d) > 0) {
|
||||
@ -79,6 +83,28 @@ window.smartphoneInfo = function(data) {
|
||||
t += ' ' + percentage + ' ';
|
||||
t += d.portalV2.descriptiveText.TITLE;
|
||||
|
||||
var l,v,max,perc;
|
||||
for(var i=0;i<8;i++)
|
||||
{
|
||||
var reso = d.resonatorArray.resonators[i];
|
||||
if(reso) {
|
||||
l = parseInt(reso.level);
|
||||
v = parseInt(reso.energyTotal);
|
||||
max = RESO_NRG[l];
|
||||
perc = v/max*100;
|
||||
}
|
||||
else {
|
||||
l = 0;
|
||||
v = 0;
|
||||
max = 0;
|
||||
perc = 0;
|
||||
}
|
||||
|
||||
t += '<div class="resonator '+TEAM_TO_CSS[getTeam(d)]+'" style="border-top-color: '+COLORS_LVL[l]+';left: '+(100*i/8.0)+'%;">';
|
||||
t += '<div class="filllevel" style="width:'+perc+'%;"></div>';
|
||||
t += '</div>'
|
||||
}
|
||||
|
||||
$('#mobileinfo').html(t);
|
||||
}
|
||||
|
||||
|
@ -8,22 +8,72 @@ body {
|
||||
width: 100%;
|
||||
color: #d4d5d6;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#updatestatus .map {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
#innerstatus {
|
||||
padding: 4px;
|
||||
float: right;
|
||||
max-width: 50%;
|
||||
width: 50%;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#loadlevel {
|
||||
border-width: 0;
|
||||
background: transparent;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#mobileinfo {
|
||||
float: left;
|
||||
max-width: 50%;
|
||||
width: 50%;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
position:relative;
|
||||
padding: 4px 0;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#mobileinfo .portallevel {
|
||||
padding: 0 0.25em;
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#mobileinfo .resonator {
|
||||
position: absolute;
|
||||
width: 12%; /* a little less that 1/8 to have a small distance */
|
||||
height: 100%;
|
||||
top: 0;
|
||||
border-top: 3px solid red;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
}
|
||||
|
||||
#mobileinfo .filllevel {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
#mobileinfo .enl .filllevel {
|
||||
background-color: #03fe03 !important;
|
||||
}
|
||||
|
||||
#mobileinfo .res .filllevel {
|
||||
background-color: #00c5ff !important;
|
||||
}
|
||||
|
||||
#sidebar, #chatcontrols, #chat, #chatinput {
|
||||
|
Loading…
x
Reference in New Issue
Block a user