WowPlus
Home Relationships Scandals Follow Bayern Munich v Liverpool live from the Allianz Arena – Football365
Scandals

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

Share
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
Why Diane Keaton Was 'Humiliated' By Her Kissing Scenes With Jack Nicholson
ScandalsTrending

Diane Keaton Kissing Scenes With Jack Nicholson Left Her Feeling “Humiliated”

Diane Keaton and Jack Nicholson had great chemistry on the set of...

11 Celebrities Who Are Rumored To Be Horrible Neighbors
ScandalsTrending

11 Celebrities Who Are Rumored To Be Horrible Neighbors

From Kanye West to Ellen DeGeneres, these celebrities have left neighbors with...

Taylor Swift's Wedding Gives Billionaire Michael Rubin A Major Ego Check
Scandals

Taylor Swift Wedding Rumors Put Michael Rubin’s White Party In An Awkward Spotlight

Michael Rubin hosts a star-studded Fourth of July party every year, but...

Meet Stanley Tucci's 5 Kids And Their Mothers
ScandalsTrending

Stanley Tucci Kids: Inside The Actor’s Family Life, Loss, And Second Chance At Love

From the three children Stanley Tucci shared with his late wife, Kate,...