1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-18 04:01:46 +00:00

Update for leanpub preview

This commit is contained in:
AutoPenguin
2020-06-03 01:39:26 +00:00
parent 37c2f9a159
commit 65dd34c7ea
120 changed files with 1142 additions and 2639 deletions

View File

@@ -0,0 +1,27 @@
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;
}
}

View File

@@ -2,7 +2,7 @@
const button = new Crate({
server: '396055506072109067',
channel: '456689991326760973',
shard: 'https://disweb.deploys.io',
shard: 'https://e.widgetbot.io',
color: '#795548',
indicator: false,
notifications: true