Merge pull request #292 from j16sdiz/gh-pages

Show full capture time on mouse over
This commit is contained in:
Stefan Breunig
2013-02-24 23:03:51 -08:00
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. “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. - 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. - 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. - 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. - links: shows incoming and outgoing links. The tooltip explains the icons.

View File

@ -26,7 +26,10 @@ window.renderPortalDetails = function(guid) {
: null; : null;
var playerText = player ? ['owner', player] : 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 sinceText = time ? ['since', time] : null;
var linkedFields = ['fields', d.portalV2.linkedFields.length]; var linkedFields = ['fields', d.portalV2.linkedFields.length];