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