astro/examples/docs/public/make-scrollable-code-focusable.js

4 lines
116 B
JavaScript
Raw Permalink Normal View History

2021-08-14 00:58:00 +00:00
Array.from(document.getElementsByTagName('pre')).forEach((element) => {
2021-12-22 21:11:05 +00:00
element.setAttribute('tabindex', '0');
2021-08-14 00:58:00 +00:00
});