diff options
author | Johannes Ranke <johannes.ranke@jrwb.de> | 2025-02-14 07:19:15 +0100 |
---|---|---|
committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2025-02-14 07:19:15 +0100 |
commit | b0f08271d1dae8ffaf57f557c27eba1314ece1d5 (patch) | |
tree | 98da899d455d6945849d6f4b4e98adfb98dc8b2b /docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js | |
parent | 7dc59c522d0639f6473463340e518e2e8074e364 (diff) | |
parent | 55d9c2331e468efd364472555dbfae84603a4f73 (diff) |
Merge branch 'main' into dev
Diffstat (limited to 'docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js')
-rw-r--r-- | docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js deleted file mode 100644 index ca349fd6..00000000 --- a/docs/articles/web_only/compiled_models_files/accessible-code-block-0.0.1/empty-anchor.js +++ /dev/null @@ -1,15 +0,0 @@ -// Hide empty <a> tag within highlighted CodeBlock for screen reader accessibility (see https://github.com/jgm/pandoc/issues/6352#issuecomment-626106786) --> -// v0.0.1 -// Written by JooYoung Seo (jooyoung@psu.edu) and Atsushi Yasumoto on June 1st, 2020. - -document.addEventListener('DOMContentLoaded', function() { - const codeList = document.getElementsByClassName("sourceCode"); - for (var i = 0; i < codeList.length; i++) { - var linkList = codeList[i].getElementsByTagName('a'); - for (var j = 0; j < linkList.length; j++) { - if (linkList[j].innerHTML === "") { - linkList[j].setAttribute('aria-hidden', 'true'); - } - } - } -}); |