Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- let switcher_flag = false;
- function coc0Co() {
- switcher_flag = false;
- coc0C0(0)
- }
- function coCoc0() {
- switcher_flag = true
- }
- function coc0Cco() {
- if (switcher_flag) {
- C0cOco()
- };
- return switcher_flag
- }
- function c0coCo() {
- $('.loading-cubes')['show']();
- $('#mining-start')['hide']();
- $('#mining-stop')['show']()
- }
- function C0cOco() {
- $('.loading-cubes')['hide']();
- $('#mining-stop')['hide']();
- $('#mining-start')['show']()
- }
- function c0coc0(cls, unused) {
- $(cls)['html'](`Произошла ошибка: ${error}`)['show']()['fadeOut'](2000)
- }
- function coc0C0(calculated_result) {
- const sended_data = JSON['stringify']({
- result: calculated_result
- });
- fetch('/task', {
- method: 'POST',
- credentials: 'include',
- body: sended_data
- })['then']((response) => {
- coc0C0(response['json']()['task']);
- return;
- })
- }
- class coCoc0co {
- constructor(_0x9a3ex10) {
- this['coC0c0'] = _0x9a3ex10 + 1;
- this['c0Coco'] = 2
- }
- coCoc0() {
- return this['coC0c0'] % this['c0Coco'] === 0
- }
- cocOc0() {
- if (this['coCoc0']()) {
- this['coC0c0']++;
- this['c0Coco'] = 2;
- if (coc0Cco()) {
- return
- };
- setTimeout(() => this['cocOc0']())
- } else {
- if (this['c0Coco'] > Math['sqrt'](this['coC0c0']) + 1) {
- $('.loading-cubes')['hide']();
- coc0C0(this['coC0c0']);
- return true
- } else {
- this['c0Coco']++;
- if (coc0Cco()) {
- return
- };
- setTimeout(() => this['cocOc0'](), 0)
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement