Home Gist Follow Bayern Munich v Liverpool live from the Allianz Arena – Football365
Gist

Follow Bayern Munich v Liverpool live from the Allianz Arena – Football365

Share
follow bayern munich v liverpool live from the allianz arena football365
Share
Football365

“;

});

$(‘.commentry_wrap’).append(audioCommentary);

$(‘.commentary_toggle’).parent().nextAll().slideToggle();
$(‘.commentary_toggle’).toggleClass(‘glyphicon-menu-down’);

$(‘#loadIcon’).css(“display”, “none”);

}).fail(function () {
$(‘#loadIcon’).css(“display”, “none”);
partialView.html(”);
//bootstrap_alert.error(‘There were some errors while saving the video. Please try in a while’);
});
}

});

function toTitleCase(str) {
str = str.replace(“_”, ” “);
return str.replace(/wS*/g, function (txt) { return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase(); });
}

$(document).ready(function () {
tname = $(‘.tabslist a:first’).tab().text();
//GMTfunction();
var url = document.location.toString();
if (url.match(‘#’)) {
$(‘.tabslist a[href=”#’ + url.split(‘#’)[1] + ‘-tab”]’).tab(‘show’);
} //add a suffix

// Change hash for page-reload
$(‘.tabslist a’).on(‘shown.bs.tab’, function (e) {
keepLocation(window.pageYOffset);
window.location.hash = e.target.hash;

})

$(‘.tabslist’).on(‘click’, ‘li’, function (e) {

ActivateTab($(this));

});

$(‘[data-toggle=”tooltip”]’).tooltip();
});

//function ActivateTab(currenttab)
//{
// var partialView = $(‘#lineups’);
// var tabName = currenttab.children().data(‘name’);
// var matchId = $(“#txt-MatchId”).val();
// var contestGroupId = $(‘#contestGroupId’).val();
// var partialUrl;
// if (tabName == “stats”) {
// partialView = $(‘#statsContainer’);
// //$(this).show();
// partialUrl = “Football/MatchCenterStats”;
// }
// else if (tabName == “lineups”) {
// //$(this).show();
// partialView = $(‘#lineups’);
// partialUrl = “Football/MatchCenterLineups”;
// }
// else if (tabName == “preview”) {
// partialView = $(‘#previewContainer’);
// partialUrl = “Football/MatchCenterTeamPreview”;
// }
// else if (tabName == “odds”) {

// //$(this).show();
// //e.preventDefault();

// return;
// }
// else if (tabName == “teamstable”) {
// //$(this).show();
// partialView = $(‘#teamHistoryContainer’);
// partialUrl = “Football/MatchCenterTeamHistory”;
// }
// else if (tabName == “report”) {
// //$(this).show();
// partialView = $(‘#reportContainer’);
// partialUrl = “Football/MatchCenterReport”;
// }
// else if (tabName == “matchnews”) {
// //$(this).show();
// partialView = $(‘#matchnewsContainer’);
// partialUrl = “Football/MatchCenterNews”;
// }
// else if (tabName == “livegallery”) {
// //$(this).show();
// partialView = $(‘#container3’);
// partialUrl = “Football/MatchCenterGallery”;
// }
// else if (tabName == “commentary”) {
// partialView = $(‘#commentary_list_ul’);
// partialUrl = “Football/MatchCenterCommentary”;
// }

// $(‘#loadIcon’).css(“display”, “block”);
// if (tabName == “preview”) {
// $.ajax({
// type: “post”,
// url: partialUrl,
// data: { mid: matchId, contestId: contestGroupId }
// }).done(function (html) {
// partialView.html(”);
// partialView.html(html);
// $(“#preview_b h3”).text($(“.txt-home-team”).text() + ” v ” + $(“.txt-away-team”).text());
// $(‘#preview_b_hometeam h3’).text($(“.txt-home-team”).text() + ” Last 5 Games “);
// $(‘#preview_b_awayteam h3’).text($(“.txt-away-team”).text() + ” Last 5 Games “);
// $(‘#loadIcon’).css(“display”, “none”);
// }).fail(function () {
// $(‘#loadIcon’).css(“display”, “none”);
// partialView.html(”);
// //bootstrap_alert.error(‘There were some errors while saving the video. Please try in a while’);
// });
// }
// else {
// $.ajax({
// type: “post”,
// url: partialUrl,
// data: { mid: matchId }
// }).done(function (html) {
// partialView.html(”);
// partialView.html(html);
// $(‘#loadIcon’).css(“display”, “none”);

// }).fail(function () {
// $(‘#loadIcon’).css(“display”, “none”);
// partialView.html(”);
// //bootstrap_alert.error(‘There were some errors while saving the video. Please try in a while’);
// });
// }
//}

function keepLocation(oldOffset) {
if (window.pageYOffset != null) {
st = oldOffset;
}
if (document.body.scrollWidth != null) {
st = oldOffset;
}
setTimeout(‘window.scrollTo(0,st)’, 10);
}

var cookieValue = $.cookie(“OddFormat”);
if (cookieValue != null) {
$(“#custom_select option[value=’” + cookieValue + “‘]”).get(0).selected = true;
}
$(“#custom_select”).change(function () {
var OddsFormat = $(this).val();
$.cookie(“OddFormat”, OddsFormat, { path: ‘/’ });

var matchId = $(“#OddsMatchId”).val();
var inPlayBit = $(“#txt-inplay-odds”).val() == 1 ? true : false;
var activeli = $(‘.odds_menu ul’).find(‘li.active’);
var betType = activeli.children().data(“bettype”);
var partialView;

if (matchId != null && matchId != “” && betType != “”) {
if (betType == “1×2”) {
partialView = $(“#one_x_two”);
} else if (betType == “Asian Handicap”) {
partialView = $(“#asian_tab”);
} else if (betType == “Odd/Even”) {
partialView = $(“#goals”);
} else if (betType == “Over/Under”) {
partialView = $(“#ov_un”);
}

$.ajax({
type: “post”,
url: “/Football/MatchOddsDetail”,
data: { mid: matchId, type: betType, inplay: inPlayBit },
success: function (html) {
partialView.html(html);
},
error: function (jqXHR, textStatus, errorThrown) { // if error occured

console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
}
});

if (tname == “Odds”) {

var matchId = $(“#OddsMatchId”).val();
var inPlayBit = $(“#txt-inplay-odds”).val() == 1 ? true : false;
var betType = “1×2”;

var partialView;

if (matchId != null && matchId != “” && betType != “”) {
if (betType == “1×2”) {
partialView = $(“#one_x_two”);
}
$(‘#loadIcon’).css(“display”, “block”);
$.ajax({
type: “post”,
url: “/Football/MatchOddsDetail”,
data: { mid: matchId, type: betType, inplay: inPlayBit }
}).done(function (html) {
$(‘#loadIcon’).css(“display”, “none”);
partialView.html(html);
}).fail(function () {
$(‘#loadIcon’).css(“display”, “none”);
//bootstrap_alert.error(‘There were some errors while saving the video. Please try in a while’);
});
}
}
$(“#tab-odds”).on(“click”, null, function () {

var matchId = $(“#OddsMatchId”).val();
var inPlayBit = $(“#txt-inplay-odds”).val() == 1 ? true : false;
var betType = “1×2”;

var partialView;

if (matchId != null && matchId != “” && betType != “”) {
if (betType == “1×2”) {
partialView = $(“#one_x_two”);
}
$(‘#loadIcon’).css(“display”, “block”);
$.ajax({
type: “post”,
url: “/Football/MatchOddsDetail”,
data: { mid: matchId, type: betType, inplay: inPlayBit }
}).done(function (html) {
$(‘#loadIcon’).css(“display”, “none”);
partialView.html(html);
}).fail(function () {
$(‘#loadIcon’).css(“display”, “none”);
//bootstrap_alert.error(‘There were some errors while saving the video. Please try in a while’);
});
}
});

$(“.btn-odds”).on(“click”, null, function () {

var matchId = $(“#OddsMatchId”).val();
var inPlayBit = $(“#txt-inplay-odds”).val() == 1 ? true : false;
var betType = $(this).data(“bettype”);

var partialView;

if (matchId != null && matchId != “” && betType != “”) {
if (betType == “1×2”) {
partialView = $(“#one_x_two”);
} else if (betType == “Asian Handicap”) {
partialView = $(“#asian_tab”);
} else if (betType == “Odd/Even”) {
partialView = $(“#goals”);
} else if (betType == “Over/Under”) {
partialView = $(“#ov_un”);
}
$(‘#loadIcon’).css(“display”, “block”);
$.ajax({
type: “post”,
url: “/Football/MatchOddsDetail”,
data: { mid: matchId, type: betType, inplay: inPlayBit },
success: function (html) {
$(‘#loadIcon’).css(“display”, “none”);
partialView.html(html);
},
error: function (jqXHR, textStatus, errorThrown) { // if error occured
$(‘#loadIcon’).css(“display”, “none”);
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
}
});

Read full article

Share

Leave a comment

Leave a Reply

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

Related Articles
Miss Universe 2025: Contestants stage walkout after organiser humiliates Miss Mexico
Gist

When Solidarity Spelled Walkout — Miss Universe 2025’s Fractured Moment in Thailand

Many contestants of the Miss Universe 2025 have staged walkouts from the...

The Rise And Fall Of HGTV's Carter Oosterhouse
Gist

Carter Oosterhouse is a Michigan native who became a prominent figure on TLC and HGTV

Once considered America's favorite handyman, Carter Oosterhouse's career has experienced highs and...

Kris Jenner's Behavior With Her Boyfriend Suggests A Breakup Is Coming
Gist

Kris Jenner and Corey Gamble: Signs of Trouble Beneath the Surface?

Kris Jenner and Corey Gamble's failure to be on their best behavior...

Jeff Bezos' Reputation Is In Shambles Due To His Beloved Ex MacKenzie Scott
Gist

Jeff Bezos’ Public Image Takes a Hit Amid Ex-Wife MacKenzie’s Rising Praise

The public took sides after Jeff Bezos and Lauren Sánchez tied the...