Show a little red dot on the northern resonator (details pane + mobile status bar)
This commit is contained in:
@ -22,20 +22,20 @@
|
||||
window.plugin.resoEnergyPctInPortalDetal = function() {};
|
||||
|
||||
window.plugin.resoEnergyPctInPortalDetal.updateMeter = function(data) {
|
||||
var meterLevel = $("span.meter-level");
|
||||
meterLevel
|
||||
.css('top','0px')
|
||||
.css('left','5px')
|
||||
.css('margin-left','0px')
|
||||
.css('font-size','80%')
|
||||
.css('line-height','18px');
|
||||
meterLevel.each(function() {
|
||||
var matchResult = $(this).parent().attr('title').match(/\((\d*\%)\)/);
|
||||
if(matchResult) {
|
||||
var newMeterContent = 'L' + $(this).html() + ' ' + matchResult[1];
|
||||
$(this).html(newMeterContent);
|
||||
}
|
||||
});
|
||||
$("span.meter-level")
|
||||
.css({
|
||||
"word-spacing": "-1px",
|
||||
"text-align": "left",
|
||||
"font-size": "90%",
|
||||
"padding-left": "2px",
|
||||
})
|
||||
.each(function() {
|
||||
var matchResult = $(this).parent().attr('title').match(/\((\d*\%)\)/);
|
||||
if(matchResult) {
|
||||
var html = $(this).html() + '<div style="position:absolute;right:0;top:0">' + matchResult[1] + '</div>';
|
||||
$(this).html(html);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
var setup = function() {
|
||||
|
Reference in New Issue
Block a user