mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2025-09-04 11:08:39 +02:00
open toc on wide displays
This commit is contained in:
@ -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();
|
Reference in New Issue
Block a user