aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/articles/web_only/saem_benchmarks_files
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-11-14 21:47:45 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-11-14 21:47:45 +0100
commit9275bcb39b5ee25753ef489d334b4906401970b3 (patch)
tree9ddaaf518f8655f38a44f1a0516335989085d490 /docs/dev/articles/web_only/saem_benchmarks_files
parentd6168b0851a52adeaed8099e41a960d79acedae9 (diff)
Update online docs
Diffstat (limited to 'docs/dev/articles/web_only/saem_benchmarks_files')
-rw-r--r--docs/dev/articles/web_only/saem_benchmarks_files/accessible-code-block-0.0.1/empty-anchor.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/dev/articles/web_only/saem_benchmarks_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/dev/articles/web_only/saem_benchmarks_files/accessible-code-block-0.0.1/empty-anchor.js
new file mode 100644
index 00000000..ca349fd6
--- /dev/null
+++ b/docs/dev/articles/web_only/saem_benchmarks_files/accessible-code-block-0.0.1/empty-anchor.js
@@ -0,0 +1,15 @@
+// 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