diff options
Diffstat (limited to '_includes')
| -rw-r--r-- | _includes/footer.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/_includes/footer.html b/_includes/footer.html index 991d710..1a38d57 100644 --- a/_includes/footer.html +++ b/_includes/footer.html | |||
| @@ -7,3 +7,15 @@ | |||
| 7 | gtag('config', 'UA-12769079-10'); | 7 | gtag('config', 'UA-12769079-10'); |
| 8 | </script> | 8 | </script> |
| 9 | 9 | ||
| 10 | <!-- Responsive tables --> | ||
| 11 | <script> | ||
| 12 | document.querySelectorAll('table').forEach(function(element) { | ||
| 13 | if (!element.classList.contains('rouge-table')) { | ||
| 14 | let parent = element.parentNode; | ||
| 15 | let wrapper = document.createElement('div'); | ||
| 16 | wrapper.classList.add('responsive-table'); | ||
| 17 | parent.replaceChild(wrapper, element); | ||
| 18 | wrapper.appendChild(element); | ||
| 19 | } | ||
| 20 | }); | ||
| 21 | </script> | ||
