2 var $menu = $('#menu');
4 var $h1 = $('#jqtree h1');
7 $h1.html("<span class=\"first\">jq</span><span class=\"second\">Tree</span>");
12 top: $menu.offset().top,
20 var scrollspy = $body.data('bs.scrollspy');
22 // If no menu item is active, then activate first item
23 if (! scrollspy.activeTarget) {
24 scrollspy.activate('#general');
30 label: 'node1', id: 1,
32 { label: 'child1', id: 2 },
33 { label: 'child2', id: 3 }
37 label: 'node2', id: 4,
39 { label: 'child3', id: 5 }
44 var $tree1 = $('#tree1');