|
1 | 1 | <!-- Load Core and Bootstrap JS -->
|
2 |
| -<script src="https://code.jquery.com/jquery-{{ site.jquery_version }}.slim.min.js"></script> |
3 |
| -<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/{{ site.popper_version }}/umd/popper.min.js"></script> |
4 |
| -<script src="https://maxcdn.bootstrapcdn.com/bootstrap/{{ site.bootstrap_version }}/js/bootstrap.min.js"></script> |
5 |
| -<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb_version }}/js/mdb.min.js"></script> |
| 2 | +<script src="https://code.jquery.com/jquery-{{ site.jquery.version }}.slim.min.js" integrity="{{ site.jquery.integrity }}" crossorigin="anonymous"></script> |
| 3 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/{{ site.popper.version }}/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script> |
| 4 | +<script src="https://stackpath.bootstrapcdn.com/bootstrap/{{ site.bootstrap.version }}/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script> |
| 5 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script> |
6 | 6 |
|
7 | 7 | <!-- Load Common JS -->
|
8 | 8 | <script src="{{ '/assets/js/common.js' | relative_url }}"></script>
|
|
12 | 12 |
|
13 | 13 | {% if site.enable_katex %}
|
14 | 14 | <!-- Load KaTeX -->
|
15 |
| -<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/{{ site.katex_version }}/katex.min.css" integrity="sha256-V8SV2MO1FUb63Bwht5Wx9x6PVHNa02gv8BgH/uH3ung=" crossorigin="anonymous" /> |
16 |
| -<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/{{ site.katex_version }}/katex.min.js" integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous"></script> |
| 15 | +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/{{ site.katex.version }}/katex.min.css" integrity="{{ site.katex.integrity.css }}" crossorigin="anonymous" /> |
| 16 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/{{ site.katex.version }}/katex.min.js" integrity="{{ site.katex.integrity.js }}" crossorigin="anonymous"></script> |
17 | 17 | <script src="{{ '/assets/js/katex.js' | relative_url }}"></script>
|
18 | 18 | {% endif %}
|
19 | 19 |
|
20 | 20 | {% if site.enable_mansory %}
|
21 | 21 | <!-- Load Mansory -->
|
22 |
| -<script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/4.2.2/masonry.pkgd.min.js" integrity="sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI=" crossorigin="anonymous"></script> |
23 |
| -{% endif %} |
| 22 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/masonry/{{ site.mansory.version }}/masonry.pkgd.min.js" integrity="{{ site.masonry.integrity }}" crossorigin="anonymous"></script> |
24 | 23 |
|
25 |
| -{% if site.enable_progressbar %} |
26 |
| -<!-- Load Progress Bar --> |
27 |
| -<script src="{{ '/assets/js/progressbar.js' | relative_url }}"></script> |
| 24 | +<!-- Project Cards Layout --> |
| 25 | +<script type="text/javascript"> |
| 26 | + // Init Masonry |
| 27 | + var $grid = $('.grid').masonry({ |
| 28 | + gutter: 10, |
| 29 | + horizontalOrder: true, |
| 30 | + itemSelector: '.grid-item', |
| 31 | + }); |
| 32 | + // layout Masonry after each image loads |
| 33 | + $grid.imagesLoaded().progress( function() { |
| 34 | + $grid.masonry('layout'); |
| 35 | + }); |
| 36 | +</script> |
28 | 37 | {% endif %}
|
29 | 38 |
|
30 | 39 | {% if site.enable_tooltips %}
|
|
0 commit comments