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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4 lines
116 B
JavaScript
Raw Normal View History

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