Spaces:
Sleeping
Sleeping
Fix New test visible focus
Browse files- index.html +7 -1
index.html
CHANGED
|
@@ -2301,7 +2301,13 @@ const client = new OpenAI({
|
|
| 2301 |
behavior: prefersReducedMotion ? "auto" : "smooth",
|
| 2302 |
block: "start",
|
| 2303 |
});
|
| 2304 |
-
window.setTimeout(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2305 |
});
|
| 2306 |
|
| 2307 |
qs("#shareButton").addEventListener("click", async () => {
|
|
|
|
| 2301 |
behavior: prefersReducedMotion ? "auto" : "smooth",
|
| 2302 |
block: "start",
|
| 2303 |
});
|
| 2304 |
+
window.setTimeout(
|
| 2305 |
+
() =>
|
| 2306 |
+
document
|
| 2307 |
+
.querySelector('.terrain-button[aria-pressed="true"]')
|
| 2308 |
+
?.focus({ preventScroll: true }),
|
| 2309 |
+
0,
|
| 2310 |
+
);
|
| 2311 |
});
|
| 2312 |
|
| 2313 |
qs("#shareButton").addEventListener("click", async () => {
|