diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2021-09-16 15:31:13 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2021-09-16 17:36:26 +0200 |
commit | c41381a961263c28d60976e68923157916c78b15 (patch) | |
tree | 8259a2dd4a374734a5521b9bd1b10dbdf8c39a0e /docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11 | |
parent | e0ca5972b4a300b93a9fe6b44345eeb19d574149 (diff) |
Adapt and improve the dimethenamid vignette
Adapt to the corrected data and unify control parameters for saemix and
nlmixr with saem. Update docs
Diffstat (limited to 'docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11')
-rw-r--r-- | docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11/header-attrs.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11/header-attrs.js b/docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11/header-attrs.js new file mode 100644 index 00000000..dd57d92e --- /dev/null +++ b/docs/dev/articles/web_only/dimethenamid_2018_files/header-attrs-2.11/header-attrs.js @@ -0,0 +1,12 @@ +// Pandoc 2.9 adds attributes on both header and div. We remove the former (to +// be compatible with the behavior of Pandoc < 2.8). +document.addEventListener('DOMContentLoaded', function(e) { + var hs = document.querySelectorAll("div.section[class*='level'] > :first-child"); + var i, h, a; + for (i = 0; i < hs.length; i++) { + h = hs[i]; + if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6 + a = h.attributes; + while (a.length > 0) h.removeAttribute(a[0].name); + } +}); |