apirrone
commited on
Commit
·
9493d9e
1
Parent(s):
0930f24
try
Browse files- index.html +9 -16
index.html
CHANGED
|
@@ -4,26 +4,19 @@
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Reachy Mini Apps</title>
|
| 7 |
-
<style>
|
| 8 |
-
:root {
|
| 9 |
-
color-scheme: light;
|
| 10 |
-
}
|
| 11 |
-
|
| 12 |
-
* {
|
| 13 |
-
box-sizing: border-box;
|
| 14 |
-
}
|
| 15 |
-
|
| 16 |
-
</style>
|
| 17 |
<script>
|
| 18 |
(function setupRedirect() {
|
| 19 |
const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
|
| 20 |
|
| 21 |
-
//
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
| 27 |
})();
|
| 28 |
</script>
|
| 29 |
</head>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Reachy Mini Apps</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
<script>
|
| 8 |
(function setupRedirect() {
|
| 9 |
const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
|
| 10 |
|
| 11 |
+
// Auto-redirect using an anchor targeting _top.
|
| 12 |
+
const link = document.createElement('a');
|
| 13 |
+
link.href = target;
|
| 14 |
+
link.target = '_top';
|
| 15 |
+
link.rel = 'noopener noreferrer';
|
| 16 |
+
link.style.display = 'none';
|
| 17 |
+
document.body.appendChild(link);
|
| 18 |
+
link.click();
|
| 19 |
+
link.remove();
|
| 20 |
})();
|
| 21 |
</script>
|
| 22 |
</head>
|