Dambulla vs Kandy
// var socket=io('http://localhost:8080'); var socket=io('http://202.124.184.250:8080');
jQuery( document ).ready(function() { console.log( "ready" ); var prev_bat_team = 0;
socket.on('message',function (message) { message = JSON.parse(message); console.log(message); if( message.data.cric.commentary){ jQuery('#cmt_wrap').prepend('
'+message.data.cric.commentary.event+'
'+message.data.cric.commentary.comment+'
'); } if(message.data.cric.match){ console.log(message.data.cric.match.teams_1_inn2_r[0]); function ove(balls) { var overs = 0; if(balls %6 == 0){ overs = balls/6; }else{ overs = parseInt(balls/6)+"."+(+balls - +parseInt(balls/6)*6); } console.log(overs); return overs; }
if(!message.data.cric.match.teams_1_inn2_r[0]){
jQuery('#score_1_'+message.data.cric.match.teams_1_r[0]['id']).html(message.data.cric.match.teams_1_r[0]['score'] + " / " + message.data.cric.match.teams_1_r[0]['wkts']); jQuery('#over_1_'+message.data.cric.match.teams_1_r[0]['id']).html("("+ove(message.data.cric.match.teams_1_r[0]['balls'])+" overs)"); }else { jQuery('#score_1_'+message.data.cric.match.teams_1_r[0]['id']).html(message.data.cric.match.teams_1_r[0]['score'] + " / " + message.data.cric.match.teams_1_r[0]['wkts']+" & "+message.data.cric.match.teams_1_inn2_r[0]['score']+" / "+message.data.cric.match.teams_1_inn2_r[0]['wkts']); jQuery('#over_1_'+message.data.cric.match.teams_1_r[0]['id']).html("("+ove(message.data.cric.match.teams_1_inn2_r[0]['balls'])+" overs)"); } if(!message.data.cric.match.teams_2_inn2_r[0]){
jQuery('#score_2_'+message.data.cric.match.teams_2_r[0]['id']).html(message.data.cric.match.teams_2_r[0]['score'] + " / " + message.data.cric.match.teams_2_r[0]['wkts']); jQuery('#over_2_'+message.data.cric.match.teams_2_r[0]['id']).html("("+ove(message.data.cric.match.teams_2_r[0]['balls'])+" overs)"); }else { jQuery('#score_2_'+message.data.cric.match.teams_2_r[0]['id']).html(message.data.cric.match.teams_2_r[0]['score'] + " / " + message.data.cric.match.teams_2_r[0]['wkts']+" & "+message.data.cric.match.teams_2_inn2_r[0]['score']+" / "+message.data.cric.match.teams_2_inn2_r[0]['wkts']); jQuery('#over_2_'+message.data.cric.match.teams_2_r[0]['id']).html("("+ove(message.data.cric.match.teams_2_inn2_r[0]['balls'])+" overs)"); }
if(message.data.cric.match.teams_1_r[0]['extras']!=null){ jQuery('#extras_1_r_'+message.data.cric.match.teams_1_r[0]['id']).html("("+ove(message.data.cric.match.teams_1_r[0]['extras'])); } if(message.data.cric.match.teams_2_r[0]['extras']!=null){ jQuery('#extras_2_r_'+message.data.cric.match.teams_1_r[0]['id']).html("("+ove(message.data.cric.match.teams_2_r[0]['extras'])); } if(message.data.cric.match.teams_1_inn2_r[0]['extras']!=null){ jQuery('#extras_1_r_2_'+message.data.cric.match.teams_1_inn2_r[0]['id']).html("("+ove(message.data.cric.match.teams_1_inn2_r[0]['extras'])); } if(message.data.cric.match.teams_2_inn2_r[0]['extras']!=null){ jQuery('#extras_1_r_2_'+message.data.cric.match.teams_2_inn2_r[0]['id']).html("("+ove(message.data.cric.match.teams_2_inn2_r[0]['extras'])); }
//extras_1_r_2_ // if(prev_bat_team != message.data.cric.team_id){ jQuery('#widget_wrapper').load(document.URL + ' #widget_wrapper'); // } // prev_bat_team = message.data.cric.team_id // }
}); });
Full Scorecard
Team Dambulla
257/7
(49 overs)
Result
Team Kandy
17/0
(1.1 overs)
No result
Team Dambulla’s Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Nishan Madushka | c M.Bhanuka b I.Udana | 15 | 23 | |||
Sandun Weerakody | lbw by J.Silva | 7 | 6 | |||
Sachithra Serasinghe | c D.Gunathilaka b J.Mendis | 41 | 66 | |||
Ashan Priyanjan | c P.Nissanka b C.Asalanka | 73 | 77 | |||
Milinda Siriwardane | b C.Asalanka | 9 | 16 | |||
TN.Sampath | c I.Udana b P.Jayasuriya | 42 | 52 | |||
Sachithra Senanayake | c R.Mendis b J.Mendis | 17 | 15 | |||
Lahiru Madushanka | not out | 34 | 33 | |||
Shehan Madushanka | not out | 9 | 6 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Isuru Udana | 8 | 0 | 59 | 1 | 7.38 |
Janith Silva | 5 | 2 | 17 | 1 | 3.40 |
Prabath Jayasuriya | 10 | 0 | 50 | 1 | 5.00 |
Jeewan Mendis | 10 | 0 | 34 | 2 | 3.40 |
Danushka Gunathilaka | 8 | 0 | 52 | 0 | 6.50 |
Ramesh Mendis | 1 | 0 | 11 | 0 | 11.00 |
Charith Asalanka | 7 | 1 | 32 | 2 | 4.57 |
Team Kandy’s Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Danushka Gunathilake | not out | 13 | 5 | |||
Pathum Nissanka | not out | 4 | 2 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Binura Fernando | 1 | 0 | 13 | 0 | 13.00 |
Lahiru Madushanka | 0.1 | 0 | 4 | 0 | 40.00 |