Merge branch 'master' of https://github.com/jonatkins/ingress-intel-total-conversion
Conflicts: plugins/player-tracker.user.js
This commit is contained in:
commit
ea3ca4264f
@ -307,14 +307,19 @@ window.plugin.playerTracker.drawData = function() {
|
|||||||
title += '<br>'
|
title += '<br>'
|
||||||
+ ago(last.time, now) + ' ago<br>'
|
+ ago(last.time, now) + ' ago<br>'
|
||||||
+ window.chat.getChatPortalName(last);
|
+ window.chat.getChatPortalName(last);
|
||||||
// show previous data in popup
|
// show previous data in tooltip
|
||||||
var minsAgo = '\t<span style="white-space: nowrap;"> ago</span>\t';
|
if(evtsLength >= 2) {
|
||||||
if(evtsLength >= 2)
|
title += '<br> <br>previous locations:<br>'
|
||||||
title += '<br> <br>previous locations:<br>';
|
+ '<table style="border-spacing:0">';
|
||||||
|
}
|
||||||
for(var i = evtsLength - 2; i >= 0 && i >= evtsLength - 10; i--) {
|
for(var i = evtsLength - 2; i >= 0 && i >= evtsLength - 10; i--) {
|
||||||
var ev = playerData.events[i];
|
var ev = playerData.events[i];
|
||||||
title += ago(ev.time, now) + minsAgo + window.chat.getChatPortalName(ev) + '<br>';
|
title += '<tr align="left"><td>' + ago(ev.time, now) + '</td>'
|
||||||
|
+ '<td>ago</td>'
|
||||||
|
+ '<td>' + window.chat.getChatPortalName(ev) + '</td></tr>';
|
||||||
}
|
}
|
||||||
|
if(evtsLength >= 2)
|
||||||
|
title += '</table>';
|
||||||
|
|
||||||
// calculate the closest portal to the player
|
// calculate the closest portal to the player
|
||||||
var eventPortal = []
|
var eventPortal = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user