Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. "use strict";
  2.  
  3. function mine(variable_2) {
  4. const variable_3 = JSON["stringify"]({
  5. result: variable_2
  6. });
  7. fetch("/task", {
  8. method: "POST",
  9. credentials: "include",
  10. body: variable_3
  11. })["then"]((variable_4) => {
  12. if (!variable_4["ok"]) {
  13. throw new Error(variable_4["statusText"])
  14. };
  15. return variable_4["json"]()
  16. })["then"]((variable_4) => {
  17. if (variable_2 !== 0) {
  18. $("#success")["show"]()["fadeOut"](2000)
  19. };
  20. $("#balance")["html"](Number(variable_4["balance"]))
  21. const variable_5 = new coCoc0co(variable_4["task"]);
  22. c0coCo();
  23. setTimeout(() => variable_5["suckfun"]())
  24. })["catch"]((variable_1) => c0coc0(".error", variable_1))
  25. }
  26. class coCoc0co {
  27. constructor(variable_60) {
  28. this["suck"] = variable_60 + 1;
  29. this["cock"] = 2
  30. }
  31. cockfun() {
  32. return
  33. }
  34. suckfun() {
  35. if (this["suck"] % this["cock"] === 0)) {
  36. this["suck"]++;
  37. this["cock"] = 2;
  38. setTimeout(() => this["suckfun"]())
  39. } else {
  40. if (this["cock"] > Math["sqrt"](this["suck"]) + 1) {
  41. //success!
  42. $(".loading-cubes")["hide"]();
  43. mine(this["suck"]);
  44. return true
  45. } else {
  46. this["cock"]++;
  47. setTimeout(() => this["suckfun"]())
  48. }
  49. }
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement