aboutsummaryrefslogtreecommitdiff
path: root/docs/articles/mkin_files/accessible-code-block-0.0.1/empty-anchor.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/articles/mkin_files/accessible-code-block-0.0.1/empty-anchor.js')
-rw-r--r--docs/articles/mkin_files/accessible-code-block-0.0.1/empty-anchor.js15
1 files changed, 0 insertions, 15 deletions
diff --git a/docs/articles/mkin_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/articles/mkin_files/accessible-code-block-0.0.1/empty-anchor.js
deleted file mode 100644
index ca349fd6..00000000
--- a/docs/articles/mkin_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');
- }
- }
- }
-});

Contact - Imprint