-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
440 lines (372 loc) · 14.2 KB
/
Copy pathindex.html
File metadata and controls
440 lines (372 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Premium Edge Injector - WinGo 30s</title>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@500;700&display=swap" rel="stylesheet">
<style>
:root {
--primary: #00f2ff;
--secondary: #7000ff;
--accent: #ff0055;
--bg-dark: #080808;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: #000;
font-family: 'Rajdhani', sans-serif;
height: 100vh;
overflow: hidden;
}
#injector-box {
width: 290px;
background: var(--bg-dark);
border-radius: 18px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 9999;
padding: 3px;
overflow: hidden;
box-shadow: 0 0 30px rgba(0,0,0,0.9);
}
#injector-box::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: conic-gradient(
transparent 20%,
var(--primary),
var(--secondary),
var(--accent),
var(--primary),
transparent 80%
);
animation: rotateBorder 5s linear infinite;
z-index: -1;
}
.inner-content {
background: var(--bg-dark);
border-radius: 15px;
height: 100%;
width: 100%;
position: relative;
z-index: 1;
}
@keyframes rotateBorder {
100% { transform: rotate(360deg); }
}
.drag-handle {
padding: 12px 16px;
background: rgba(255,255,255,0.03);
cursor: move;
display: flex;
justify-content: space-between;
align-items: center;
border-radius: 15px 15px 0 0;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand {
font-family: 'Orbitron', sans-serif;
font-size: 10px;
letter-spacing: 2px;
color: #fff;
text-shadow: 0 0 6px var(--primary);
}
.close-btn {
color: var(--accent);
font-weight: bold;
cursor: pointer;
font-size: 18px;
}
.injector-body { padding: 16px; }
.result-container {
position: relative;
background: rgba(0,0,0,0.65);
border-radius: 12px;
padding: 16px 12px;
border: 1px solid rgba(0,242,255,0.08);
text-align: center;
margin-bottom: 16px;
overflow: hidden;
}
.scan-line {
position: absolute;
top: -20%;
left: 0;
width: 100%;
height: 3px;
background: var(--primary);
box-shadow: 0 0 12px var(--primary);
animation: scan 3s linear infinite;
}
@keyframes scan {
0% { top: -20%; opacity: 0; }
40% { opacity: 0.9; }
100% { top: 120%; opacity: 0; }
}
.label-small {
font-size: 9px;
color: #555;
letter-spacing: 1.5px;
margin-bottom: 6px;
}
.last-display {
font-family: 'Orbitron', sans-serif;
font-size: 48px;
font-weight: 900;
color: #fff;
text-shadow: 0 0 18px var(--primary);
margin: 8px 0;
}
.pred-text {
font-size: 28px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 3px;
margin: 10px 0 6px;
}
.big { color: var(--accent); text-shadow: 0 0 14px var(--accent); }
.small{ color: var(--primary); text-shadow: 0 0 14px var(--primary); }
.conf-text, .status-text {
font-size: 14px;
color: #aaa;
margin: 4px 0;
}
.safe-text {
margin-top: 10px;
font-size: 13px;
color: #777;
}
.btn {
width: 100%;
padding: 12px;
border-radius: 10px;
border: none;
font-family: 'Orbitron', sans-serif;
font-size: 11px;
font-weight: bold;
text-transform: uppercase;
margin-bottom: 10px;
cursor: pointer;
transition: 0.25s;
}
.btn-main {
background: linear-gradient(90deg, var(--secondary), var(--primary));
color: white;
box-shadow: 0 0 14px rgba(112,0,255,0.5);
}
.btn-main:active { transform: scale(0.97); }
.btn-hide {
background: rgba(255,255,255,0.05);
color: #666;
}
#show-toggle {
width: 56px;
height: 56px;
background: var(--bg-dark);
border: 3px solid var(--primary);
border-radius: 50%;
position: fixed;
bottom: 30px;
right: 30px;
display: none;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 0 20px var(--primary);
z-index: 10000;
}
</style>
</head>
<body>
<div id="injector-box">
<div class="inner-content">
<div class="drag-handle" id="drag-area">
<span class="brand">ZRX INJECTOR</span>
<span class="close-btn" onclick="hideInjector()">✕</span>
</div>
<div class="injector-body">
<div class="result-container">
<div class="scan-line"></div>
<div class="label-small">LIVE WIN GO 30S</div>
<div class="status-text" id="status">Connecting...</div>
<div class="last-display" id="last-num">?</div>
<div class="pred-text" id="prediction">WAITING...</div>
<div class="conf-text" id="confidence">Confidence: --%</div>
<div class="safe-text" id="safe-numbers">Safe: —</div>
</div>
<button class="btn btn-main" onclick="manualRefresh()">INJECT NOW</button>
<button class="btn btn-hide" onclick="hideInjector()">HIDE</button>
</div>
</div>
</div>
<div id="show-toggle" onclick="showInjector()">
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="#00f2ff" stroke-width="2.5">
<path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/>
</svg>
</div>
<script>
// ──── DRAG LOGIC ────
const box = document.getElementById("injector-box");
const toggle = document.getElementById("show-toggle");
let isDragging = false, offset = [0,0];
document.getElementById("drag-area").onmousedown = (e) => {
isDragging = true;
offset = [box.offsetLeft - e.clientX, box.offsetTop - e.clientY];
};
document.onmousemove = (e) => {
if (isDragging) {
box.style.left = (e.clientX + offset[0]) + "px";
box.style.top = (e.clientY + offset[1]) + "px";
box.style.transform = "none";
}
};
document.onmouseup = () => isDragging = false;
function hideInjector() {
box.style.display = "none";
toggle.style.display = "flex";
}
function showInjector() {
box.style.display = "block";
toggle.style.display = "none";
}
// ──── PREDICTION HELPERS (unchanged) ────
function getFullLogicPrediction(lastNumber, period) {
const num = parseInt(lastNumber);
const pStr = period.toString();
const pSum = [...pStr.slice(-3)].reduce((a, b) => a + parseInt(b), 0);
const goldenRatio = 1.6180339887;
const calc = Math.floor(((num * num) + pSum) * goldenRatio) % 10;
let prediction = calc >= 5 ? "BIG" : "SMALL";
let safeNumbers = [];
if (prediction === "BIG") {
safeNumbers = [(pSum % 5), (pSum + 2) % 5];
} else {
safeNumbers = [5 + (pSum % 5), 5 + ((pSum + 3) % 5)];
}
if (safeNumbers[0] === safeNumbers[1]) {
safeNumbers[1] = (safeNumbers[1] + 1) % 10;
}
return {
main: prediction,
safe: safeNumbers.sort((a,b)=>a-b)
};
}
function streakReversePredictor(nums) {
if (nums.length < 4) return null;
const recent = nums.slice(0,4);
if (recent.every(n => n >= 5)) return {main:"SMALL", conf:84};
if (recent.every(n => n < 5)) return {main:"BIG", conf:83};
return null;
}
function parityPredictor(nums) {
if (nums.length < 8) return null;
const evens = nums.slice(0,8).filter(n=>n%2===0).length;
const odds = 8 - evens;
const main = evens > odds ? "SMALL" : "BIG";
const conf = 76 + Math.abs(evens - odds) * 2.5;
return {main, conf: Math.min(93, Math.round(conf))};
}
function getCombinedPrediction(lastNum, period, historyNums) {
const logics = [];
const l1 = getFullLogicPrediction(lastNum, period);
logics.push({main: l1.main, conf: 86});
const strk = streakReversePredictor(historyNums);
if (strk) logics.push(strk);
const par = parityPredictor(historyNums);
if (par) logics.push(par);
if (logics.length === 0) return {main:"—", conf:0, safe:[]};
let bigScore = 0, total = 0;
logics.forEach(l => {
const w = l.conf / 100;
if (l.main === "BIG") bigScore += w;
total += w;
});
const bigProb = bigScore / total;
const main = bigProb >= 0.5 ? "BIG" : "SMALL";
const conf = Math.round(Math.max(bigProb, 1 - bigProb) * 100);
return {
main,
conf: Math.min(95, conf),
safe: l1.safe
};
}
// ──── API WITH CORS PROXY FIX ────
const TARGET_API = "https://draw.ar-lottery01.com/WinGo/WinGo_30S/GetHistoryIssuePage.json";
let lastIssue = null;
let history = []; // newest first
async function fetchWithProxy() {
const ts = Date.now();
const target = `\( {TARGET_API}?ts= \){ts}`;
// Proxy 1: allorigins (very reliable in 2026)
let proxyUrl = `https://api.allorigins.win/raw?url=${encodeURIComponent(target)}`;
// Fallback Proxy 2 if first fails
const fallbackProxy = `https://corsproxy.io/?${encodeURIComponent(target)}`;
const headers = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 13; SM-G998B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36',
'Referer': 'https://win-go-lottery-app.com/',
'Accept': 'application/json'
};
try {
let res = await fetch(proxyUrl, { cache: 'no-store', headers });
if (!res.ok && res.status !== 200) {
console.warn("Primary proxy failed → trying fallback");
proxyUrl = fallbackProxy;
res = await fetch(proxyUrl, { cache: 'no-store', headers });
}
if (!res.ok) {
throw new Error(`HTTP ${res.status} from proxy`);
}
const json = await res.json();
const item = json?.data?.list?.[0];
if (!item) throw new Error("No data in response");
const issue = item.issue || item.period || String(ts);
const rawNum = item.number || item.code || item.num || "0";
const num = parseInt(rawNum, 10) % 10;
if (lastIssue !== issue) {
history.unshift(num);
if (history.length > 12) history.pop();
lastIssue = issue;
}
return { num, issue, history: [...history] };
} catch (err) {
console.error("Fetch error:", err.message);
return { error: err.message };
}
}
async function updateInjector() {
document.getElementById("status").textContent = "Fetching...";
const data = await fetchWithProxy();
if (data.error) {
document.getElementById("status").textContent = "Error: " + data.error;
document.getElementById("last-num").textContent = "ERR";
document.getElementById("prediction").textContent = "FETCH FAILED";
document.getElementById("confidence").textContent = "Check console";
return;
}
const { num, issue, history } = data;
document.getElementById("status").textContent = "Live • " + issue.slice(-6);
document.getElementById("last-num").textContent = num;
document.getElementById("last-num").style.color = num >= 5 ? "#ff0055" : "#00f2ff";
const pred = getCombinedPrediction(num, issue, history);
const predEl = document.getElementById("prediction");
predEl.textContent = pred.main;
predEl.className = "pred-text " + pred.main.toLowerCase();
document.getElementById("confidence").textContent = `Confidence: ${pred.conf}%`;
document.getElementById("safe-numbers").textContent = `Safe: ${pred.safe.join(" • ")}`;
}
// Start
updateInjector();
setInterval(updateInjector, 30000);
function manualRefresh() {
updateInjector();
}
</script>
</body>
</html>