Tiago520 commited on
Commit
024380d
·
verified ·
1 Parent(s): bc7f623

Cria app para mandar horário em que o jogo Double da plataforma blaze vai pagar o branco. Tendo como estratégia toda vez que o jogo Double pagar um branco em um determinado minuto somar a esse minuto + 5 minutos sendo que a soma desse minuto+ 5 minutos será o minuto do próximo branco se ela não pagar no minuto dessa somar que o app soma ao que não pagou o valor da cor como se fosse minuto como cada minuto a plataforma da dois giros somar a cada giro o valor da cor com o minuto mandando assim mais 2 horários do branco que o app use o site de histórico da Blaze para o jogo double da plataforma Blaze para ter a acesso aos horários em tempo real que ele tenha um botão de buscar o próximo branco - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +239 -18
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Double14x
3
- emoji: 🐠
4
- colorFrom: purple
5
  colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: double14x
3
+ emoji: 🐳
4
+ colorFrom: pink
5
  colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,240 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="pt-BR">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Blaze Double - Previsão de Branco</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
9
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <style>
13
+ .blink {
14
+ animation: blink 1s infinite;
15
+ }
16
+ @keyframes blink {
17
+ 0% { opacity: 1; }
18
+ 50% { opacity: 0.5; }
19
+ 100% { opacity: 1; }
20
+ }
21
+ .gradient-bg {
22
+ background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
23
+ }
24
+ </style>
25
+ </head>
26
+ <body class="gradient-bg min-h-screen text-white">
27
+ <div class="container mx-auto px-4 py-8">
28
+ <header class="text-center mb-8">
29
+ <h1 class="text-4xl font-bold mb-2" data-aos="fade-down">Blaze Double Analyzer</h1>
30
+ <p class="text-xl opacity-75" data-aos="fade-down" data-aos-delay="100">Previsão de horários para saída do branco</p>
31
+ </header>
32
+
33
+ <main class="max-w-2xl mx-auto">
34
+ <div class="bg-gray-800 bg-opacity-50 rounded-xl p-6 shadow-lg backdrop-blur-sm mb-8" data-aos="fade-up">
35
+ <div class="flex justify-between items-center mb-6">
36
+ <h2 class="text-2xl font-semibold">Últimos Resultados</h2>
37
+ <button id="fetchBtn" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center transition-all">
38
+ <i data-feather="refresh-cw" class="mr-2"></i>
39
+ Atualizar
40
+ </button>
41
+ </div>
42
+
43
+ <div id="resultsContainer" class="grid grid-cols-5 gap-2 mb-6">
44
+ <!-- Results will be loaded here -->
45
+ </div>
46
+
47
+ <div class="bg-gray-900 rounded-lg p-4">
48
+ <h3 class="text-lg font-medium mb-3">Próximas Previsões de Branco</h3>
49
+ <div id="predictionsContainer" class="space-y-2">
50
+ <div class="text-center py-4">
51
+ <p class="text-gray-400">Clique em "Atualizar" para ver as previsões</p>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+
57
+ <div class="bg-gray-800 bg-opacity-50 rounded-xl p-6 shadow-lg backdrop-blur-sm" data-aos="fade-up" data-aos-delay="100">
58
+ <h2 class="text-2xl font-semibold mb-4">Como Funciona</h2>
59
+ <ul class="space-y-3">
60
+ <li class="flex items-start">
61
+ <div class="bg-blue-600 rounded-full p-1 mr-3 mt-1">
62
+ <i data-feather="check" class="w-4 h-4"></i>
63
+ </div>
64
+ <span>Analisa o histórico recente do Double da Blaze</span>
65
+ </li>
66
+ <li class="flex items-start">
67
+ <div class="bg-blue-600 rounded-full p-1 mr-3 mt-1">
68
+ <i data-feather="check" class="w-4 h-4"></i>
69
+ </div>
70
+ <span>Identifica quando saiu o branco (0)</span>
71
+ </li>
72
+ <li class="flex items-start">
73
+ <div class="bg-blue-600 rounded-full p-1 mr-3 mt-1">
74
+ <i data-feather="check" class="w-4 h-4"></i>
75
+ </div>
76
+ <span>Calcula o próximo branco como minuto atual +5 minutos</span>
77
+ </li>
78
+ <li class="flex items-start">
79
+ <div class="bg-blue-600 rounded-full p-1 mr-3 mt-1">
80
+ <i data-feather="check" class="w-4 h-4"></i>
81
+ </div>
82
+ <span>Se não sair no minuto previsto, soma o valor da cor como minutos extras</span>
83
+ </li>
84
+ </ul>
85
+ </div>
86
+ </main>
87
+ </div>
88
+
89
+ <script>
90
+ document.addEventListener('DOMContentLoaded', function() {
91
+ AOS.init();
92
+ feather.replace();
93
+
94
+ // Mock data - in a real app, you would fetch from Blaze API
95
+ const mockResults = [
96
+ { color: 'red', number: 7, time: '14:30:45' },
97
+ { color: 'black', number: 14, time: '14:30:30' },
98
+ { color: 'white', number: 0, time: '14:30:15' },
99
+ { color: 'red', number: 3, time: '14:30:00' },
100
+ { color: 'black', number: 11, time: '14:29:45' },
101
+ { color: 'red', number: 5, time: '14:29:30' },
102
+ { color: 'black', number: 12, time: '14:29:15' },
103
+ { color: 'red', number: 1, time: '14:29:00' },
104
+ { color: 'black', number: 8, time: '14:28:45' },
105
+ { color: 'white', number: 0, time: '14:28:30' }
106
+ ];
107
+
108
+ const fetchBtn = document.getElementById('fetchBtn');
109
+ const resultsContainer = document.getElementById('resultsContainer');
110
+ const predictionsContainer = document.getElementById('predictionsContainer');
111
+
112
+ function renderResults(results) {
113
+ resultsContainer.innerHTML = '';
114
+ results.slice(0, 10).forEach(result => {
115
+ const colorClass = result.color === 'white' ? 'bg-white text-black' :
116
+ result.color === 'red' ? 'bg-red-600' : 'bg-black';
117
+ const resultElement = document.createElement('div');
118
+ resultElement.className = `flex flex-col items-center justify-center p-2 rounded-lg ${colorClass}`;
119
+ resultElement.innerHTML = `
120
+ <span class="font-bold">${result.number}</span>
121
+ <span class="text-xs opacity-75">${result.time.split(' ')[1]}</span>
122
+ `;
123
+ resultsContainer.appendChild(resultElement);
124
+ });
125
+ }
126
+
127
+ function calculatePredictions(results) {
128
+ predictionsContainer.innerHTML = '';
129
+
130
+ // Find the most recent white (0)
131
+ const lastWhiteIndex = results.findIndex(r => r.color === 'white');
132
+ if (lastWhiteIndex === -1) {
133
+ predictionsContainer.innerHTML = '<div class="text-center py-4"><p class="text-gray-400">Nenhum branco recente encontrado</p></div>';
134
+ return;
135
+ }
136
+
137
+ const lastWhite = results[lastWhiteIndex];
138
+ const whiteTime = new Date(`2000-01-01T${lastWhite.time}`);
139
+
140
+ // Base prediction: white time + 5 minutes
141
+ const basePrediction = new Date(whiteTime);
142
+ basePrediction.setMinutes(basePrediction.getMinutes() + 5);
143
+
144
+ // If base prediction didn't hit, add color values as minutes
145
+ const nextResults = results.slice(0, lastWhiteIndex);
146
+ let additionalPredictions = [];
147
+
148
+ if (nextResults.length > 0) {
149
+ // Check if base prediction was correct
150
+ const basePredictionTimeStr = basePrediction.toTimeString().substr(0, 8);
151
+ const wasCorrect = results.some(r => r.time.includes(basePredictionTimeStr) && r.color === 'white');
152
+
153
+ if (!wasCorrect) {
154
+ // Add color values as minutes for next predictions
155
+ for (let i = 0; i < Math.min(2, nextResults.length); i++) {
156
+ const result = nextResults[i];
157
+ const newPrediction = new Date(basePrediction);
158
+ newPrediction.setMinutes(newPrediction.getMinutes() + result.number);
159
+ additionalPredictions.push(newPrediction);
160
+ }
161
+ }
162
+ }
163
+
164
+ // Display predictions
165
+ const allPredictions = [basePrediction, ...additionalPredictions];
166
+
167
+ if (allPredictions.length === 0) {
168
+ predictionsContainer.innerHTML = '<div class="text-center py-4"><p class="text-gray-400">Nenhuma previsão disponível</p></div>';
169
+ return;
170
+ }
171
+
172
+ allPredictions.forEach((prediction, index) => {
173
+ const now = new Date();
174
+ const predictionTime = prediction.toTimeString().substr(0, 5);
175
+
176
+ const predictionElement = document.createElement('div');
177
+ predictionElement.className = `bg-gray-700 rounded-lg p-3 flex justify-between items-center ${index === 0 ? 'border-l-4 border-blue-500' : ''}`;
178
+
179
+ predictionElement.innerHTML = `
180
+ <div class="flex items-center">
181
+ <div class="w-8 h-8 rounded-full ${index === 0 ? 'bg-blue-500' : 'bg-purple-500'} flex items-center justify-center mr-3">
182
+ <span class="text-xs font-bold">${index + 1}</span>
183
+ </div>
184
+ <div>
185
+ <p class="font-medium">Previsão ${index === 0 ? 'principal' : 'alternativa'}</p>
186
+ <p class="text-xs opacity-75">Baseado na estratégia</p>
187
+ </div>
188
+ </div>
189
+ <div class="text-right">
190
+ <p class="text-xl font-bold ${isPredictionActive(prediction) ? 'text-green-400 blink' : ''}">${predictionTime}</p>
191
+ <p class="text-xs opacity-75">${getTimeStatus(prediction)}</p>
192
+ </div>
193
+ `;
194
+
195
+ predictionsContainer.appendChild(predictionElement);
196
+ });
197
+ }
198
+
199
+ function isPredictionActive(prediction) {
200
+ const now = new Date();
201
+ const predictionTime = new Date(prediction);
202
+ // Consider active if within 30 seconds of current time
203
+ return Math.abs(now - predictionTime) < 30000;
204
+ }
205
+
206
+ function getTimeStatus(prediction) {
207
+ const now = new Date();
208
+ const predictionTime = new Date(prediction);
209
+
210
+ if (predictionTime < now) {
211
+ const diff = Math.floor((now - predictionTime) / 60000);
212
+ return `Há ${diff} min atrás`;
213
+ } else {
214
+ const diff = Math.floor((predictionTime - now) / 60000);
215
+ return `Em ${diff} min`;
216
+ }
217
+ }
218
+
219
+ fetchBtn.addEventListener('click', function() {
220
+ // Show loading state
221
+ fetchBtn.innerHTML = '<i data-feather="loader" class="animate-spin mr-2"></i> Carregando...';
222
+ feather.replace();
223
+
224
+ // Simulate API fetch delay
225
+ setTimeout(() => {
226
+ renderResults(mockResults);
227
+ calculatePredictions(mockResults);
228
+
229
+ // Reset button
230
+ fetchBtn.innerHTML = '<i data-feather="refresh-cw" class="mr-2"></i> Atualizar';
231
+ feather.replace();
232
+ }, 1000);
233
+ });
234
+
235
+ // Initial load
236
+ renderResults(mockResults);
237
+ });
238
+ </script>
239
+ </body>
240
  </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Cria app para mandar horário em que o jogo Double da plataforma blaze vai pagar o branco. Tendo como estratégia toda vez que o jogo Double pagar um branco em um determinado minuto somar a esse minuto + 5 minutos sendo que a soma desse minuto+ 5 minutos será o minuto do próximo branco se ela não pagar no minuto dessa somar que o app soma ao que não pagou o valor da cor como se fosse minuto como cada minuto a plataforma da dois giros somar a cada giro o valor da cor com o minuto mandando assim mais 2 horários do branco que o app use o site de histórico da Blaze para o jogo double da plataforma Blaze para ter a acesso aos horários em tempo real que ele tenha um botão de buscar o próximo branco