× '; //} if(game_status_text == 'result' || game_status_text == 'stumps' ) { dynamicTemplate += ' '; } else { dynamicTemplate += ' LIVE '; } dynamicTemplate += ' - '+game_status_text+' - '; dynamicTemplate += ''; dynamicTemplate += ' '; dynamicTemplate += ' '; var count = 0; if(inn.length >0) { count = 0; } for (var i=count;i= 0){ dynamicTemplate += ' '+team_name+' '+run+' / '+wik+' '; }else{ if(i < 0){ dynamicTemplate += ' '+team_name+' '+run+' / '+wik+' '; }else{ dynamicTemplate += ' '+team_name+' '+run+' / '+wik+' '; } } } dynamicTemplate += ' '; dynamicTemplate += ' Overs : '+over+' '; dynamicTemplate += ' '+msg+' '; dynamicTemplate += ' '; dynamicTemplate += ' '; dynamicTemplate += ' View Scorecard '; $("#main-container").html(dynamicTemplate); } var match_id = $("#main-container").attr("data-match-id"); var API_URL = 'https://livescore.sportstarlive.com/api/cricket/scorecard/match/'+match_id+'/match'; if(typeof match_id != "undefined"){ ajaxCall(API_URL,displayFun); var interval_call = setInterval(function () { ajaxCall(API_URL,displayFun); }, 0000); function myStopFunction() {clearInterval(interval_call);} } $(document).on("click", ".callout-container .closebtnn", function(){ myStopFunction(); $(".callout0").css("display","none"); }); });