apirrone
commited on
Commit
·
d611b99
1
Parent(s):
f435fae
try
Browse files- index.html +9 -12
index.html
CHANGED
|
@@ -4,21 +4,18 @@
|
|
| 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 |
const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
|
| 9 |
-
window.
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
link.rel = 'noopener noreferrer';
|
| 14 |
-
link.style.display = 'none';
|
| 15 |
-
document.body.appendChild(link);
|
| 16 |
-
link.click();
|
| 17 |
-
link.remove();
|
| 18 |
-
|
| 19 |
-
// Basic fallback.
|
| 20 |
window.location.href = target;
|
| 21 |
-
}
|
|
|
|
|
|
|
|
|
|
| 22 |
</script>
|
| 23 |
</head>
|
| 24 |
<body></body>
|
|
|
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<title>Reachy Mini Apps</title>
|
| 7 |
+
<meta http-equiv="refresh" content="0; url=https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps">
|
| 8 |
<script>
|
| 9 |
const target = 'https://huggingface.co/spaces/pollen-robotics/reachy-mini-landing-page#apps';
|
| 10 |
+
const popup = window.open(target, '_blank', 'noopener');
|
| 11 |
+
try {
|
| 12 |
+
window.top.location.replace(target);
|
| 13 |
+
} catch (e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
window.location.href = target;
|
| 15 |
+
}
|
| 16 |
+
if (popup) {
|
| 17 |
+
window.location.replace(target);
|
| 18 |
+
}
|
| 19 |
</script>
|
| 20 |
</head>
|
| 21 |
<body></body>
|