blob: 75575608befb1074488aab547b5a268cb17750cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
function tpl_dokuwiki_mobile(){
// check if we are in mobile or tablet mode be sure to adjust the number
// here when adjusting it in the css
if(document.body.clientWidth > 979) return;
// toc and sidebar hiding
dw_page.makeToggle('#dokuwiki__aside h3.toggle','#dokuwiki__aside div.content');
jQuery('#dw__toc h3.toggle').click();
jQuery('#dokuwiki__aside h3.toggle').show().click();
}
jQuery(tpl_dokuwiki_mobile);
jQuery(window).bind('resize',tpl_dokuwiki_mobile);
|