diff options
Diffstat (limited to '_includes/scripts')
-rw-r--r-- | _includes/scripts/bootstrap.html | 4 | ||||
-rw-r--r-- | _includes/scripts/jquery.html | 2 | ||||
-rw-r--r-- | _includes/scripts/mansory.html | 6 | ||||
-rw-r--r-- | _includes/scripts/mathjax.html | 12 | ||||
-rw-r--r-- | _includes/scripts/misc.html | 15 |
5 files changed, 39 insertions, 0 deletions
diff --git a/_includes/scripts/bootstrap.html b/_includes/scripts/bootstrap.html new file mode 100644 index 0000000..2c5d4ee --- /dev/null +++ b/_includes/scripts/bootstrap.html @@ -0,0 +1,4 @@ +<!-- Bootsrap & MDB scripts --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/{{ site.popper.version }}/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script> +<script src="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script> diff --git a/_includes/scripts/jquery.html b/_includes/scripts/jquery.html new file mode 100644 index 0000000..8de7788 --- /dev/null +++ b/_includes/scripts/jquery.html @@ -0,0 +1,2 @@ +<!-- jQuery --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/{{ site.jquery.version }}/jquery.min.js" integrity="{{ site.jquery.integrity }}" crossorigin="anonymous"></script> diff --git a/_includes/scripts/mansory.html b/_includes/scripts/mansory.html new file mode 100644 index 0000000..5a93a9e --- /dev/null +++ b/_includes/scripts/mansory.html @@ -0,0 +1,6 @@ +{% if site.enable_mansory %} +<!-- Mansory & imagesLoaded --> +<script defer src="https://unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js"></script> +<script defer src="https://unpkg.com/imagesloaded@4/imagesloaded.pkgd.min.js"></script> +<script defer src="{{ '/assets/js/mansory.js' | relative_url }}" type="text/javascript"></script> +{% endif %} diff --git a/_includes/scripts/mathjax.html b/_includes/scripts/mathjax.html new file mode 100644 index 0000000..53db9e0 --- /dev/null +++ b/_includes/scripts/mathjax.html @@ -0,0 +1,12 @@ +{% if site.enable_math %} +<!-- MathJax --> +<script type="text/javascript"> + window.MathJax = { + tex: { + tags: 'ams' + } + }; +</script> +<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@{{ site.mathjax.version }}/es5/tex-mml-chtml.js"></script> +<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> +{% endif %} diff --git a/_includes/scripts/misc.html b/_includes/scripts/misc.html new file mode 100644 index 0000000..260ce1b --- /dev/null +++ b/_includes/scripts/misc.html @@ -0,0 +1,15 @@ +{% if site.enable_tooltips %} +<!-- Enable Tooltips --> +<script type="text/javascript"> +$(function () {$('[data-toggle="tooltip"]').tooltip()}) +</script> +{% endif %} + +{% if site.enable_medium_zoom %} +<!-- Medium Zoom JS --> +<script src="https://cdn.jsdelivr.net/npm/medium-zoom@{{ site.medium_zoom.version }}/dist/medium-zoom.min.js" integrity="{{ site.medium_zoom.integrity }}" crossorigin="anonymous"></script> +<script src="{{ '/assets/js/zoom.js' | relative_url }}"></script> +{% endif %} + +<!-- Load Common JS --> +<script src="{{ '/assets/js/common.js' | relative_url }}"></script> |