aboutsummaryrefslogtreecommitdiffstats
path: root/doc/toc.html
blob: 67e5a0a0ad889c98e08855821e09d2b5d3e00e9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<style>
    #accordion .glyphicon { margin-right:10px; }
    .panel-collapse>.list-group .list-group-item:first-child {border-top-right-radius: 0;border-top-left-radius: 0;}
    .panel-collapse>.list-group .list-group-item {border-width: 1px 0;}
    .panel-collapse>.list-group {margin-bottom: 0;}
    .panel-collapse .list-group-item {border-radius:0;}

    .doco-list-group-item {
        padding-left: 15px;
    } 
    .widget {
        position: fixed;
        top:70px;
        width: inherit;
        height: 80%;
        overflow-y: scroll;
    }

</style>

<div class="panel-group" id="accordion">
    <div class="panel">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#about"><span class="glyphicon glyphicon-folder-open">
                    </span>About</a>
            </h4>
        </div>
        <div id="about" class="panel-collapse collapse">
            <ul class="list-group">
                <li class="doco-list-group-item"><a href="/help/about/about_hubzilla#about-hubzilla-toc"><span class="glyphicon glyphicon-file"></span>Hubzilla project</a></li>
                <li class="doco-list-group-item"><a href="/help/about/about_hub"><span class="glyphicon glyphicon-file"></span>About this hub</a></li>
            </ul>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#members"><span class="glyphicon glyphicon-folder-open">
                    </span>Members</a>
            </h4>
        </div>
        <div id="members" class="panel-collapse collapse">
            <ul class="list-group">
                <li class="doco-list-group-item"><a href="/help/member/member_guide#member-guide-toc">Contents</a></li>
                <li class="doco-list-group-item"><a href="/help/member/member_faq#member-faq-toc">FAQ</a></li>
            </ul>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#administrators"><span class="glyphicon glyphicon-folder-open">
                    </span>Administrators</a>
            </h4>
        </div>
        <div id="administrators" class="panel-collapse collapse">
            <ul class="list-group">
                <li class="doco-list-group-item"><a href="/help/admin/administrator_guide#admin-guide-toc">Contents</a></li>
                <li class="doco-list-group-item"><a href="/help/admin/administrator_guide#Before_you_begin">Installation</a></li>


            </ul>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#developers"><span class="glyphicon glyphicon-folder-open">
                    </span>Developers</a>
            </h4>
        </div>
        <div id="developers" class="panel-collapse collapse">
            <ul class="list-group">
                <li class="doco-list-group-item"><a href="/help/developer/developer_guide#developer-guide-toc">Contents</a></li>
                <li class="doco-list-group-item"><a href="/help/developer/developer_guide#Who_is_a_Hubzilla_developer_Should_I_read_this_">Overview</a></li>

            </ul>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            <h4 class="panel-title">
                <a data-toggle="collapse" data-parent="#accordion" href="#tutorials"><span class="glyphicon glyphicon-folder-open">
                    </span>Tutorials</a>
            </h4>
        </div>
        <div id="tutorials" class="panel-collapse collapse">
            <ul class="list-group">
                <li class="doco-list-group-item"><a href="/help/tutorials/personal_channel">Personal Channel</a></li>
            </ul>
        </div>
    </div>
</div>

<script>
//    $(document).ready(function() {
        // Determine the content section from the URL and expand the appropriate menu section
        var url = document.createElement('a');
        url.href = window.location;
        switch (url.pathname.split('/')[2]) {
            case 'tutorials':
                $('#tutorials').addClass('in');
                break;
            case 'about':
                $('#about').addClass('in');
                break;
            case 'admin':
                $('#administrators').addClass('in');
                break;
            case 'member':
                $('#members').addClass('in');
                break;
            case 'developer':
                $('#developers').addClass('in');
                break;
            default:
                break;
        }        
//    }
</script>