From: Urban Wallasch Date: Wed, 18 Aug 2021 14:35:08 +0000 (+0200) Subject: * Round cargo mass display to first decimal digit in dash.html. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=ets2_tele.git * Round cargo mass display to first decimal digit in dash.html. --- diff --git a/dash.html b/dash.html index d5d4214..a09b4d6 100644 --- a/dash.html +++ b/dash.html @@ -510,7 +510,7 @@ function update_cb() { // current job parameters: if ( !last_tele || last_tele.job_isvalid != tele.job_isvalid ) { cargo.innerHTML = tele.job_isvalid ? tele.job_cargo : '-'; - cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(0) + 't' : '-'; + cargomass.innerHTML = tele.job_isvalid ? (tele.job_cargo_mass / 1000).toFixed(1) + 't' : '-'; source.innerHTML = tele.job_isvalid ? tele.job_source_city : '-'; destination.innerHTML = tele.job_isvalid ? tele.job_destination_city : '-'; job_dist.innerHTML = tele.job_isvalid ? tele.job_planned_distance + 'km' : '-';