<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<button>Sidebar</button>
<script>
$( "button" ).click(function() {
$( "#dokuwiki__top" ).toggleClass("showSidebar");
$( "#dokuwiki__top" ).toggleClass("hasSidebar");
$( "#dokuwiki__aside").toggle();
});
</script>