2016-12-10 20:33:29 +00:00
|
|
|
<div class="" id="accordion">
|
2016-11-27 15:34:23 +00:00
|
|
|
<div class="panel">
|
2016-12-10 20:33:29 +00:00
|
|
|
<div class="">
|
|
|
|
<h3 class="panel-title">
|
2016-12-20 10:37:57 +00:00
|
|
|
About
|
2016-12-10 20:33:29 +00:00
|
|
|
</h3>
|
2016-11-27 15:34:23 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<div id="about" class="panel-collapse collapse in">
|
2016-11-27 15:34:23 +00:00
|
|
|
<ul class="list-group">
|
2017-03-13 00:32:45 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/about/about">About</a></li>
|
|
|
|
<li class="doco-list-group-item"><a href="/help/about/project">Project</a></li>
|
2016-11-30 03:08:19 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/about/about_hub">About this hub</a></li>
|
2016-11-27 15:34:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
2016-12-10 20:33:29 +00:00
|
|
|
<div class="">
|
|
|
|
<h3 class="panel-title">
|
2016-12-20 10:37:57 +00:00
|
|
|
Members
|
2016-12-10 20:33:29 +00:00
|
|
|
</h3>
|
2016-11-27 15:34:23 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<div id="members" class="panel-collapse collapse in">
|
2016-11-27 15:34:23 +00:00
|
|
|
<ul class="list-group">
|
2016-11-30 03:08:19 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/member/member_guide">Guide</a></li>
|
2016-12-26 19:59:18 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/member/bbcode">BBcode Reference</a></li>
|
2016-11-30 03:08:19 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/member/member_faq">FAQ</a></li>
|
2016-11-27 15:34:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
2016-12-10 20:33:29 +00:00
|
|
|
<div class="">
|
|
|
|
<h3 class="panel-title">
|
2016-12-20 10:37:57 +00:00
|
|
|
Administrators
|
2016-12-10 20:33:29 +00:00
|
|
|
</h3>
|
2016-11-27 15:34:23 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<div id="administrators" class="panel-collapse collapse in">
|
2016-11-27 15:34:23 +00:00
|
|
|
<ul class="list-group">
|
2016-11-30 03:08:19 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/admin/administrator_guide">Guide</a></li>
|
2016-12-09 02:16:30 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/admin/hub_snapshots">Hub Snapshots</a></li>
|
2017-02-14 01:37:58 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/database">Database Tables</a></li>
|
2016-11-27 15:34:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel">
|
2016-12-10 20:33:29 +00:00
|
|
|
<div class="">
|
|
|
|
<h3 class="panel-title">
|
2016-12-20 10:37:57 +00:00
|
|
|
Developers
|
2016-12-10 20:33:29 +00:00
|
|
|
</h3>
|
2016-11-27 15:34:23 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<div id="developers" class="panel-collapse collapse in">
|
2016-11-27 15:34:23 +00:00
|
|
|
<ul class="list-group">
|
2016-11-30 03:08:19 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/developer/developer_guide">Guide</a></li>
|
2017-02-12 18:59:17 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/developer/covenant">Code of Conduct</a></li>
|
2016-12-29 00:40:53 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/developer/zot_protocol">Zot Protocol</a></li>
|
|
|
|
<li class="doco-list-group-item"><a href="/help/developer/api_zot">Zot API</a></li>
|
2017-02-14 01:37:58 +00:00
|
|
|
<li class="doco-list-group-item"><a href="/help/hooklist">Hooks</a></li>
|
2016-11-27 15:34:23 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-11-27 19:52:35 +00:00
|
|
|
<div class="panel">
|
2016-12-10 20:33:29 +00:00
|
|
|
<div class="">
|
|
|
|
<h3 class="panel-title">
|
2016-12-20 10:37:57 +00:00
|
|
|
Tutorials
|
2016-12-10 20:33:29 +00:00
|
|
|
</h3>
|
2016-11-27 19:52:35 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<div id="tutorials" class="panel-collapse collapse in">
|
2016-11-27 19:52:35 +00:00
|
|
|
<ul class="list-group">
|
|
|
|
<li class="doco-list-group-item"><a href="/help/tutorials/personal_channel">Personal Channel</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-11-27 15:34:23 +00:00
|
|
|
</div>
|
2016-11-30 03:08:19 +00:00
|
|
|
<script>
|
2016-12-28 00:57:53 +00:00
|
|
|
toc = {};
|
2016-11-30 03:08:19 +00:00
|
|
|
// Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(".panel-collapse.in").find('a').each(function(){
|
|
|
|
var url = document.createElement('a');
|
|
|
|
url.href = window.location;
|
2017-02-11 19:40:04 +00:00
|
|
|
var pageName = url.href.split('/').pop().split('#').shift().split('?').shift();
|
2016-11-30 03:08:19 +00:00
|
|
|
var linkName = $(this).attr('href').split('/').pop();
|
|
|
|
if(pageName === linkName) {
|
|
|
|
var tocUl = $(this).closest('li').append('<ul>').find('ul');
|
|
|
|
tocUl.removeClass(); // Classes are automatically added to <ul> elements by something else
|
2016-12-20 03:12:08 +00:00
|
|
|
tocUl.toc({content: "#doco-content", headings: "h3"});
|
2016-12-10 20:33:29 +00:00
|
|
|
tocUl.addClass('toc-content sub-menu');
|
2016-12-15 11:25:59 +00:00
|
|
|
tocUl.attr('id', 'doco-side-toc');
|
|
|
|
|
2016-12-08 03:25:50 +00:00
|
|
|
}
|
2016-11-30 03:08:19 +00:00
|
|
|
});
|
2016-12-13 01:10:50 +00:00
|
|
|
|
2016-12-28 00:57:53 +00:00
|
|
|
$(document.body).trigger("sticky_kit:recalc");
|
|
|
|
|
|
|
|
toc.contentTop = [];
|
|
|
|
toc.edgeMargin = 20; // margin above the top or margin from the end of the page
|
|
|
|
toc.topRange = 200; // measure from the top of the viewport to X pixels down
|
|
|
|
// Set up content an array of locations
|
|
|
|
$('#doco-side-toc').find('a').each(function(){
|
|
|
|
toc.contentTop.push( $( '#'+$(this).attr('href').split('#').pop() ).offset().top );
|
|
|
|
});
|
2016-12-16 10:49:27 +00:00
|
|
|
|
2016-11-28 04:25:38 +00:00
|
|
|
|
2016-12-28 00:57:53 +00:00
|
|
|
// adjust side menu
|
|
|
|
$(window).scroll(function(){
|
|
|
|
var winTop = $(window).scrollTop(),
|
|
|
|
bodyHt = $(document).height(),
|
|
|
|
vpHt = $(window).height() + toc.edgeMargin; // viewport height + margin
|
|
|
|
$.each( toc.contentTop, function(i,loc){
|
|
|
|
if ( ( loc > winTop - toc.edgeMargin && ( loc < winTop + toc.topRange || ( winTop + vpHt ) >= bodyHt ) ) ){
|
|
|
|
$('#doco-side-toc li')
|
|
|
|
.removeClass('selected-doco-nav')
|
|
|
|
.eq(i).addClass('selected-doco-nav');
|
2017-02-02 01:39:27 +00:00
|
|
|
if (typeof($('#doco-side-toc li').eq(i).find('a').attr('href').split('#')[1]) !== 'undefined') {
|
|
|
|
window.history.pushState({}, '', location.href.split('#')[0] + '#' + $('#doco-side-toc li').eq(i).find('a').attr('href').split('#')[1]);
|
|
|
|
}
|
2016-12-28 00:57:53 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
2017-02-02 01:39:27 +00:00
|
|
|
|
|
|
|
// When the page loads, it does not scroll to the section specified in the URL because it
|
|
|
|
// has not been constructed yet by the script. This will reload the URL
|
2017-02-11 19:40:04 +00:00
|
|
|
if (typeof(location.href.split('#')[1]) !== 'undefined') {
|
|
|
|
var p = document.createElement('a');
|
|
|
|
p.href = location.href;
|
|
|
|
var portstr = '';
|
|
|
|
if(p.port !== '') {
|
|
|
|
portstr = ':'+ p.port;
|
|
|
|
}
|
|
|
|
var newref = p.protocol + '//'+ p.hostname + portstr + p.pathname + p.hash.split('?').shift();
|
|
|
|
location.replace(newref)
|
2017-02-02 01:39:27 +00:00
|
|
|
}
|
2016-12-28 00:57:53 +00:00
|
|
|
});
|
2016-11-28 13:36:19 +00:00
|
|
|
</script>
|