• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 <?cs # The default side navigation for the reference docs ?><?cs
2 def:custom_left_nav() ?>
3   <div class="g-section g-tpl-240" id="body-content">
4     <div class="g-unit g-first side-nav-resizable" id="side-nav">
5       <div id="swapper">
6         <div id="nav-panels">
7           <div id="resize-packages-nav">
8             <div id="packages-nav">
9               <div id="index-links"><nobr>
10                 <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
11                 <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
12               </div>
13               <ul>
14                 <?cs call:package_link_list(docs.packages) ?>
15               </ul><br/>
16             </div> <!-- end packages -->
17           </div> <!-- end resize-packages -->
18           <div id="classes-nav"><?cs
19             if:subcount(class.package) ?>
20             <ul>
21               <?cs call:list("Interfaces", class.package.interfaces) ?>
22               <?cs call:list("Classes", class.package.classes) ?>
23               <?cs call:list("Enums", class.package.enums) ?>
24               <?cs call:list("Exceptions", class.package.exceptions) ?>
25               <?cs call:list("Errors", class.package.errors) ?>
26             </ul><?cs
27             elif:subcount(package) ?>
28             <ul>
29               <?cs call:class_link_list("Interfaces", package.interfaces) ?>
30               <?cs call:class_link_list("Classes", package.classes) ?>
31               <?cs call:class_link_list("Enums", package.enums) ?>
32               <?cs call:class_link_list("Exceptions", package.exceptions) ?>
33               <?cs call:class_link_list("Errors", package.errors) ?>
34             </ul><?cs
35             else ?>
36               <script>
37                 /*addLoadEvent(maxPackageHeight);*/
38               </script>
39               <p style="padding:10px">Select a package to view its members</p><?cs
40             /if ?><br/>
41           </div><!-- end classes -->
42         </div><!-- end nav-panels -->
43         <div id="nav-tree" style="display:none">
44           <div id="index-links"><nobr>
45             <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> |
46             <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
47           </div>
48         </div><!-- end nav-tree -->
49       </div><!-- end swapper -->
50     </div> <!-- end side-nav -->
51     <script>
52       if (!isMobile) {
53         $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
54         chooseDefaultNav();
55         if ($("#nav-tree").is(':visible')) {
56           init_default_navtree("<?cs var:toroot ?>");
57         } else {
58           addLoadEvent(function() {
59             scrollIntoView("packages-nav");
60             scrollIntoView("classes-nav");
61           });
62         }
63         $("#swapper").css({borderBottom:"2px solid #aaa"});
64       } else {
65         swapNav(); // tree view should be used on mobile
66       }
67     </script><?cs
68 /def ?>