Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. 'use strict';
  2. let switcher_flag = false;
  3.  
  4. function coc0Co() {
  5. switcher_flag = false;
  6. coc0C0(0)
  7. }
  8.  
  9. function coCoc0() {
  10. switcher_flag = true
  11. }
  12.  
  13. function coc0Cco() {
  14. if (switcher_flag) {
  15. C0cOco()
  16. };
  17. return switcher_flag
  18. }
  19.  
  20. function c0coCo() {
  21. $('.loading-cubes')['show']();
  22. $('#mining-start')['hide']();
  23. $('#mining-stop')['show']()
  24. }
  25.  
  26. function C0cOco() {
  27. $('.loading-cubes')['hide']();
  28. $('#mining-stop')['hide']();
  29. $('#mining-start')['show']()
  30. }
  31.  
  32. function c0coc0(cls, unused) {
  33. $(cls)['html'](`Произошла ошибка: ${error}`)['show']()['fadeOut'](2000)
  34. }
  35.  
  36. function coc0C0(calculated_result) {
  37. const sended_data = JSON['stringify']({
  38. result: calculated_result
  39. });
  40. fetch('/task', {
  41. method: 'POST',
  42. credentials: 'include',
  43. body: sended_data
  44. })['then']((response) => {
  45. coc0C0(response['json']()['task']);
  46. return;
  47. })
  48. }
  49.  
  50. class coCoc0co {
  51. constructor(_0x9a3ex10) {
  52. this['coC0c0'] = _0x9a3ex10 + 1;
  53. this['c0Coco'] = 2
  54. }
  55. coCoc0() {
  56. return this['coC0c0'] % this['c0Coco'] === 0
  57. }
  58. cocOc0() {
  59. if (this['coCoc0']()) {
  60. this['coC0c0']++;
  61. this['c0Coco'] = 2;
  62. if (coc0Cco()) {
  63. return
  64. };
  65. setTimeout(() => this['cocOc0']())
  66. } else {
  67. if (this['c0Coco'] > Math['sqrt'](this['coC0c0']) + 1) {
  68. $('.loading-cubes')['hide']();
  69. coc0C0(this['coC0c0']);
  70. return true
  71. } else {
  72. this['c0Coco']++;
  73. if (coc0Cco()) {
  74. return
  75. };
  76. setTimeout(() => this['cocOc0'](), 0)
  77. }
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement