From 54bc29756f72a238c115945cb8f8afa1f35903ce Mon Sep 17 00:00:00 2001 From: Trygve Date: Wed, 8 Nov 2023 17:37:07 +0100 Subject: [PATCH] =?UTF-8?q?Fiksa=20strekktidsvisninga=20for=20diska=20l?= =?UTF-8?q?=C3=B8pere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liveresults.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/liveresults.js b/liveresults.js index 1fe6ec6..a1b9542 100644 --- a/liveresults.js +++ b/liveresults.js @@ -177,7 +177,7 @@ function loadresults() { } } } - else if (typeof(xmlObj.ClassResult[i].PersonResult[k])!== 'undefined' && typeof(xmlObj.ClassResult[i].PersonResult[0].Result.SplitTime)!== 'undefined' && persStatus == 'Disqualified'){ + else if (typeof(xmlObj.ClassResult[i].PersonResult[k])!== 'undefined' && typeof(xmlObj.ClassResult[i].PersonResult[0].Result.SplitTime)!== 'undefined' && persStatus == 'MissingPunch'){ splitTimes += '' + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Given + " " + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Family + "(DSQ)"; let controlTimeDelta = 0; @@ -189,13 +189,9 @@ function loadresults() { controlTimeDelta += controlTime; splitTimes += ''+ TimeFormater(controlTime) +'
'+ TimeFormater(xmlObj.ClassResult[i].PersonResult[k].Result.SplitTime[t].Time)+'' } - } - } - else { - splitTimes += '' - } - } - } + else {splitTimes += ''} + }}} + } splitTimes += ''; }