ui.js
/**
     * When jumping between main sections you should use this method to add all the previous steps to the history
     * @param {string[]} path - Path to go to
     */
When jumping between main sections you should use this method to add all the previous steps to the history
@param {string[]} path - Path to go to
When jumping between main sections you should use this method to add all the previous steps to the history @param { string [] } path - Path to go to
link(path) {
        if (this.activeClass) {
            document.getElementById(this.state[0]).classList.remove(this.activeClass);
            document.getElementById(path[0]).classList.add(this.activeClass);
        }
        this.setSection([path[0]]);
        if (path.length > 1) {
            this.pushSection([path[1]]);
            for (var i = 2; i < path.length; i = i + 2) {
                this.pushSection([path[i], path[i + 1]]);
            }
        }
        this.animationStart = performance.now();
        this.dismissAnimation();
        setTimeout(function () {
            this.onSection();
            this.reconstruct();
        }.bind(this), this.animationTime);
    }
link ( path ) { if ( this . activeClass ) { document . getElementById ( this . state [ 0 ] ) . classList . remove ( this . activeClass ) ; document . getElementById ( path [ 0 ] ) . classList . add ( this . activeClass ) ; } this . setSection ( [ path [ 0 ] ] ) ; if ( path . length > 1 ) { this . pushSection ( [ path [ 1 ] ] ) ; for ( var i = 2 ; i < path . length ; i = i + 2 ) { this . pushSection ( [ path [ i ] , path [ i + 1 ] ] ) ; } } this . animationStart = performance . now ( ) ; this . dismissAnimation ( ) ; setTimeout ( function ( ) { this . onSection ( ) ; this . reconstruct ( ) ; } . bind ( this ) , this . animationTime ) ; }
When jumping between main sections you should use this method to add all the previous steps to the history
 @param {string[]} path - Path to go to
When jumping between main sections you should use this method to add all the previous steps to the history @param { string [] } path - Path to go to