feat(ScanClient): display total distance in kilometers and meters
This commit is contained in:
@@ -196,6 +196,15 @@
|
|||||||
(Math.floor(scaninfo.lapTime % 60) + "").padStart(2, "0") +
|
(Math.floor(scaninfo.lapTime % 60) + "").padStart(2, "0") +
|
||||||
"s"}
|
"s"}
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<b>{$_('total-distance')}:</b>
|
||||||
|
{Math.floor(scaninfo.runner.distance / 1000) +
|
||||||
|
"km " +
|
||||||
|
(
|
||||||
|
Math.floor(scaninfo.runner.distance % 1000) + ""
|
||||||
|
).padStart(3, "0") +
|
||||||
|
"m"}
|
||||||
|
</p>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
{/if}
|
{/if}
|
||||||
{#if state.includes("scan_")}
|
{#if state.includes("scan_")}
|
||||||
|
|||||||
Reference in New Issue
Block a user