1jQuery(document).on('click', function(e) {
2    if (!jQuery(e.target).closest('.menu').length) {
3        jQuery('.menu:not(.mobile-menu) .list').hide();
4    }
5
6     if (!jQuery(e.target).closest('.dw__toc').length) {
7        jQuery('#dw__toc>div').hide();
8        jQuery('#dw__toc>div>ul').hide();
9        jQuery('#dw__toc').css('display','block');
10    }
11});
12jQuery('.menu:not(.mobile-menu)').on('click', function(e) {
13    jQuery('.menu:not(.mobile-menu) .list').not(jQuery(this).children('.list')).hide();
14    jQuery(this).children('.list').slideToggle('fast');
15});
16
17jQuery(document).ready(function(){
18jQuery('#dw__toc>div').hide();
19jQuery('#dw__toc>div>ul').hide();
20jQuery('#dw__toc').css('display','block');
21});
22
23
24jQuery("#showhidesidemenu").on("click", () => {
25
26    if(jQuery("#sidebar").css("display") == "none")
27    {
28        jQuery("#navbar .right-column").css("display","none");
29        jQuery("#sidebar").css("display","flex");
30        jQuery("#view, .site-header, #footer").css("display","none");
31    }
32    else
33    {
34        jQuery("#navbar .right-column").css("display","none");
35        jQuery("#sidebar").css("display","none");
36        jQuery("#view, .site-header, #footer").css("display","flex");
37    }
38
39
40
41});
42
43jQuery("#showhideappoptions").on("click", () => {
44
45
46    if(jQuery("#navbar .right-column").css("display") == "none")
47    {
48        jQuery("#navbar .right-column").css("display","flex");
49        jQuery("#sidebar").css("display","none");
50        jQuery("#view, .site-header, #footer").css("display","none");
51    }
52    else
53    {
54        jQuery("#navbar .right-column").css("display","none");
55        jQuery("#sidebar").css("display","none");
56        jQuery("#view, .site-header, #footer").css("display","flex");
57    }
58
59});