// 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
Sri Lanka U19
226/10 & 233/9
(92 overs)
Result
Ban U19
109/10 & 276/10
(83.1 overs)
SLU19 won by 74 runs
Sri Lanka U19’s 1st Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Navod Paranavithana | c T Hridoy b S Alam | 79 | 153 | |||
Nipun Dananjaya | c R Hossain b S Alam | 0 | 13 | |||
Kamil Mishara | lbw by R Hasan | 52 | 96 | |||
Mohomed Shamaz | b S Alam | 10 | 34 | |||
Sonal Dinusha | c A Ali b M Chowdhury | 8 | 36 | |||
Janishka Perera | c A Ali b S Alam | 0 | 1 | |||
Sandun Mendis | c S Hossain b S Alam | 10 | 26 | |||
Chaminda Wijesinghe | c M Hasan b R Hossain | 17 | 66 | |||
Ashan Daniel | c R Hossain b M Chowdhury | 3 | 26 | |||
Naveen Fernando | not out | 20 | 64 | |||
Rohan Sanjaya | b M Chowdhury | 14 | 33 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Mittunjoy Chowdhury | 25 | 6 | 52 | 2 | 2.08 |
Sahin Alam | 14 | 4 | 37 | 5 | 2.64 |
Shamim Hossain | 9 | 3 | 16 | 0 | 1.78 |
Towhid Hridoy | 7 | 2 | 25 | 0 | 3.57 |
Rishad Hossain | 15 | 2 | 50 | 1 | 3.33 |
Rakibul Hasan | 21 | 6 | 37 | 1 | 1.76 |
Ban U19’s 1st Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Tanzid Hasan | c N Fernando b R Sanjaya | 50 | 55 | |||
Sajd Hossain | c K Mishara b R Sanjaya | 22 | 37 | |||
Hassan Joy | b A Daniel | 0 | 3 | |||
Towhid Hridoy | b A Daniel | 1 | 8 | |||
Shamim Hossain | lbw by A Daniel | 3 | 11 | |||
Akbar Ali | c K Mishara b R Sanjaya | 1 | 16 | |||
Amite Hasan | c A Daniel b R Sanjaya | 0 | 7 | |||
Rakibul Hasan | not out | 15 | 44 | |||
Mittunjoy Chowdhury | lbw by A Daniel | 3 | 14 | |||
Rishad Hossain | b A Daniel | 0 | 4 | |||
Sahin Alam | lbw by R Sanjaya | 0 | 19 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Naveen Fernando | 3 | 0 | 19 | 0 | 6.33 |
Chamindu Wijesinghe | 5 | 1 | 22 | 0 | 4.40 |
Ashan Daniel | 15 | 4 | 37 | 5 | 2.47 |
Rohan Sanjaya | 11 | 4 | 17 | 5 | 1.55 |
Sandun Mendis | 2 | 0 | 2 | 0 | 1.00 |
Sri Lanka U19’s 2nd Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Navod Paranavithana | st. A Ali b T Hridoy | 36 | 62 | |||
Nipun Dananjaya | c T Hasan b R Hasan | 23 | 28 | |||
Kamil Mishara | c T Hasan b R Hasan | 13 | 70 | |||
Mohomed Shamaz | st. A Ali b R Hasan | 14 | 84 | |||
Sonal Dinusha | c T Hasan b R Hasan | 37 | 98 | |||
Janishka Perera | c A Hasan b S Alam | 0 | 24 | |||
Sandun Mendis | c S Hossain b R Hasan | 36 | 71 | |||
Chamindu Wijesinghe | lbw by R Hasan | 55 | 69 | |||
Naveen Fernando | c T Hasan b R Hasan | 0 | 3 | |||
Ashan Daniel | not out | 10 | 29 | |||
Rohan Sanjaya | not out | 1 | 16 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Sahin Alam | 14 | 1 | 31 | 1 | 2.21 |
Shamim Hossain | 4 | 1 | 12 | 0 | 3.00 |
Rakibul Hasan | 42 | 10 | 93 | 7 | 2.21 |
Towhid Hridoy | 8 | 2 | 24 | 1 | 3.00 |
Rishad Hossain | 10 | 1 | 41 | 0 | 4.10 |
Mittunjoy Chowdhury | 14 | 7 | 27 | 0 | 1.93 |
Ban U19’s 2nd Innings
Batting | R | B | ||||
---|---|---|---|---|---|---|
Tanzid Hasan | lbw by R Sanjaya | 37 | 48 | |||
Sajd Hossain | c K Mishara b R Sanjaya | 36 | 80 | |||
Towhid Hridoy | c K Mishara b S Mendis | 18 | 48 | |||
Amite Hasan | b R Sanjaya | 16 | 53 | |||
Shamim Hossain | c J Perera b S Mendis | 13 | 34 | |||
Akbar Ali | b R Sanjaya | 90 | 113 | |||
Rakibul Hasan | c R Sanjaya b S Mendis | 4 | 7 | |||
Mrittunjoy Chowdhury | c N Paranavithana b A Daniel | 23 | 21 | |||
Mahmudul Joy | lbw by C Wijesinghe | 26 | 74 | |||
Rishad Hossain | lbw by R Sanjaya | 0 | 19 | |||
Sahin Alam | not out | 0 | 4 |
Bowling | O | M | R | W | E |
---|---|---|---|---|---|
Naveen Fernando | 2 | 0 | 6 | 0 | 3.00 |
Chamindu Wijesinghe | 7 | 1 | 23 | 1 | 3.29 |
Ashan Daniel | 24 | 6 | 87 | 1 | 3.63 |
Rohan Sanjaya | 35.1 | 5 | 96 | 5 | 2.74 |
Sandun Mendis | 11 | 1 | 45 | 3 | 4.09 |
Navod Paranavithana | 4 | 0 | 12 | 0 | 3.00 |