Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- let coCoco = false;
- function coc0Co() {
- coCoco = false;
- coc0C0(0)
- }
- function coCoc0() {
- coCoco = true
- }
- function coc0Cco() {
- if (coCoco) {
- C0cOco()
- };
- return coCoco
- }
- function c0coCo() {
- $(".loading-cubes")["show"]();
- $("#mining-start")["hide"]();
- $("#mining-stop")["show"]()
- }
- function C0cOco() {
- $(".loading-cubes")["hide"]();
- $("#mining-stop")["hide"]();
- $("#mining-start")["show"]()
- }
- function c0coc0(variable_0, variable_1) {
- $(variable_0)["html"](`Произошла ошибка: ${error}`)["show"]()["fadeOut"](2000)
- }
- function coc0C0(variable_2) {
- const variable_3 = JSON["stringify"]({
- result: variable_2
- });
- fetch("/task", {
- method: "POST",
- credentials: "include",
- body: variable_3
- })["then"]((variable_4) => {
- if (!variable_4["ok"]) {
- throw new Error(variable_4["statusText"])
- };
- return variable_4["json"]()
- })["then"]((variable_4) => {
- if (variable_2 !== 0) {
- $("#success")["show"]()["fadeOut"](2000)
- };
- $("#balance")["html"](Number(variable_4["balance"]));
- if (coc0Cco()) {
- return
- };
- const variable_5 = new coCoc0co(variable_4["task"]);
- c0coCo();
- setTimeout(() => variable_5["cocOc0"]())
- })["catch"]((variable_1) => c0coc0(".error", variable_1))
- }
- class coCoc0co {
- constructor(variable_60) {
- this["coC0c0"] = variable_60 + 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