forked from study-area-cn/study-area-cn.old
parent
d791a0b76d
commit
6bd928d8db
|
@ -18,4 +18,5 @@ additional-js = [
|
||||||
"theme/js/highlight.min.js",
|
"theme/js/highlight.min.js",
|
||||||
"theme/js/mathjax.js",
|
"theme/js/mathjax.js",
|
||||||
"theme/js/tocrender.js",
|
"theme/js/tocrender.js",
|
||||||
|
"theme/js/page.js",
|
||||||
]
|
]
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</mdui-top-app-bar>
|
</mdui-top-app-bar>
|
||||||
|
|
||||||
<mdui-navigation-drawer close-on-overlay-click class="toc-drawer" id="toc-drawer" placement="left" open>
|
<mdui-navigation-drawer close-on-overlay-click class="toc-drawer" id="toc-drawer" placement="left">
|
||||||
</mdui-navigation-drawer>
|
</mdui-navigation-drawer>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
|
||||||
|
@ -201,6 +201,8 @@
|
||||||
|
|
||||||
<script>hljs.highlightAll();</script>
|
<script>hljs.highlightAll();</script>
|
||||||
|
|
||||||
|
<script src="{{ ../path_to_root }}theme/js/page.js"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -0,0 +1,3 @@
|
||||||
|
if (window.innerWidth > 640) {
|
||||||
|
document.getElementById("toc-drawer").setAttribute('open', true)
|
||||||
|
}
|
Loading…
Reference in New Issue