maralvic commited on
Commit
e132fea
·
verified ·
1 Parent(s): 4403967

Acrescentar o icone de progresso enquanto o sistema gera os acessos após acionar "Buscar" - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +19 -1
index.html CHANGED
@@ -258,10 +258,28 @@
258
  <div class="loading-container">
259
  <div class="loader"></div>
260
  <p>Aguarde enquanto os acessos estão sendo gerados...</p>
 
 
 
261
  </div>
262
  `;
263
 
 
 
 
 
 
 
 
 
264
  await displayResults(matchedCities, input, resultContent, controller);
 
 
 
 
 
 
 
265
 
266
  } catch (error) {
267
  if (error.name !== 'AbortError') {
@@ -495,5 +513,5 @@
495
  </div>
496
  </footer>
497
 
498
- <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;"><a href="https://marcelovicente.prof" style="color: #fff;text-decoration: underline;" target="_self" >Voltar ao início</a> | <i class="fas fa-rocket"></i> <a href="https://marcelovicente.prof/tta1947" style="color: #fff;text-decoration: underline;" target="_blank" >Fazer a inscrição!</a></p>
499
  </html>
 
258
  <div class="loading-container">
259
  <div class="loader"></div>
260
  <p>Aguarde enquanto os acessos estão sendo gerados...</p>
261
+ <div class="w-full bg-gray-200 rounded-full h-2.5 mt-4">
262
+ <div id="progressBar" class="bg-blue-600 h-2.5 rounded-full" style="width: 0%"></div>
263
+ </div>
264
  </div>
265
  `;
266
 
267
+ // Update progress bar during URL generation
268
+ const progressBar = document.getElementById('progressBar');
269
+ const progressInterval = setInterval(() => {
270
+ const currentWidth = parseInt(progressBar.style.width) || 0;
271
+ const newWidth = Math.min(currentWidth + 5, 95);
272
+ progressBar.style.width = `${newWidth}%`;
273
+ }, 300);
274
+
275
  await displayResults(matchedCities, input, resultContent, controller);
276
+
277
+ // Complete progress bar and remove it
278
+ clearInterval(progressInterval);
279
+ progressBar.style.width = '100%';
280
+ setTimeout(() => {
281
+ progressBar.style.display = 'none';
282
+ }, 500);
283
 
284
  } catch (error) {
285
  if (error.name !== 'AbortError') {
 
513
  </div>
514
  </footer>
515
 
516
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;"><a href="https://marcelovicente.prof" style="color: #fff;text-decoration: underline;" target="_self" >Voltar ao início</a> | <i class="fas fa-rocket"></i> <a href="https://marcelovicente.prof/tta1947" style="color: #fff;text-decoration: underline;" target="_blank" >Fazer a inscrição!</a></p><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=maralvic/basic" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
517
  </html>