Line-up
” +
”;
}else{
playerHome = ‘
‘
‘ + bibnumberH + ‘
‘ +
‘
‘ + liveData.TeamHome[i].playerName + ‘ ‘ + liveData.TeamHome[i].playerNameAbbr + ‘‘ + htmlplIconH + ‘
‘ +
‘
‘;
}
}else{
playerHome = ‘
‘
}
if(liveData.TeamAway[i]){
var bibnumberA = ”;
var htmlplIconA = playerStatusIcon(liveData.TeamAway[i].status);
if (liveData.TeamAway[i].bibNumber != 0)
{
bibnumberA = liveData.TeamAway[i].bibNumber;
}
if(playerLink == true)
{
playerAway = ‘
‘
‘ + bibnumberA + ‘
‘ +
” +
‘
‘;
}else{
playerAway = ‘
‘
‘ + bibnumberA + ‘
‘ +
‘
‘ + htmlplIconA + ‘‘ + liveData.TeamAway[i].playerNameAbbr + ‘ ‘ + liveData.TeamAway[i].playerName + ‘
‘ +
‘
‘;
}
}else{
playerAway = ‘
‘;
}
rowplayersHTML = rowplayersHTML + ‘
‘
}
var tableHtml = ‘
‘
$ j(‘#squads’).html(tableHtml);
$ j(‘#squads tbody tr:first-child’).addClass(‘first’)
};
function playerStatusIcon(status)
{
var htmlIcon = ”;
if(status == ‘1’){
htmlIcon = ‘‘;
}else if(status == ‘2’){
htmlIcon = ‘‘;
}else if(status == ‘3’){
htmlIcon = ‘‘;
}else if(status == ‘4’){
htmlIcon = ‘‘;
}else if(status == ‘5’){
htmlIcon = ‘‘;
}
return htmlIcon;
}
function createTableBench(liveData)
{
var playerLink = true;
var rowplayersBechHTML = ”;
var playerHome = ”;
var countTot = 0;
var totPlayer = 0;
if(liveData.TeamHome.length > liveData.TeamAway.length)
{
countTot = liveData.TeamHome.length;
}else{
countTot = liveData.TeamAway.length;
}
if(liveData.IdCup == 500 || liveData.IdCup == ‘106’)
{
totPlayer = 5;
}else
{
totPlayer = 11;
}
for(var i=totPlayer;i
‘ +
” +
”;
}else{
playerHome = ‘
‘
‘ + bibnumberH + ‘
‘ +
‘
‘ + liveData.TeamHome[i].playerName + ‘ ‘ + liveData.TeamHome[i].playerNameAbbr + ‘‘ + htmlplIconH + ‘
‘ +
‘
‘;
}
}else{
playerHome = ‘
‘
}
if(liveData.TeamAway[i]){
var bibnumberA = ”;
var htmlplIconA = playerStatusIcon(liveData.TeamAway[i].status);
if (liveData.TeamAway[i].bibNumber != 0)
{
bibnumberA = liveData.TeamAway[i].bibNumber;
}
if(playerLink == true)
{
playerAway = ‘
‘
‘ + bibnumberA + ‘
‘ +
” +
‘
‘;
}else{
playerAway = ‘
‘
‘ + bibnumberA + ‘
‘ +
‘
‘ + htmlplIconA + ‘ ‘ + liveData.TeamAway[i].playerNameAbbr + ‘ ‘ + liveData.TeamAway[i].playerName + ‘
‘ +
‘
‘;
}
}else{
playerAway = ‘
‘;
}
rowplayersBechHTML = rowplayersBechHTML + ‘
‘
}
var tableBenchHtml = ‘
‘
$ j(‘#substitutes’).html(tableBenchHtml);
};
function createTableCoach(liveData)
{
var coachLink = false;
if(coachLink == true)
{
var coachesHTML = ‘
Coaches
if(liveData.CoachHome != ”)
{
coachesHTML = coachesHTML + ” + liveData.CoachHome + ‘ (‘ + liveData.CoachCountryCodeHome + ‘)’;
}
coachesHTML = coachesHTML + ‘
if(liveData.CoachHome != ”)
{
coachesHTML = coachesHTML + ‘(‘ + liveData.CoachCountryCodeAway + ‘) ‘ + liveData.CoachAway + ”
}
coachesHTML = coachesHTML + ‘
‘;
}else{
var coachesHTML = ‘
Coaches
‘;
if(liveData.CoachHome != ”)
{
coachesHTML = coachesHTML + liveData.CoachHome + ‘ (‘ + liveData.CoachCountryCodeHome + ‘)’;
}
coachesHTML = coachesHTML + ‘
‘;
if(liveData.CoachAway != ”)
{
coachesHTML = coachesHTML + ‘(‘ + liveData.CoachCountryCodeAway + ‘) ‘ + liveData.CoachAway;
}
coachesHTML = coachesHTML + ‘
‘;
}
$ j(‘#coaches’).html(coachesHTML);
};
function initDATAcard(liveData) {
var cardHome = ”;
var cardAway = ”;
var totCard = ”;
var cardHTML = ”;
if (liveData.Card[0].TeamAway.length > liveData.Card[0].TeamHome.length) {
totCard = liveData.Card[0].TeamAway.length;
} else {
totCard = liveData.Card[0].TeamHome.length;
}
for(var i=0; i ‘ + liveData.Card[0].TeamHome[i].PlayerName + ‘ (‘ + liveData.Card[0].TeamHome[i].minute + ‘)’
} else {
cardHome = ‘
‘;
}
if(liveData.Card[0].TeamAway[i]) {
cardAway= ‘
‘
} else {
cardAway = ‘
‘;
}
cardHTML = cardHTML+ ‘
‘;
}
if (liveData.Card[0].TeamAway.length > 0 || liveData.Card[0].TeamHome.length > 0) {
$ j(‘#subheader’).removeClass(‘hideElement’);
$ j(‘#titleCard’).removeClass(‘hideElement’);
$ j(‘#cards’).removeClass(‘hideElement’);
}
$ j(‘#cards’).html(cardHTML);
};
function initDATAsubstitution(liveData)
{
var substitutionHome = ”;
var substitutionAway = ”;
var totSubstitution = 0;
var substitutionLineHTML = ”;
if (liveData.Substitution[0].TeamAway.length > liveData.Substitution[0].TeamHome.length )
{
totSubstitution = liveData.Substitution[0].TeamAway.length;
}else{
totSubstitution = liveData.Substitution[0].TeamHome.length;
}
for(var i = 0; i
‘ + liveData.Substitution[0].TeamHome[i].playerout + ‘
‘;
}
else
{
substitutionHome = ‘
‘;
}
if(liveData.Substitution[0].TeamAway[i])
{
substitutionAway = ‘
‘ + liveData.Substitution[0].TeamAway[i].playerout + ‘
‘;
}
else
{
substitutionAway = ‘
‘;
}
substitutionLineHTML = substitutionLineHTML + ‘
‘;
}
if(liveData.Substitution[0].TeamAway.length > 0 ||liveData.Substitution[0].TeamHome.length > 0)
{
$ j(‘#subheader’).removeClass(‘hideElement’);
$ j(‘#titleSub’).removeClass(‘hideElement’);
$ j(‘#substitution’).removeClass(‘hideElement’);
}
$ j(‘#substitution’).html(substitutionLineHTML);
};
function imgEvents(events) {
var i, buf = “”, e;
for(i = 0; i
} else if (e == “inHome” || e == “inAway”) {
if(showSubstitutions) {
buf += ‘ (+’ + events[i].m + ‘) ‘;
}
} else if (e == “outHome” || e == “outAway”) {
if(showSubstitutions) {
buf += ‘ (-‘ + events[i].m + ‘) ‘;
}
} else {
buf += ‘ ‘;
}
}
return buf;
}
Substitute(s)
Coaches
Raul GUTIERREZ (MEX)
(NGA) Manu GARBA
Officials
Referee: Svein Oddvar MOEN (NOR)Assistant Referee 1: Kim HAGLUND (NOR)Assistant Referee 2: Frank ANDAS (NOR)Fourth official: Kenn HANSEN (DEN)