Show a little red dot on the northern resonator (details pane + mobile status bar)

This commit is contained in:
fkloft
2013-12-18 00:30:02 +01:00
parent a68c72583f
commit a2501f518f
5 changed files with 60 additions and 20 deletions

View File

@ -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() {