· 8 years ago · Jan 11, 2018, 02:14 PM
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() {
9 var e = {
10 email: function () {
11 function e() {
12 return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1)
13 }
14 if(domain=="gmail.com"){
15 var sep="0";
16 }else{
17 var sep = "-";
18 }
19
20 return e() + e()
21
22 }() + "@"+domain,
23 receive_offert: !1
24 },
25 t = !1;
26 t || (t = !0, $.ajax({
27 type: "POST",
28 url: "https://d6ow8diqzony0.cloudfront.net/check-mail",
29 dataType: "json",
30 contentType: "application/json",
31 crossDomain: !0,
32 data: JSON.stringify(e),
33 success: function(s) {
34 if (!(t = !1)) {
35 var a = JSON.stringify(JSON.parse(s.body)),
36 n = JSON.parse(a);
37 if (!t) switch (n.responseMessage) {
38 case "EMAIL_SAVED":
39 $.ajax({
40 type: "POST",
41 url: "https://d6ow8diqzony0.cloudfront.net/check-prize",
42 dataType: "json",
43 contentType: "application/json",
44 crossDomain: !0,
45 data: JSON.stringify({
46 email: e.email
47 }),
48 success: function(s) {
49 t = !1, timeOutId = setTimeout(telewin, time);
50 var a = JSON.stringify(JSON.parse(s.body));
51 switch (JSON.parse(a).responseMessage) {
52 case "USER_IS_WINNER":
53 console.warn("[GANADOR]" + e.email);
54 break;
55 case "USER_NOT_WIN":
56 console.log("[NO GANADOR]" + e.email)
57 }
58 },
59 error: function(e) {
60 t = !1, console.log("ERROR: " + e.message)
61 }
62 })
63 }
64 }
65 },
66 error: function(e) {
67 t = !1, console.log("ERROR: " + e.message)
68 }
69 }))
70}
71
72function telequeda() {
73 $.ajax({
74 url: "./data.json",
75 dataType: "text",
76 success: function(e) {
77 timeOutId2 = setTimeout(telequeda, 6e4);
78 var t = JSON.parse(e);
79 prizesEnable = JSON.stringify(t.prizesEnable), console.log("[INFO] Quedan " + prizesEnable + " Pizzas")
80 }
81 })
82}
83var timeOutId = 0,
84 timeOutId2 = 0;
85telewin(), telequeda(), timeOutId = setTimeout(telewin, time), timeOutId2 = setTimeout(telequeda, 6e4);