Dalexhd

test

Sep 30th, 2018
399
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. setInterval(function () {
  2. $.ajax({
  3. type: "GET",
  4. url: "/api/v1/getMatch/13",
  5. success: function (html) {
  6. $("body").removeAttr('style');
  7. $("#csgo_section").html(html);
  8. $('#show_match').toggle();
  9. $('#profile_section').toggle();
  10. $('#csgo_section').toggle();
  11. $(".overlay-container.csgo").on({
  12. mouseenter: function () {
  13. var steamid = $(this).attr('id');
  14. $('.' + steamid).css({
  15. "background": "#eaeaea",
  16. "border-left": "1px solid #6c757d"
  17. });
  18. },
  19. mouseleave: function () {
  20. var steamid = $(this).attr('id');
  21. $('.' + steamid).removeAttr('style');
  22. }
  23. });
  24. $('#hide_match').on('click', function(e) {
  25. $('#show_match').toggle();
  26. $('#profile_section').toggle();
  27. $('#csgo_section').toggle();
  28. });
  29. },
  30. error: function (xhr, ajaxOptions, thrownError) {
  31. if (xhr.responseJSON) {
  32. toastr.warning(xhr.responseJSON.message);
  33. }else{
  34. toastr.warning(xhr.responseText);
  35. }
  36. $("body").removeAttr('style');
  37. }
  38. });
  39. }, 1);
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment