Cricket Live Score, Ind vs SL 2017, Third Test, Day 3 in Delhi: India Hunt For Wickets – News18


‘;
testInningTabs =testInningTabs+’

‘+get_inningSwitcher_tabs(data,secondInningBattingTeam,activeInning,2)+’

‘;
testInningTabs =testInningTabs+’

‘;
var allInningTabs =testInningTabs;
}else{
var allInningTabs =”;
}
// innings data switching tabs ends ends //

scoresBox = scoresBox+allInningTabs;

/* start batsman block/ start html left block */
var fullTeamList = ‘

‘;

for(var a=0; a

‘;
}
if(inningData.batsmen.list.length==0){
fullTeamList=fullTeamList+’

‘;
}
fullTeamList=fullTeamList+’

Batsman R B 4s 6s SR
‘+batsManName+’ ‘+runs+’ ‘+ballsFaced+’ ‘+fours+’ ‘+sixes+’ ‘+strikeRate+’
 

‘;
scoresBox=scoresBox+fullTeamList;
/* End batsman block */

/* Start bowlers block */
var bowlersListData=’

‘;

for(var a=0; a

‘;

if (a == 1) { break; }
}
}
if(inningData.bowler.list.length==0){
bowlersListData = bowlersListData+’

‘;
}
bowlersListData = bowlersListData+’

Bowlers O M R WKT WD NB ECON
‘+bowlerName+’ ‘+overs+’ ‘+maidenOvers+’ ‘+runsGiven+’ ‘+wickets+’ ‘+wides+’ ‘+noballs+’ ‘+economyRate+’
 

‘;
scoresBox = scoresBox+bowlersListData;

var finalHtmlAboveCommentary = scoresBox;
$(‘#article_scores’).html(finalHtmlAboveCommentary);
}
});
}

/* function to generate inning’s scores starts here */
function get_innings_score(data,teamName){
var matchType = data.matchtype;
var scoreSummary = ”;
var allInnings = new Array();
if(matchType==’test’){
allInnings[0] = data.firstInnings;
allInnings[1] = data.secondInnings;
if(typeof data.thirdInnings!=’undefined’){
allInnings[2] = data.thirdInnings;
}
allInnings[3] = data.fourthInnings;
total_inning = 4;
}else{
allInnings[0] = data.firstInnings;
allInnings[1] = data.secondInnings;
total_inning=2;
}
var x=1;
for(var a=0; a ‘;

scoreSummary = scoreSummary+seperatorSymbol+allInnings[a].Equation.Total+’/’+allInnings[a].Equation.Wickets+inningDeclaredStatus;

x=x+1;
}else{
inningDeclaredStatus =”;
scoreSummary = scoreSummary+allInnings[a].Equation.Total+’/’+allInnings[a].Equation.Wickets+’ (‘+allInnings[a].Equation.Overs+’) R/R: ‘+runRate+’‘;
x=x+1;

}

}
}else{
return scoreSummary;
}

}
return scoreSummary;
}
/* function to generate inning’s scores ends here */

/* function to generate tabs for test match team’s innings’s scores switch starts here */
function get_inningSwitcher_tabs(data,teamName,inningName,teamNumber) {

var matchType=data.matchtype;

if(teamNumber==2){
var rightTabStyle = ”;
var tabPositionClass = ‘fright’;
}else{
var rightTabStyle = ”;
var tabPositionClass = ‘fleft’;
}

// var tabList = ‘

‘;
var tabList=”;
var allInnings = new Array();
var allInningNamesArray = new Array();

if(matchType==’test’){
allInnings[0] = data.firstInnings;
allInnings[1] = data.secondInnings;
if(typeof data.thirdInnings!=’undefined’){
allInnings[2] = data.thirdInnings;
}
allInnings[3] = data.fourthInnings;
total_inning=4;
}

allInningNamesArray[0] = ‘firstInnings’;
allInningNamesArray[1] = ‘secondInnings’;
allInningNamesArray[2] = ‘thirdInnings’;
allInningNamesArray[3] = ‘fourthInnings’;

var suffixes = [”,’st’,’nd’];

var x=1;
var totalTab=2;
for(var a=0; a ‘+x+suffixes[x]+’ innings’;
x=x+1;
//totalTab=totalTab – 1;
}
}

tabList = tabList;
return tabList;
}
/* function to generate tabs for test match team’s innings’s scores switch ends here */

var updateScoreArticle=setInterval(function(){
var inningName=$(“#active_inning”).val();
var teamName=$(“#active_country”).val();
get_teams_score_box_article(inningName,teamName)
}, 17000);

});

The Author

Vadhiya Natha

Vadhiya Natha is an Event blogger and admin of Sports24.in. Mostly like to write sports article. He is enjoying sports articles and all sports event, specially Cricket is his favorite sports.
Sports24 © 2017