astro/smoke/docs-main/public/make-scrollable-code-focusable.js

4 lines
116 B
JavaScript
Raw Normal View History

Array.from(document.getElementsByTagName('pre')).forEach((element) => {
element.setAttribute('tabindex', '0');
});