Dalexhd icon

test

Dalexhd | PRO | 09/30/18 09:07:54 PM UTC | 0 ⭐ | 372 👁️ | Never ⏰ | []
text |

1.84 KB

|

None

|

0 👍

/

0 👎

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

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎