apirrone
commited on
Commit
·
f435fae
1
Parent(s):
9493d9e
try
Browse files- index.html +6 -5
index.html
CHANGED
|
@@ -5,10 +5,8 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Reachy Mini Apps</title>
|
| 7 |
<script>
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
// Auto-redirect using an anchor targeting _top.
|
| 12 |
const link = document.createElement('a');
|
| 13 |
link.href = target;
|
| 14 |
link.target = '_top';
|
|
@@ -17,7 +15,10 @@
|
|
| 17 |
document.body.appendChild(link);
|
| 18 |
link.click();
|
| 19 |
link.remove();
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
</script>
|
| 22 |
</head>
|
| 23 |
<body></body>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Reachy Mini Apps</title>
|
| 7 |
<script>
|
| 8 |
+
const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
|
| 9 |
+
window.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
|
|
| 10 |
const link = document.createElement('a');
|
| 11 |
link.href = target;
|
| 12 |
link.target = '_top';
|
|
|
|
| 15 |
document.body.appendChild(link);
|
| 16 |
link.click();
|
| 17 |
link.remove();
|
| 18 |
+
|
| 19 |
+
// Basic fallback.
|
| 20 |
+
window.location.href = target;
|
| 21 |
+
}, { once: true });
|
| 22 |
</script>
|
| 23 |
</head>
|
| 24 |
<body></body>
|