open toc on wide displays

This commit is contained in:
Wonderfall
2022-07-28 03:17:31 +02:00
parent dfe6ecc550
commit b9e4f627cc
2 changed files with 10 additions and 1 deletions

View File

@ -104,7 +104,16 @@ function showCodeCopyButtons() {
});
}
function openToc() {
var toc = document.getElementById("toc");
if (toc && window.screen.width > 1500 && window.screen.height > 800) {
toc.open = true;
}
}
initializeMenu();
openToc()
if (params.scrollToTop) scrollToTop();
if (params.themeToggle) themeToggle();
if (params.showCodeCopyButtons) showCodeCopyButtons();