static/media/js/sjl.js @ df21f66dd75e
Atlassian is telling Mercurial users to Eat Shit
author |
Steve Losh <steve@stevelosh.com> |
date |
Mon, 23 Dec 2019 17:21:23 -0500 |
parents |
ceb68ee2312a |
children |
(none) |
function ready(fn) {
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading"){
fn();
} else {
document.addEventListener('DOMContentLoaded', fn);
}
}
ready(function() {
hiddenToc = document.querySelectorAll('#leaf-toc');
actualToc = document.querySelectorAll('#toc');
if (hiddenToc.length && actualToc.length) {
// hugo's toc support is fucked so we need to move shit around by hand
// computers are garbage
actualToc[0].innerHTML = hiddenToc[0].innerHTML;
}
});