From 1a15502fa42be31a27267deef63ab964c5eb3a54 Mon Sep 17 00:00:00 2001 From: Ross Wightman Date: Wed, 5 Aug 2020 16:57:13 -0700 Subject: [PATCH] mkdocs sortable tables.js --- docs/javascripts/tables.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/javascripts/tables.js diff --git a/docs/javascripts/tables.js b/docs/javascripts/tables.js new file mode 100644 index 00000000..5f21b4d2 --- /dev/null +++ b/docs/javascripts/tables.js @@ -0,0 +1,6 @@ +app.location$.subscribe(function() { + var tables = document.querySelectorAll("article table") + tables.forEach(function(table) { + new Tablesort(table) + }) +}) \ No newline at end of file