логотипы команд в расписании тура

This commit is contained in:
2026-05-15 14:05:05 +03:00
parent eda35ade7e
commit 5110c402e8
2 changed files with 46 additions and 0 deletions

View File

@@ -3701,4 +3701,27 @@ async function saveReferees() {
console.error("saveReferees failed", e);
alert("Ошибка сети при сохранении судей");
}
}
function getTourChannelLogoPath(matchId) {
const checked = Array.from(
document.querySelectorAll(`.tour-channel-checkbox[data-match-id="${matchId}"]:checked`)
).map(el => el.dataset.channel);
const hasMatch = checked.includes("match");
const hasPremier = checked.includes("match_premier");
if (hasMatch && hasPremier) {
return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Лого каналов\\матч-матч_премьер.png";
}
if (hasPremier) {
return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Лого каналов\\матч_премьер.png";
}
if (hasMatch) {
return "D:\\Графика\\ФУТБОЛ\\Женская Суперлига 2026\\Photo\\EMPTY.png";
}
return "";
}