Restore 3-digit distance title (see #38) removed with PR #56

This commit is contained in:
Norbert Renner 2018-01-27 11:31:41 +01:00
parent 20959fd287
commit 6d3a7a6b1c
2 changed files with 4 additions and 1 deletions

View file

@ -63,7 +63,8 @@ footer {
word-break: break-all; word-break: break-all;
font-weight: bold; font-weight: bold;
} }
.stats-label abbr[title] { .stats-label abbr[title],
#distance {
text-decoration: none; text-decoration: none;
border-bottom: 1px dotted #818a91; border-bottom: 1px dotted #818a91;
} }

View file

@ -9,6 +9,8 @@ BR.TrackStats = L.Class.extend({
meanEnergy = stats.trackLength ? L.Util.formatNum(stats.totalEnergy / 36. / stats.trackLength, 2) : ''; meanEnergy = stats.trackLength ? L.Util.formatNum(stats.totalEnergy / 36. / stats.trackLength, 2) : '';
$('#distance').html(length1); $('#distance').html(length1);
// alternative 3-digit format down to meters as tooltip
$('#distance').attr('title', length3 + ' km');
$('#ascend').html(stats.filteredAscend + ' (' + stats.plainAscend +')'); $('#ascend').html(stats.filteredAscend + ' (' + stats.plainAscend +')');
$('#cost').html(stats.cost + ' (' + meanCostFactor + ')'); $('#cost').html(stats.cost + ' (' + meanCostFactor + ')');
$('#totaltime').html(formattedTime); $('#totaltime').html(formattedTime);