Skip to content

Commit d549e4c

Browse files
Remove references to toc.txt
1 parent 4b05d07 commit d549e4c

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

js/menu.js

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
var tocData;
2-
var treeOutput = new Array();
3-
function renderTree(tree)
4-
{
5-
for (var i=0; i < tree.length; i++)
6-
{
7-
if (tree[i].heading)
8-
{
9-
// render a heading
10-
} else {
11-
if (tree[i].sectiontitle) {
12-
treeOutput.push('<li class="leaf menu-closed"><a href="#" class="expand-menu "><span class="menu-icon" aria-hidden="true"></span>' + tree[i].sectiontitle + '</a>');
13-
treeOutput.push('<ul class="nav-sub">');
14-
renderTree(tree[i].section);
15-
treeOutput.push('</ul>');
16-
} else {
17-
treeOutput.push('<li class="leaf"><a href="' + tree[i].path +'" class="');
18-
if (tree[i].path == window.location.pathname) treeOutput.push('active currentPage');
19-
treeOutput.push('">' + tree[i].title + '</a></li>');
20-
}
21-
}
22-
}
23-
}
242
function hookupTOCEvents()
253
{
264
// do after tree render
@@ -41,14 +19,6 @@ function hookupTOCEvents()
4119
});
4220
}
4321
jQuery(document).ready(function(){
44-
/*
45-
$.getJSON( "/toc.txt", function( data ) {
46-
tocData = data;
47-
renderTree(data.toc);
48-
$(".nav-sub").html(treeOutput.join(''));
49-
hookupTOCEvents();
50-
});
51-
*/
5222
hookupTOCEvents();
5323
$("#TableOfContents ul").empty();
5424

toc.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)