1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 14:36:39 +02:00

Fix draw issues with translated strings

This commit is contained in:
Emmy D'Anello
2025-04-22 22:58:12 +02:00
parent 6d43c4b97e
commit bc06cf4903
2 changed files with 23 additions and 22 deletions

View File

@ -221,9 +221,10 @@ document.addEventListener('DOMContentLoaded', () => {
elem.innerText = `${trigram} 🎲 ${result}`
}
let nextTeam = document.querySelector(` div[id="dices-${tid}"] > div > div[class*="text-bg-warning"]`).getAttribute("data-team")
if (nextTeam) {
let nextTeamDiv = document.querySelector(` div[id="dices-${tid}"] > div > div[class*="text-bg-warning"]`)
if (nextTeamDiv) {
// If there is one team that does not have launched its dice, then we update the debug section
let nextTeam = nextTeamDiv.getAttribute("data-team")
let debugSpan = document.getElementById(`debug-dice-${tid}-team`)
if (debugSpan)
debugSpan.innerText = nextTeam