Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Opening AI Studio...</title> | |
| <script> | |
| // --- PASTE YOUR AI STUDIO LINK HERE --- | |
| const REDIRECT_URL = "https://arc-copilot-anthropometric-response-capture-631523269461.us-west1.run.app"; | |
| // -------------------------------------- | |
| function redirect() { | |
| // This command forces the browser to break out of the HF iframe | |
| // and open the link in the main window. | |
| try { | |
| if (window.top) { | |
| window.top.location.href = REDIRECT_URL; | |
| } else { | |
| window.location.href = REDIRECT_URL; | |
| } | |
| } catch (e) { | |
| // Fallback for strict blockers | |
| window.location.href = REDIRECT_URL; | |
| } | |
| } | |
| // Run immediately | |
| redirect(); | |
| </script> | |
| <style> | |
| body { font-family: sans-serif; display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100vh; margin: 0; background: #f9f9f9; } | |
| .btn { | |
| background: #2563eb; color: white; padding: 15px 30px; | |
| text-decoration: none; border-radius: 8px; font-weight: bold; | |
| box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: background 0.2s; | |
| } | |
| .btn:hover { background: #1d4ed8; } | |
| p { margin-bottom: 20px; color: #555; } | |
| </style> | |
| </head> | |
| <body> | |
| <p>Opening your App...</p> | |
| <!-- target="_top" is the secret sauce that fixes the click manual fallback --> | |
| <a id="manual-link" href="#" target="_top" class="btn">Click here if not redirected</a> | |
| <script> | |
| // Update the button link to match the variable | |
| document.getElementById('manual-link').href = REDIRECT_URL; | |
| </script> | |
| </body> | |
| </html> | |