diff options
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/footer.html | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/_includes/footer.html b/_includes/footer.html index 9d95bac..f317c45 100644 --- a/_includes/footer.html +++ b/_includes/footer.html | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | <!-- Responsive tables --> | 12 | <!-- Responsive tables --> |
| 13 | <script> | 13 | <script> |
| 14 | document.querySelectorAll('table').forEach(function(element) { | 14 | document.querySelectorAll('table').forEach(function (element) { |
| 15 | if (!element.classList.contains('rouge-table')) { | 15 | if (!element.classList.contains('rouge-table')) { |
| 16 | let parent = element.parentNode; | 16 | let parent = element.parentNode; |
| 17 | let wrapper = document.createElement('div'); | 17 | let wrapper = document.createElement('div'); |
| @@ -52,8 +52,25 @@ | |||
| 52 | <!-- Service worker --> | 52 | <!-- Service worker --> |
| 53 | <script> | 53 | <script> |
| 54 | if ('serviceWorker' in navigator) { | 54 | if ('serviceWorker' in navigator) { |
| 55 | navigator.serviceWorker.register('/sw.js').then(function() { | 55 | navigator.serviceWorker.register('/sw.js').then(function () { |
| 56 | console.log('Service Worker Registered'); | 56 | console.log('Service Worker Registered'); |
| 57 | }); | 57 | }); |
| 58 | } | 58 | } |
| 59 | </script> | 59 | </script> |
| 60 | |||
| 61 | <!-- MathJax --> | ||
| 62 | <script type="text/x-mathjax-config"> | ||
| 63 | MathJax.Hub.Config({ | ||
| 64 | TeX: { | ||
| 65 | equationNumbers: { | ||
| 66 | autoNumber: "AMS" | ||
| 67 | } | ||
| 68 | }, | ||
| 69 | tex2jax: { | ||
| 70 | inlineMath: [ ['$','$'], ['\\(', '\\)'] ], | ||
| 71 | displayMath: [ ['$$','$$'] ], | ||
| 72 | processEscapes: true, | ||
| 73 | } | ||
| 74 | }); | ||
| 75 | </script> | ||
| 76 | <script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" async></script> | ||
