summaryrefslogtreecommitdiff
path: root/examples/docs/public/make-scrollable-code-focusable.js
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 15:04:19 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 15:04:44 -0700
commitfdd701dd88529ee0d4911283e35be86b000ed1fc (patch)
tree61d450d04633eece1c12b350b9ef3512dc2fa7b7 /examples/docs/public/make-scrollable-code-focusable.js
parent84c18d3030c98b2770144a8a27d1cca7bbfedc1d (diff)
parent2e8db7ad2384b756894eac6be72bcf720f7f28fa (diff)
downloadastro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.gz
astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.tar.zst
astro-fdd701dd88529ee0d4911283e35be86b000ed1fc.zip
Merge branch 'okikio/main' (#1111)
Diffstat (limited to 'examples/docs/public/make-scrollable-code-focusable.js')
-rw-r--r--examples/docs/public/make-scrollable-code-focusable.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/docs/public/make-scrollable-code-focusable.js b/examples/docs/public/make-scrollable-code-focusable.js
new file mode 100644
index 000000000..35f104923
--- /dev/null
+++ b/examples/docs/public/make-scrollable-code-focusable.js
@@ -0,0 +1,3 @@
+Array.from(document.getElementsByTagName('pre')).forEach((element) => {
+ element.setAttribute('tabindex', '0');
+});