Commit 7fce8136 authored by Regis's avatar Regis
Browse files

Merge branch 'fix_of_typo_and_RK_miscalculation' into 'master'

fixing of RK miscalculation and typos

See merge request a_boiteau/site-vikazimut-stage!48
parents 395a1748 e9958241
......@@ -152,7 +152,7 @@ function renderTimeSheet(distances) {
let orienteerTotalDistance = 0;
let orienteerTotalTime = 0;
let time, distance;
let time, orienteerDistance;
for (let i = 0; i < orienteerData[1].length; i++) {
let index = i;
......@@ -166,11 +166,11 @@ function renderTimeSheet(distances) {
if (i > 0) {
time = orienteerData[2][i];
if (time > 0) {
distance = orienteerData[3][i]
orienteerDistance = orienteerData[3][i]
timeCell.innerHTML = convertTimetoString(time);
distanceCell.innerHTML = deltaDistanceCalculator(distance,distances[i]);
paceCell.innerHTML = RKCalculator(time,distance) + " / " + speedCalculator(time,distance);
orienteerTotalDistance += distance;
distanceCell.innerHTML = deltaDistanceCalculator(orienteerDistance,distances[i]);
paceCell.innerHTML = RKCalculator(time,distances[i]) + " / " + speedCalculator(time,orienteerDistance);
orienteerTotalDistance += orienteerDistance;
orienteerTotalTime += time;
} else {
timeCell.innerHTML = "--:--";
......
......@@ -1279,7 +1279,7 @@ de l’Informatique.</target>
</trans-unit>
<trans-unit id="Imw25C4" resname="course.notPublished.message">
<source>course.notPublished.message</source>
<target>Carte non publique actuellement</target>
<target>Carte actuellement non publique</target>
</trans-unit>
<trans-unit id="6.EVySp" resname="course.notPublished.timeLeft.message">
<source>course.notPublished.timeLeft.message</source>
......@@ -1291,7 +1291,7 @@ de l’Informatique.</target>
</trans-unit>
<trans-unit id="WIjSO_U" resname="course.time.selection.zone">
<source>course.time.selection.zone</source>
<target>Limiter l'accès au parcours dans le tempse</target>
<target>Limiter l'accès au parcours dans le temps</target>
</trans-unit>
<trans-unit id="BxVa1iR" resname="course.indicate.start.day">
<source>course.indicate.start.day</source>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment