Show full portal capture time on tooltips

This commit is contained in:
Daniel Cheng (鄭郁邦) 2013-02-24 22:56:16 +08:00 committed by Daniel Cheng
parent f213a481e8
commit 4ecec63a0d
2 changed files with 5 additions and 2 deletions

View File

@ -117,7 +117,7 @@ Starting from the top, the sidebar shows this information:
“Random Details” are displayed in four columns. The outer ones show the data while the inner ones are the titles.
- owner: who deployed the first resonator after it has been neutral/unclaimed.
- since: when was the first resonator deployed after it has been neutral/unclaimed.
- since: when was the first resonator deployed after it has been neutral/unclaimed. The reasonators decay every 24hrs from capture. Move the cursor over it to show the full date time.
- range: shows how far links made from this portal can be. Click on the value to zoom out to link range. The red circle shows how far links may reach.
- energy: shows current and maximum energy if fully charged. The tooltip contains the exact numbers.
- links: shows incoming and outgoing links. The tooltip explains the icons.

View File

@ -26,7 +26,10 @@ window.renderPortalDetails = function(guid) {
: null;
var playerText = player ? ['owner', player] : null;
var time = d.captured ? unixTimeToString(d.captured.capturedTime) : null;
var time = d.captured
? '<span title="' + unixTimeToString(d.captured.capturedTime, true) + '">'
+ unixTimeToString(d.captured.capturedTime) + '</span>'
: null;
var sinceText = time ? ['since', time] : null;
var linkedFields = ['fields', d.portalV2.linkedFields.length];