core/js/lib/jquery/plugins/fullpage/fullpage.js
/**
        * Creates a vertical navigation bar.
        */
Creates a vertical navigation bar.
Creates a vertical navigation bar .
function addVerticalNavigation() {
            $body.append('<div id="' + SECTION_NAV + '"><ul></ul></div>');
            var nav = $(SECTION_NAV_SEL);
            nav.addClass(function () {
                return options.showActiveTooltip ? SHOW_ACTIVE_TOOLTIP + ' ' + options.navigationPosition : options.navigationPosition;
            });
            for (var i = 0; i < $(SECTION_SEL).length; i++) {
                var link = '';
                if (options.anchors.length) {
                    link = options.anchors[i];
                }
                var li = '<li><a href="#' + link + '"><span></span></a>';
                var tooltip = options.navigationTooltips[i];
                if (typeof tooltip !== 'undefined' && tooltip !== '') {
                    li += '<div class="' + SECTION_NAV_TOOLTIP + ' ' + options.navigationPosition + '">' + tooltip + '</div>';
                }
                li += '</li>';
                nav.find('ul').append(li);
            }
            $(SECTION_NAV_SEL).css('margin-top', '-' + ($(SECTION_NAV_SEL).height() / 2) + 'px');
            $(SECTION_NAV_SEL).find('li').eq($(SECTION_ACTIVE_SEL).index(SECTION_SEL)).find('a').addClass(ACTIVE);
        }
function addVerticalNavigation ( ) { $body . append ( '<div id="' + SECTION_NAV + '"><ul></ul></div>' ) ; var nav = $ ( SECTION_NAV_SEL ) ; nav . addClass ( function ( ) { return options . showActiveTooltip ? SHOW_ACTIVE_TOOLTIP + ' ' + options . navigationPosition : options . navigationPosition ; } ) ; for ( var i = 0 ; i < $ ( SECTION_SEL ) . length ; i ++ ) { var link = '' ; if ( options . anchors . length ) { link = options . anchors [ i ] ; } var li = '<li><a href="#' + link + '"><span></span></a>' ; var tooltip = options . navigationTooltips [ i ] ; if ( typeof tooltip !== 'undefined' && tooltip !== '' ) { li += '<div class="' + SECTION_NAV_TOOLTIP + ' ' + options . navigationPosition + '">' + tooltip + '</div>' ; } li += '</li>' ; nav . find ( 'ul' ) . append ( li ) ; } $ ( SECTION_NAV_SEL ) . css ( 'margin-top' , '-' + ( $ ( SECTION_NAV_SEL ) . height ( ) / 2 ) + 'px' ) ; $ ( SECTION_NAV_SEL ) . find ( 'li' ) . eq ( $ ( SECTION_ACTIVE_SEL ) . index ( SECTION_SEL ) ) . find ( 'a' ) . addClass ( ACTIVE ) ; }
Creates a vertical navigation bar.
Creates a vertical navigation bar .
// Only add tooltip if needed (defined by user) //centering it vertically //activating the current active section