File indexing completed on 2025-01-18 10:18:45
0001 {% comment %}
0002 JavaScript used in lesson and workshop pages.
0003 {% endcomment %}
0004 <script src="{{ relative_root_path }}/assets/js/jquery.min.js"></script>
0005 <script src="{{ relative_root_path }}/assets/js/bootstrap.min.js"></script>
0006 <script src="{{ relative_root_path }}/assets/js/lesson.js"></script>
0007
0008 {% if site.kind == "lesson" %}
0009
0010 <script>
0011 var _paq = window._paq = window._paq || [];
0012 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
0013 _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
0014 _paq.push(["setDomains", ["*.lessons.carpentries.org","*.datacarpentry.github.io","*.datacarpentry.org","*.librarycarpentry.github.io","*.librarycarpentry.org","*.swcarpentry.github.io"]]);
0015 _paq.push(["setDoNotTrack", true]);
0016 _paq.push(["disableCookies"]);
0017 _paq.push(['trackPageView']);
0018 _paq.push(['enableLinkTracking']);
0019 (function() {
0020 var u="https://carpentries.matomo.cloud/";
0021 _paq.push(['setTrackerUrl', u+'matomo.php']);
0022 _paq.push(['setSiteId', '1']);
0023 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
0024 g.async=true; g.src='//cdn.matomo.cloud/carpentries.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
0025 })();
0026 </script>
0027
0028 {% endif %}
0029
0030 {% if page.math %}
0031 <script src="{{ relative_root_path }}/assets/js/katex.min.js"></script>
0032 <script>
0033 options={
0034 delimiters: [
0035 {left: "$$", right: "$$", display: true},
0036 {left: "$", right: "$", display: false},
0037 {left: "\\(", right: "\\)", display: false},
0038 {left: "\\[", right: "\\]", display: true}
0039 ],
0040 output: "mathml"
0041 }
0042 </script>
0043 <script src="{{ relative_root_path }}/assets/js/katex-auto-render.min.js" onload="renderMathInElement(document.body, options)"></script>
0044 {% endif %}
0045
0046 {%- comment -%}
0047 AnchorJS: A JavaScript utility for adding deep anchor links
0048 https://github.com/bryanbraun/anchorjs
0049 https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js
0050 {%- endcomment -%}
0051
0052 <script src="{{ relative_root_path }}/assets/js/anchor.min.js"></script>
0053 <script>
0054 anchors.add();
0055 </script>