Lines Matching refs:nav
24 $('#nav-swap .fullscreen').click(function(){
36 $('h2').not('#qv h2').not('#tb h2').not('.sidebox h2').not('#devdoc-nav h2').not('h2.norule').css({marginBottom:0}).after('<hr/>');
109 // prep nav expandos
142 var $selNavLink = $('#nav').find('a[href="' + pagePath + '"]');
149 // Traverse up the tree and expand all parent nav-sections
150 $selNavLink.parents('li.nav-section').each(function() {
163 if ($prevListItem.hasClass('nav-section')) {
166 } else if (!$selListItem.hasClass('nav-section')) {
177 if (!crossBoundaries && $parentListItem.hasClass('nav-section')
178 && $selListItem.hasClass('nav-section')) {
189 if ($selListItem.hasClass('nav-section')) {
213 $nextLink = $selListItem.parents('li:eq(0)').next('li.nav-section').find('a:eq(0)');
215 $nextLink = $selListItem.parents('li:eq(1)').next('li.nav-section').find('a:eq(0)');
250 // If this is a training 'article', there should be no prev/next nav
251 // ... if the grandparent is the "nav" ... and it has no child list items...
252 if (training && $selListItem.parents('ul').eq(1).is('[id="nav"]') &&
264 var $classLinks = $selListItem.find('ul li a').not('#nav .nav-section .nav-section ul a');
303 $('#nav li.nav-section .nav-section-header').click(function() {
304 var section = $(this).closest('li.nav-section');
318 var $others = $('li.nav-section.expanded', $(this).closest('ul'));
334 /* Resize nav height when window height changes */
336 if ($('#side-nav').length == 0) return;
354 if ($('#side-nav').length == 0) return;
362 var subheaderHeight = $('#nav-x').outerHeight();
370 if ($("#doc-col").height() < $("#side-nav").height()) {
390 var width = $('#devdoc-nav').width();
391 $('#devdoc-nav')
396 $('#devdoc-nav a.totop').css({'display':'block','width':$("#nav").innerWidth()+'px'});
402 $('#devdoc-nav')
405 .prependTo('#side-nav');
406 $('#devdoc-nav a.totop').hide();
416 if ($('#devdoc-nav').length) {
421 // Stop expand/collapse behavior when clicking on nav section links (since we're navigating away
423 $('.nav-section-header').find('a:eq(0)').click(function(evt) {
479 var $sidenav = $("#side-nav");
482 $("#devdoc-nav #nav").css("width", sidenav_width - 4 + "px"); // 4px is scrollbar width
509 resizePackagesNav = $("#resize-packages-nav");
510 classesNav = $("#classes-nav");
511 devdocNav = $("#devdoc-nav");
539 $('#nav-swap .fullscreen').removeClass('disabled');
540 $('#devdoc-nav').css({left:''});
546 $('#nav-swap .fullscreen').addClass('disabled');
565 $('#devdoc-nav').css({left: -newLeft});
566 $('#devdoc-nav .totop').css({left: -(newLeft - parseInt($('#side-nav').css('margin-left')))});
620 var $nav = $("#devdoc-nav");
629 var subheaderHeight = $('#nav-x').outerHeight();
632 // get the height of space between nav and top of window.
633 // Could be either margin or top position, depending on whether the nav is fixed.
634 var topMargin = (parseInt($nav.css('margin-top')) || parseInt($nav.css('top'))) + 1;
635 // add 1 for the #side-nav bottom margin
637 // Depending on whether the header is visible, set the side nav's height.
642 // Once header is off screen, the nav height is almost full window height
650 // subtract the height of the api level widget and nav swapper from the available nav height
651 navHeight -= ($('#api-nav-header').outerHeight(true) + $('#nav-swap').outerHeight(true));
654 if ($("#nav-tree").is(":visible")) {
655 $("#nav-tree").css({height:navHeight});
658 var classesHeight = navHeight - parseInt($("#resize-packages-nav").css("height")) - 10 + "px";
664 $("#resize-packages-nav").css({height:navHeight - 10}); //subtract 10px for drag bar
665 $("#packages-nav").css({height:navHeight - 10});
668 $("#classes-nav").css({'height':classesHeight, 'margin-top':'10px'});
669 $("#classes-nav .jspContainer").css({height:classesHeight});
673 $nav.height(navHeight);
688 /* Re-initialize the scrollbars to account for changed nav size.
713 /* Re-initialize the scrollbars to account for changed nav size. */
724 /* Resize the height of the nav panels in the reference,
735 $("#resize-packages-nav").height(packageHeight);
736 $("#packages-nav").height(packageHeight);
738 // $("#classes-nav").css({height:classesHeight});
739 // $("#classes-nav .jspContainer").css({height:classesHeight});
752 function scrollIntoView(nav) {
753 var $nav = $("#"+nav);
754 var element = $nav.jScrollPane({/* ...settings... */});
757 if ($nav.is(':visible')) {
758 var $selected = $(".selected", $nav);
762 if (selectedOffset + 90 > $nav.height()) { // add 90 so that we scroll up even
764 api.scrollTo(0, selectedOffset - ($nav.height() / 4), false); // scroll the item into view
953 /* REFERENCE NAV SWAP */
967 $("#nav-panels").toggle();
969 $("#nav-tree").toggle();
983 writeCookie("nav", nav_pref, "reference", date.toGMTString());
985 $("#nav-panels").toggle();
987 $("#nav-tree").toggle();
993 $("#nav-tree .jspContainer:visible")
994 .css({'height':$("#nav-tree .jspContainer .jspPane").height() +'px'});
998 if ($("#nav-tree").is(':visible')) {
999 scrollIntoView("nav-tree");
1001 scrollIntoView("packages-nav");
1002 scrollIntoView("classes-nav");
1040 var $links = $("#devdoc-nav,#header,#nav-x,.training-nav-top,.content-footer").find("a["+lang+"-lang]");
1398 var nav = $(o.nav_id, div);
1399 var nav_li = $("li", nav);
1923 $( "#resize-packages-nav" ).resizable({
1924 containment: "#nav-panels",
1926 alsoResize: "#packages-nav",
1927 resize: function(event, ui) { resizeNav(); }, /* resize the nav while dragging */
1935 $('#devdoc-nav').css({
1936 'width' : $('#side-nav').css('width'),
1937 'margin' : $('#side-nav').css('margin')
1939 $('#devdoc-nav a.totop').css({'display':'block','width':$("#nav").innerWidth()+'px'});
1946 $('#devdoc-nav').css({
1947 'width' : $('#side-nav').css('width'),
1948 'margin' : $('#side-nav').css('margin')
1950 $('#devdoc-nav .totop').css({'left': 'inherit'});
2140 toggleVisisbleApis(selectedLevel, "#side-nav");
2205 toggleVisisbleApis(selectedLevel, "#side-nav");
2236 scrollIntoView("nav-tree");
2291 node.li.className="nav-section";
2293 node.label_div.className = "nav-section-header-ref";