Spaces:
Running
Running
File size: 1,856 Bytes
288358c 655ca38 288358c 655ca38 31f3fb5 655ca38 288358c 655ca38 288358c 655ca38 288358c 655ca38 288358c 655ca38 288358c 80b4608 | 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 | <!DOCTYPE html>
<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>
|