aboutsummaryrefslogtreecommitdiff
path: root/docs/dev/articles/web_only/multistart_files/accessible-code-block-0.0.1
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-09-16 21:06:54 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2022-09-16 21:06:54 +0200
commitfd205e13061de8abc595d266f3b0c7650773d442 (patch)
tree73fc6d4e33f758bec1c45189e39d1533f186a99b /docs/dev/articles/web_only/multistart_files/accessible-code-block-0.0.1
parentafe466d01ccf60a9746616ebc0e06f0383aa814f (diff)
Improve multistart documentation, bugfix
- Split out llhist and parhist documentation - Add example code for multistart - Create a multistart vignette, because the example code fails when run by pkgdown - Fix multistart for the case of mkin transformations in the saem fit
Diffstat (limited to 'docs/dev/articles/web_only/multistart_files/accessible-code-block-0.0.1')
-rw-r--r--docs/dev/articles/web_only/multistart_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/multistart_files/accessible-code-block-0.0.1/empty-anchor.js b/docs/dev/articles/web_only/multistart_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/multistart_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