affichage set

This commit is contained in:
Allan Cueff
2023-11-09 18:41:20 +01:00
parent a267c0658c
commit d22e314678

View File

@@ -435,6 +435,10 @@ if(window.location.href.includes("index.html") || window.location.href === "http
const cardHeaderPointT2 = document.createElement('p');
cardHeaderPointT2.id = "pointT2" + match.id;
cardHeaderPointT2.innerText = match.point2;
if(match.expand.sport.name === "badminton" || match.expand.sport.name === "volleyball"){
cardHeaderPointT1.innerText = match.point1 + ' (' + match.set1 + ')';
cardHeaderPointT2.innerText = match.point2 + ' (' + match.set2 + ')';
}
cardHeaderPointDiv.appendChild(cardHeaderPointT1);
cardHeaderPointDiv.appendChild(cardHeaderSeparator);
cardHeaderPointDiv.appendChild(cardHeaderPointT2);