Fixed bad runner position code. CSS improvements.
This commit is contained in:
parent
fff37bd48e
commit
c25ef18f21
@ -415,10 +415,11 @@ select{
|
|||||||
}
|
}
|
||||||
.tab-list{
|
.tab-list{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
justify-content: space-around;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.tab-button{
|
.tab-button{
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
|
border: thin solid var(--button-color);
|
||||||
}
|
}
|
||||||
.ResultTable{
|
.ResultTable{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -59,10 +59,10 @@ function sortTable(tableToCheck) {
|
|||||||
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
|
rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
|
||||||
switching = true;
|
switching = true;
|
||||||
}
|
}
|
||||||
}
|
}/*
|
||||||
for (i = 1; i < (rows.length); i++) {
|
for (i = 1; i < (rows.length); i++) {
|
||||||
rows[i].getElementsByTagName("td")[0].innerHTML = i+1+".";
|
rows[i].getElementsByTagName("td")[0].innerHTML = i+".";
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -101,8 +101,15 @@ function loadresults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
splitTimes += '</tr>'
|
splitTimes += '</tr>'
|
||||||
|
|
||||||
for (let k = 0; k < xmlObj.ClassResult[i].PersonResult.length; k++) {
|
for (let k = 0; k < xmlObj.ClassResult[i].PersonResult.length; k++) {
|
||||||
resultTable += '<tr><td id="Ranking"></td>';
|
if(typeof(xmlObj.ClassResult[i].PersonResult[k].Result)!== 'undefined' && typeof(xmlObj.ClassResult[i].PersonResult[k].Result.Position)!== 'undefined'){
|
||||||
|
resultTable += `<tr><td id="Ranking">${xmlObj.ClassResult[i].PersonResult[k].Result.Position}.</td>`;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
resultTable += `<tr><td id="Ranking"></td>`;
|
||||||
|
}
|
||||||
|
|
||||||
//add name
|
//add name
|
||||||
resultTable += "<td>" + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Given + " " + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Family + "</td>"
|
resultTable += "<td>" + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Given + " " + xmlObj.ClassResult[i].PersonResult[k].Person.Name.Family + "</td>"
|
||||||
//add club
|
//add club
|
||||||
@ -287,8 +294,9 @@ function showHideSplits(className) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var interval = setInterval(checkConnection, 10000);
|
var interval = setInterval(checkConnection, 10000);
|
||||||
|
/*
|
||||||
if (window.location.hash) {
|
if (window.location.hash) {
|
||||||
changeTab(window.location.hash.replace(/#tab-/g,''));
|
changeTab(window.location.hash.replace(/#tab-/g,''));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// @license-end
|
// @license-end
|
||||||
|
Loading…
Reference in New Issue
Block a user