mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2026-10-24 09:43:22 +00:00
Add Linx, apply formatting fixes (#145)
* Add Linx, apply formatting fixes Fixes #143 Signed-off-by: David Young <davidy@funkypenguin.co.nz> * Add macros plugin Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
1 parent
5bf1acc403
commit
1e5cd5df29
16 files changed
+210
-134
No files matched your search
@@ -1,27 +0,0 @@
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
load_navpane();
|
||||
});
|
||||
|
||||
function load_navpane() {
|
||||
var width = window.innerWidth;
|
||||
if (width <= 1200) {
|
||||
return;
|
||||
}
|
||||
|
||||
var nav = document.getElementsByClassName("md-nav");
|
||||
for(var i = 0; i < nav.length; i++) {
|
||||
if (typeof nav.item(i).style === "undefined") {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (nav.item(i).getAttribute("data-md-level") && nav.item(i).getAttribute("data-md-component")) {
|
||||
nav.item(i).style.display = 'block';
|
||||
nav.item(i).style.overflow = 'visible';
|
||||
}
|
||||
}
|
||||
|
||||
var nav = document.getElementsByClassName("md-nav__toggle");
|
||||
for(var i = 0; i < nav.length; i++) {
|
||||
nav.item(i).checked = true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
app.document$.subscribe(function() {
|
||||
var tables = document.querySelectorAll("article table")
|
||||
tables.forEach(function(table) {
|
||||
new Tablesort(table)
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user