annals.tables#
Scrolling, zooming tables for published html pages.
A published html page is served as written; this adds one inlined script (the page’s own
ui/tables.js) that wraps each data table in a horizontally scrollable, zoomable box,
and lifts a viewport meta that forbids pinch-zoom. Markdown documents get the same script
from the page itself, so both paths share one implementation.
Functions
|
|
|
|
A short hash of what |
- annals.tables.add_table_tools(html)[source]#
htmlwith the table script injected, unless it has no table or opts out.- Return type:
- annals.tables.allow_zoom(html)[source]#
htmlwith pinch-zoom allowed: nouser-scalable=noor scale limits in its viewport meta.- Return type:
- annals.tables.tables_version()[source]#
A short hash of what
add_table_tools()injects, for a page’s ETag.- Return type: