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 += ''; }