ui.js
/**
     * Function to call with onclick for sidebar menu. Loads the module's dependencies and cleans unused HTML. After animation it calls the list() method of the module
     * @param {string} module - Name of the module to load
    */
Function to call with onclick for sidebar menu. Loads the module's dependencies and cleans unused HTML. After animation it calls the list() method of the module
@param {string} module - Name of the module to load
Function to call with onclick for sidebar menu . Loads the module ' s dependencies and cleans unused HTML . After animation it calls the list () method of the module @param { string } module - Name of the module to load
load(module) {
        if (this.changed()) {
            this.setSection([module]);
            this.onUnsaved();
            window.history.go(-1);
            this.discardSteps = -1;
            this.unsaved = true;
            return;
        }
        if (this.activeClass) {
            document.getElementById(this.state[0]).classList.remove(this.activeClass);
            document.getElementById(module).classList.add(this.activeClass);
        }
        this.setSection([module]);
        this.animationStart = performance.now();
        this.dismissAnimation();
        setTimeout(function () {
            this.onSection();
            this.reconstruct();
        }.bind(this), this.animationTime);
    }
load ( module ) { if ( this . changed ( ) ) { this . setSection ( [ module ] ) ; this . onUnsaved ( ) ; window . history . go ( - 1 ) ; this . discardSteps = - 1 ; this . unsaved = true ; return ; } if ( this . activeClass ) { document . getElementById ( this . state [ 0 ] ) . classList . remove ( this . activeClass ) ; document . getElementById ( module ) . classList . add ( this . activeClass ) ; } this . setSection ( [ module ] ) ; this . animationStart = performance . now ( ) ; this . dismissAnimation ( ) ; setTimeout ( function ( ) { this . onSection ( ) ; this . reconstruct ( ) ; } . bind ( this ) , this . animationTime ) ; }
Function to call with onclick for sidebar menu.
Function to call with onclick for sidebar menu .