Trump Press Conference Live: President-elect to be Grilled Over Russia Ties

0
33




‘;

}

if(data.matches.length!=0){
$(“.scoreWidgetTab li[data-slug=matchResultBox”).addClass(‘act’);
$(“.scoreWidgetTab li[data-slug=matchResultBox”).attr(‘matchLength’, data.matches.length);
$(“#matchResultBox”).html(widgetHtml);
}else{
$(“#matchResultBox”).html(‘

No Live match

‘);
$(“.scoreWidgetTab li”).removeClass(‘act’);
$(“.scoreWidgetTab li[data-slug=RecentMatch”).addClass(‘act’);
$(‘.scoreArrow’).show();
$(“.scoreArrow”).attr(‘tab_ul_id’, “RecentMatch”);
$(“#matchResultBox”).hide();
$(“#RecentMatch”).show();
}
if(data.matches.length==0 && typeof widgetUpdate!=’undefined’){
$(“.scoreWidgetTab li[data-slug=matchResultBox”).attr(‘matchLength’, data.matches.length);
$(“.scoreWidgetTab li[data-slug=RecentMatch”).addClass(‘act’);
$(“.scoreArrow”).attr(‘tab_ul_id’, “RecentMatch”);
$(“#matchResultBox”).hide();
$(“#RecentMatch”).show();
$(‘.scoreArrow’).show();
clearInterval(widgetUpdate);
}

if(data.matches.length>1){
$(‘.scoreArrow’).show();
}

},
error: function (error) {
$(“#matchResultBox”).html(“http://www.news18.com/”);
}
});
}
function get_active_inning(matchData){
var teamAScore=matchData.teama.scores;
var teamAName=matchData.teama.name;
var teamBScore=matchData.teamb.scores;
var teamBName=matchData.teamb.name;
var activeTeamName=”http://www.news18.com/”;
var activeTeamTotalRun=”http://www.news18.com/”;
var activeTeamWickets=”http://www.news18.com/”;
var activeTeamOvers=”http://www.news18.com/”;
var activeRunRate=”http://www.news18.com/”;
var activeStatus=”http://www.news18.com/”;
var matchNumber=matchData.matchno;
var scoreAHtml=”http://www.news18.com/”;
var scoreBHtml=”http://www.news18.com/”;
// Get active inning team data
for(var b=0; b ‘+activeTeamTotalRun+’/’+activeTeamWickets+’

‘+activeTeamOvers+’ Overs

‘;
scoreATdName=’ http://www.news18.com/ ‘+activeTeamName+’

‘;
}else{
scoreATdName=’ http://www.news18.com/ ‘+activeTeamName+’

‘;
scoreAHtml=’ Yet to play

‘;
}

// Get second team Inning
var secongTeamName=”http://www.news18.com/”;
var secongTeamTotalRun=”http://www.news18.com/”;
var secongTeamWickets=”http://www.news18.com/”;
var secondTeamScore=”http://www.news18.com/”;
var secondTeamOver=”http://www.news18.com/”;
if(activeTeamName==teamAName){
secondTeamScore=teamBScore;
secongTeamName=teamBName;
}else{
secondTeamScore=teamAScore;
secongTeamName=teamAName;
}
var secondTeamImage=’http://static.ibnlive.in.com/ibnlive/pix/ibnhome/cricketnext/microsite/teamsicon/’+secongTeamName.toLowerCase()+’.png’;

if(secondTeamScore.length > 0){
for(var b=0; b ‘+secongTeamTotalRun+’/’+secongTeamWickets+’

‘+secondTeamOver+’ Overs

‘;
scoreBTdName=’ http://www.news18.com/ ‘+secongTeamName+’

‘;
}else{
scoreBHtml=’ Yet to play

‘;
scoreBTdName=’ http://www.news18.com/ ‘+secongTeamName+’

‘;
}
var matchDetailHtml = ‘
‘+scoreATdName+’ vs

‘+scoreBTdName+’ ‘+scoreAHtml+scoreBHtml+’

‘;

return matchDetailHtml;
}
get_cricket_live_widget();
var widgetUpdate=setInterval(function(){
get_cricket_live_widget()
}, 150000);
});

Source link

LEAVE A REPLY