· 7 years ago · Oct 25, 2018, 09:14 AM
1//ZONA SEGURA, PUEDEN JUGAR AQUI
2
3var time = 10000; //Tiempo en ms. No se aconseja menos si no quieres comerte un ban
4var domain = "gmail.com"; //Puedes cambiarlo por gmail, hotmail.. o mejor dejarlo como esta
5
6
7//SI NO ENTIENDES NI PAPA, ATRAS!!!!!
8function telewin() {
9var e = {
10email: function () {
11function e() {
12return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1)
13}
14if(domain=="gmail.com"){
15var sep="0";
16}else{
17var sep = "-";
18}
19
20return e() + e()
21
22}() + "@"+domain,
23receive_offert: !1
24},
25t = !1;
26t || (t = !0, $.ajax({
27type: "POST",
28url: "https://d6ow8diqzony0.cloudfront.net/check-mail",
29dataType: "json",
30contentType: "application/json",
31crossDomain: !0,
32data: JSON.stringify(e),
33success: function(s) {
34if (!(t = !1)) {
35var a = JSON.stringify(JSON.parse(s.body)),
36n = JSON.parse(a);
37if (!t) switch (n.responseMessage) {
38case "EMAIL_SAVED":
39$.ajax({
40type: "POST",
41url: "https://d6ow8diqzony0.cloudfront.net/check-prize",
42dataType: "json",
43contentType: "application/json",
44crossDomain: !0,
45data: JSON.stringify({
46email: e.email
47}),
48success: function(s) {
49t = !1, timeOutId = setTimeout(telewin, time);
50var a = JSON.stringify(JSON.parse(s.body));
51switch (JSON.parse(a).responseMessage) {
52case "USER_IS_WINNER":
53console.warn("[GANADOR]" + e.email);
54break;
55case "USER_NOT_WIN":
56console.log("[NO GANADOR]" + e.email)
57}
58},
59error: function(e) {
60t = !1, console.log("ERROR: " + e.message)
61}
62})
63}
64}
65},
66error: function(e) {
67t = !1, console.log("ERROR: " + e.message)
68}
69}))
70}
71
72function telequeda() {
73$.ajax({
74url: "./data.json",
75dataType: "text",
76success: function(e) {
77timeOutId2 = setTimeout(telequeda, 6e4);
78var t = JSON.parse(e);
79prizesEnable = JSON.stringify(t.prizesEnable), console.log("[INFO] Quedan " + prizesEnable + " Pizzas")
80}
81})
82}
83var timeOutId = 0,
84timeOutId2 = 0;
85telewin(), telequeda(), timeOutId = setTimeout(telewin, time), timeOutId2 = setTimeout(telequeda, 6e4);