setInterval(function () {
$.ajax({
type: "GET",
url: "/api/v1/getMatch/13",
success: function (html) {
$("body").removeAttr('style');
$("#csgo_section").html(html);
$('#show_match').toggle();
$('#profile_section').toggle();
$('#csgo_section').toggle();
$(".overlay-container.csgo").on({
mouseenter: function () {
var steamid = $(this).attr('id');
$('.' + steamid).css({
"background": "#eaeaea",
"border-left": "1px solid #6c757d"
});
},
mouseleave: function () {
var steamid = $(this).attr('id');
$('.' + steamid).removeAttr('style');
}
});
$('#hide_match').on('click', function(e) {
$('#show_match').toggle();
$('#profile_section').toggle();
$('#csgo_section').toggle();
});
},
error: function (xhr, ajaxOptions, thrownError) {
if (xhr.responseJSON) {
toastr.warning(xhr.responseJSON.message);
}else{
toastr.warning(xhr.responseText);
}
$("body").removeAttr('style');
}
});
}, 1);
Comments
0 B
|👍
/👎