File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ document . querySelectorAll ( "article[itemprop='articleBody'] > table" ) . forEach ( function ( table ) {
2+ var wrapper = document . createElement ( "figure" ) ;
3+ wrapper . style . overflowX = "auto" ;
4+ wrapper . style . webkitOverflowScrolling = "touch" ;
5+ wrapper . style . margin = "0" ;
6+ table . parentNode . insertBefore ( wrapper , table ) ;
7+ wrapper . appendChild ( table ) ;
8+ } ) ;
Original file line number Diff line number Diff line change 154154 {% if config.extra.theme %}
155155 < script src ="{{ get_url(path='js/toggle-theme.js', trailing_slash=false) | safe }} "> </ script >
156156 {% endif %}
157+ < script defer src ="{{ get_url(path='js/table-wrap.js', trailing_slash=false) | safe }} "> </ script >
157158 {% include "partials/latex.html" %}
158159 {% include "partials/search.html" %}
159160 {% endblock scripts %}
You can’t perform that action at this time.
0 commit comments