Soccer Information

‘;
html += ‘

‘ + merchandise.teama_short + ‘ ‘ + merchandise.teamaWinPer + ‘%

‘;
html += ”;
html += ‘

Draw ‘ + merchandise.drawWinPer + ‘%

‘;
html += ”;
html += ‘

‘ + merchandise.teamb_short + ‘ ‘ + merchandise.teambWinPer + ‘%

‘;
}
else {
if (parseInt(merchandise.teamaWinPer) > parseInt(merchandise.teambWinPer)) {
html = ‘

‘+ merchandise.teama_short + ‘ ‘ + merchandise.teamaWinPer + ‘%

% probability to win

‘+ merchandise.teamb_short + ‘ ‘ + merchandise.teambWinPer + ‘%
‘;
}
else {
html = ‘

‘+ merchandise.teamb_short + ‘ ‘ + merchandise.teambWinPer + ‘%

% probability to win

‘+ merchandise.teama_short + ‘ ‘ + merchandise.teamaWinPer + ‘%
‘;
}
}
$(“#” + merchandise.matchfile + ‘_winbx’).present().html(html);

});
return html;
},
error: operate (jqXHR, textStatus, errorThrown) {
//alert(errorThrown);
}
});

}

operate formatAMPM(date) {
var hours = date.getHours();
var minutes = date.getMinutes();
var ampm = hours >= 12 ? ‘pm’ : ‘am’;
hours = hours % 12;
hours = hours ? hours : 12; // the hour ‘0’ needs to be ’12’
minutes = minutes 0) {
var html = “”;
$.every(inprogress, operate (i, merchandise) {
if (i 1) {
strive {
if (merchandise.individuals[0].now == ‘true’) {
scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1] + ”;
}
else {
scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1].exchange(/ *([^)]*) */g, “”) + ”;
}
} catch (e) {
scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1].exchange(/ *([^)]*) */g, “”) + ”;
}
}
else {
if (team1score[0] == “”) {
scorehtml1 = ‘But To Bat’;
}
else {
strive {
if (merchandise.individuals[0].now == ‘true’) {
scorehtml1 = ” + team1score[0] + ”;
}
else {
scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ”;
}
} catch (e) {
scorehtml1 = ” + team1score[0] + ”;
}
}
}
if (team2score.size > 1) {
strive {
if (merchandise.individuals[1].now == ‘true’) {
scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1] + ”;
}
else {
scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1].exchange(/ *([^)]*) */g, “”) + ”;
}
} catch (e) {
scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1].exchange(/ *([^)]*) */g, “”) + ”;
}
}
else {
if (team2score[0] == “”) {
scorehtml2 = ‘But To Bat’;
}
else {
strive {
if (merchandise.individuals[1].now == ‘true’) {
scorehtml2 = ” + team2score[0] + ”;
}
else {
scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ”;
}
} catch (e) {
scorehtml2 = ” + team2score[0] + ”;
}
}
}
}
else {
if (team1score.size > 1) {
scorehtml1 = ” + team1score[0] + ‘ ‘ + team1score[1] + ”;
}
else {
if (team1score[0] == “”) {
scorehtml1 = ‘But To Bat’;
}
else {
scorehtml1 = ” + team1score[0] + ”;
}
}
if (team2score.size > 1) {
scorehtml2 = ” + team2score[0] + ‘ ‘ + team2score[1] + ”;
}
else {
if (team2score[0] == “”) {
scorehtml2 = ‘But To Bat’;
}
else {
scorehtml2 = ” + team2score[0] + ”;
}
}
}
}

strive {
if (merchandise.event_format.toLowerCase().trim() == ‘take a look at’) {
if (merchandise.event_is_daynight == “false”) {
if (merchandise.event_session == 1 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Morning Session”;
} else if (merchandise.event_session == 2 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Submit Lunch Session”
} else if (merchandise.event_session == 3 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Submit Tea Session”
}
else {
playstatus = merchandise.event_status;
}
} else {
if (merchandise.event_session == 1 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Opening Session”;
} else if (merchandise.event_session == 2 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Submit Tea Session”
} else if (merchandise.event_session == 3 && merchandise.event_state == ‘L’ && merchandise.event_status_id.toLowerCase() == ‘117’) {
playstatus = “Submit Dinner Session”
}
else {
playstatus = merchandise.event_status;
}
}
playstatus = “Day ” + merchandise.event_day + ” ” + playstatus;
}
else {
playstatus = merchandise.event_status;
}
} catch (e) { playstatus = ” }
var venue = merchandise.venue_name.cut up(‘,’);
var team1n = merchandise.individuals[0].short_name;
var team2n = merchandise.individuals[1].short_name;
if (isDesktop.toLowerCase().trim() == ‘true’) {
team1n = merchandise.individuals[0].title;
team2n = merchandise.individuals[1].title;
}
crr = parseFloat(crr_score) / parseFloat(crr_overs);
crr = crr.toFixed(2);
html += ‘

  • ‘ + merchandise.event_name + ‘, ‘ + merchandise.series_name + ‘ at ‘ + venue[venue.length – 1] + ‘, ‘ + monthNames[dt.getMonth()] + ‘ ‘ + dt.getDate() + ‘, ‘ + dt.getFullYear() + ‘

    ‘; //if (merchandise.event_status_id == ‘117’) {// html += ‘

    Reside

    ‘;//} html += ‘

    ‘ + playstatus + ‘

    ‘;

    var isIOS = !window.MSStream && /iPad|iPhone|iPod/.take a look at(navigator.userAgent) /*(/iPad|iPhone|iPod/.take a look at(navigator.platform) || (navigator.platform === ‘MacIntel’ && navigator.maxTouchPoints > 1)) && !window.MSStream*/;

    if (!isIOS) {
    html += ”; } html +=’

    ‘+ team1n + ‘

    ‘ + scorehtml1 + ‘

    ‘+ team2n + ‘

    ‘ + scorehtml2 + ‘

    ‘+ merchandise.event_sub_status + ‘

    CRR: ‘ + crr + ‘

    ‘ + fantasyhtml + ‘

  • ‘;
    strive {
    var win = getWinPercentagetop(merchandise.game_id);
    } catch (e) {

    }

    }
    else if (merchandise.sport.toLowerCase() == “soccer”) {
    var activetm1 = ”;
    var activetm2 = ”;

    strive {
    if (merchandise.individuals[0].now == ‘true’) {
    activetm1 = ‘ftb-wid_gl-act’;
    }
    } catch (e) {

    }

    strive {
    if (merchandise.individuals[1].now == ‘true’) {
    activetm2 = ‘ftb-wid_gl-act’;
    }
    } catch (e) {

    }
    var venue = merchandise.venue_name.cut up(‘,’);
    var team1n = merchandise.individuals[0].short_name;
    var team2n = merchandise.individuals[1].short_name;
    if (isDesktop.toLowerCase().trim() == ‘true’) {
    team1n = merchandise.individuals[0].title;
    team2n = merchandise.individuals[1].title;
    }
    html += ‘

  • ‘ + merchandise.series_name + ‘

    ‘ + merchandise.event_name + ‘, at’ + venue[venue.length – 1] + ‘

    ‘+ team1n + ‘

    ‘ + merchandise.individuals[0].worth + ‘

    ‘ + team2n + ‘

    ‘ + merchandise.individuals[1].worth + ‘

    ‘+ merchandise.event_sub_status + ‘

  • ‘;
    }
    }
    })
    $(“#scr_live”).html(html);
    }
    else {
    noLive = true;
    $(“#scr_live”).html(noMatchHtmlProgress);
    }
    if (upcoming.size > 0) {
    var html = “”;
    $.every(upcoming, operate (i, merchandise) {
    if (i

    ‘ + merchandise.event_name + ‘, ‘ + merchandise.series_name + ‘ at ‘ + venue[venue.length – 1] + ‘, ‘ + monthNames[dt.getMonth()] + ‘ ‘ + dt.getDate() + ‘, ‘ + dt.getFullYear() + ‘

    ‘;

    var isIOS = !window.MSStream && /iPad|iPhone|iPod/.take a look at(navigator.userAgent) /*(/iPad|iPhone|iPod/.take a look at(navigator.platform) || (navigator.platform === ‘MacIntel’ && navigator.maxTouchPoints > 1)) && !window.MSStream*/;

    if (!isIOS) {
    html += ”; } html += ‘ ‘ + team1n + ‘
    ‘ + team2n + ‘

    ‘+ finaldate + ‘

    ‘ + fantasyhtml + ”;
    strive {
    var win = getWinPercentagetop(merchandise.game_id);
    } catch (e) {

    }
    }
    else if (merchandise.sport.toLowerCase() == “soccer”) {
    html += ‘

  • ‘ + merchandise.series_name + ‘

    ‘ + merchandise.event_name + ‘, at’ + venue[venue.length – 1] + ‘

    ‘+ team1n + ‘

    ‘+ team2n + ‘

  • ‘;
    }
    }
    })
    $(“#scr_upcoming”).html(html);
    }
    else {
    noUpcoming = true;
    $(“#scr_upcoming”).html(noMatchHtmlUpcoming);
    }
    if (current.size > 0) {
    var html = “”;
    $.every(current, operate (i, merchandise) {
    if (i 1) {
    strive {
    if (merchandise.individuals[0].now == ‘true’) {
    scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1] + ”;
    }
    else {
    scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1].exchange(/ *([^)]*) */g, “”) + ”;
    }
    } catch (e) {
    scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team1score[1].exchange(/ *([^)]*) */g, “”) + ”;
    }
    }
    else {
    if (team1score[0] == “”) {
    scorehtml1 = ‘But To Bat’;
    }
    else {
    strive {
    if (merchandise.individuals[0].now == ‘true’) {
    scorehtml1 = ” + team1score[0] + ”;
    }
    else {
    scorehtml1 = ” + team1score[0].exchange(/ *([^)]*) */g, “”) + ”;
    }
    } catch (e) {
    scorehtml1 = ” + team1score[0] + ”;
    }
    }
    }
    if (team2score.size > 1) {
    strive {
    if (merchandise.individuals[1].now == ‘true’) {
    scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1] + ”;
    }
    else {
    scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1].exchange(/ *([^)]*) */g, “”) + ”;
    }
    } catch (e) {
    scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ‘&  ‘ + team2score[1].exchange(/ *([^)]*) */g, “”) + ”;
    }
    }
    else {
    if (team2score[0] == “”) {
    scorehtml2 = ‘But To Bat’;
    }
    else {
    strive {
    if (merchandise.individuals[1].now == ‘true’) {
    scorehtml2 = ” + team2score[0] + ”;
    }
    else {
    scorehtml2 = ” + team2score[0].exchange(/ *([^)]*) */g, “”) + ”;
    }
    } catch (e) {
    scorehtml2 = ” + team2score[0] + ”;
    }
    }
    }
    }
    else {
    if (team1score.size > 1) {
    scorehtml1 = ” + team1score[0] + ‘ ‘ + team1score[1] + ”;
    }
    else {
    if (team1score[0] == “”) {
    scorehtml1 = ‘But To Bat’;
    }
    else {
    scorehtml1 = ” + team1score[0] + ”;
    }
    }
    if (team2score.size > 1) {
    scorehtml2 = ” + team2score[0] + ‘ ‘ + team2score[1] + ”;
    }
    else {
    if (team2score[0] == “”) {
    scorehtml2 = ‘But To Bat’;
    }
    else {
    scorehtml2 = ” + team2score[0] + ”;
    }
    }
    }
    }

    html += ‘

  • ‘ + merchandise.event_name + ‘, ‘ + merchandise.series_name + ‘ at ‘ + venue[venue.length – 1] + ‘, ‘ + monthNames[dt.getMonth()] + ‘ ‘ + dt.getDate() + ‘, ‘ + dt.getFullYear() + ‘

    ‘ + team1n + ‘

    ‘+ scorehtml1 + ‘

    ‘+ team2n + ‘

    ‘ + scorehtml2 + ‘

    ‘+ merchandise.event_sub_status + ‘

  • ‘;
    }
    else if (merchandise.sport.toLowerCase() == “soccer”) {
    html += ‘

  • ‘ + merchandise.series_name + ‘

    ‘ + merchandise.event_name + ‘, at’ + venue[venue.length – 1] + ‘

    ‘+ team1n + ‘

    ‘ + merchandise.individuals[0].worth + ‘

    ‘ + team2n + ‘

    ‘ + merchandise.individuals[1].worth +’

    FT

  • ‘;
    }
    }
    })
    $(“#scr_recent”).html(html);
    }
    else {
    $(“#scr_recent”).html(noMatchHtmlRecent);
    }

    strive {
    activetab = $(“#scorewidgt_tbs li a.rnk_nav-act”)[0].id;
    } catch{ }

    strive {
    if (sport==1) {
    activesubtab = $(“#scr_subtabs li a.rnk_sub-act”)[0].id;
    }
    } catch{ }

    activeurl = dataurlenglish;
    activecontainer = $(“.scr_nav-cnt:seen”)[0].id;

    if (isfirstload) {
    if (noLive) {
    if (sport == 1 && tourid == 0) {
    //activetab = ‘tb_upcoming’;
    if (noUpcoming) {
    activesubtab = ‘tb_recent_sub’;
    activecontainer = ‘scr_recent’;
    }
    else {
    activesubtab = ‘tb_upcoming_sub’;
    activecontainer = ‘scr_upcoming’;
    }

    activeurl = dataurlenglish;
    //activecontainer = ‘scr_upcoming’;
    }
    else {
    if (noUpcoming) {
    activetab = ‘tb_recent’;
    activecontainer = ‘scr_recent’;
    } else {
    activetab = ‘tb_upcoming’;
    activecontainer = ‘scr_upcoming’;
    }

    activesubtab = ”;
    activeurl = dataurlenglish;
    //activecontainer = ‘scr_upcoming’;
    }
    }
    }

    if (sport == 1 && tourid==0) {
    $(‘#scorewidgt_tbs li a’).removeClass(“rnk_nav-act”);
    $(‘#scr_subtabs li a’).removeClass(“rnk_sub-act”);
    $(‘#’ + activetab).addClass(“rnk_nav-act”);
    $(‘#’ + activesubtab).addClass(“rnk_sub-act”);
    $(‘.scr_nav-cnt’).conceal();
    $(‘#’ + activecontainer).present();
    }
    else {
    $(‘#scorewidgt_tbs li a’).removeClass(“rnk_nav-act”);
    $(‘#’ + activetab).addClass(“rnk_nav-act”);
    $(‘.scr_nav-cnt’).conceal();
    $(‘#’ + activecontainer).present();
    }
    isfirstload = false;
    }
    });
    }

    operate generateUrl(sport, match, lang, sort) {
    var hyperlink = ”;
    if (lang == ‘en’) {
    if (sport == ‘cricket’) {
    var ScoreEventname = match.event_name.toLowerCase().cut up(” – “).be a part of(“-“).exchange(” “, “-“);
    var Scorevenuename = match.venue_name.cut up(“,”);
    var countvenue = (Scorevenuename.size – 1);
    Scorevenuename = Scorevenuename[countvenue].toLowerCase().cut up(” “).be a part of(“-“);
    if (sort == ‘upcoming’) {
    hyperlink = ‘/cricket/live-overview/’ + match.individuals[0].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-vs-” + match.individuals[1].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-” + ScoreEventname.exchange(” “, “-“) + Scorevenuename + “-” + match.game_id;
    }
    else if (sort == ‘current’) {
    hyperlink = ‘/cricket/live-scorecard/’ + match.individuals[0].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-vs-” + match.individuals[1].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-” + ScoreEventname.exchange(” “, “-“) + Scorevenuename + “-” + match.game_id;
    }
    else if (sort == ‘inprogress’) {
    hyperlink = ‘/cricket/live-overview/’ + match.individuals[0].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-vs-” + match.individuals[1].title.toLowerCase().exchange(” “, “-“).exchange(” “, “-“).exchange(/./g, “”) + “-” + ScoreEventname.exchange(” “, “-“) + Scorevenuename + “-” + match.game_id;
    }
    }
    else {
    hyperlink = ‘https://sports activities.ndtv.com/soccer/live-scores/’ + match.individuals[0].title.toLowerCase().cut up(‘ ‘).be a part of(‘-‘).cut up(‘-&-‘).be a part of(‘-‘).cut up(‘.’).be a part of(‘-‘) + “-vs-” + match.individuals[1].title.toLowerCase().cut up(‘ ‘).be a part of(‘-‘).cut up(‘-&-‘).be a part of(‘-‘).cut up(‘.’).be a part of(‘-‘) + “-” + match.game_id;
    }
    }
    else {
    if (hdsport == ‘cricket’) {
    if (sort == ‘upcoming’) {
    hyperlink = ‘/cricket/scorecard?matchid=’ + match.game_id + ‘&template=overview’;
    }
    else if (sort == ‘current’) {
    hyperlink = ‘/cricket/scorecard?matchid=’ + match.game_id + ‘&template=scorecard’;
    }
    else if (sort == ‘inprogress’) {
    hyperlink = ‘/cricket/scorecard?matchid=’ + match.game_id + ‘&template=overview’;
    }
    if (lang == “hello”) {
    hyperlink = ‘/hindi’ + hyperlink;
    }
    else if (lang == “bn”) {
    hyperlink = ‘/bengali’ + hyperlink;
    }
    else if (lang == “ta”) {
    hyperlink = ‘/tamil’ + hyperlink;
    }
    }
    else {
    hyperlink = ”;
    }
    }
    return hyperlink;
    }

    });

    Commercial

    Leave a Reply

    Your email address will not be published. Required fields are marked *