логотипы команд в расписании тура
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
Reference in New Issue
Block a user