src/main/javascript/scroll/plugin/floatz.scroll.plugin.popupmenu.js
/**
     * Open menu.
     *
     * @param finishHandler Handler called when menu animation is finished
     */
Open menu.
@param finishHandler Handler called when menu animation is finished
Open menu . @param finishHandler Handler called when menu animation is finished
openMenu(finishHandler) {
        this._resizeHandler = () => {
            if (MediaQuery.match(MEDIA_SIZE_GTE_L)) { 
                if (this._menuIcon.hasClass(this.options().closeMenuIcon)) {
                    this._hide();
                }
            }
        };
        DOM.addEvent(window, EVENT_RESIZE, this._resizeHandler);
        this.menuIcon().replaceClass(this.options().openMenuIcon, this.options().closeMenuIcon);
        this.menu()
            .replaceClass(this.options().menuClass, this.options().responsiveMenuClass)
            .animate()
            .end(() => {
                finishHandler();
            })
        ;
        this.menu().addClass(this.options().slideInAnimation);
    }
openMenu ( finishHandler ) { this . _resizeHandler = ( ) => { if ( MediaQuery . match ( MEDIA_SIZE_GTE_L ) ) { if ( this . _menuIcon . hasClass ( this . options ( ) . closeMenuIcon ) ) { this . _hide ( ) ; } } } ; DOM . addEvent ( window , EVENT_RESIZE , this . _resizeHandler ) ; this . menuIcon ( ) . replaceClass ( this . options ( ) . openMenuIcon , this . options ( ) . closeMenuIcon ) ; this . menu ( ) . replaceClass ( this . options ( ) . menuClass , this . options ( ) . responsiveMenuClass ) . animate ( ) . end ( ( ) => { finishHandler ( ) ; } ) ; this . menu ( ) . addClass ( this . options ( ) . slideInAnimation ) ; }
Open menu.
Open menu .
// Remove menu and glass in case that viewpoint gets larger // FIXME // console.debug(LOG_PREFIX + "Opening menu");