Skip to content
Snippets Groups Projects
Commit ef7e36e4 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

make mobile javascript work correctly on orientation change

parent 30fc91c7
No related branches found
No related tags found
No related merge requests found
jQuery(function(){
// check if we are in mobile mode
if(jQuery('div.mobileTools').css('display') == 'none') return;
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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment