templates/assets/js/navigation.js
function () {
            var steps = this.querySelectorAll('.step');
            var scenarioArrow = this.querySelector('.scenario-arrow');

            for (var k = 0; k < steps.length; k++) {
                if (steps[k].style.display === 'block') {
                    scenarioArrow.classList.remove('fa-angle-up');
                    scenarioArrow.classList.add('fa-angle-down');
                    steps[k].style.display = 'none';
                } else {
                    steps[k].style.display = 'block';
                    scenarioArrow.classList.remove('fa-angle-down');
                    scenarioArrow.classList.add('fa-angle-up');
                }
            }
        }
function () {
            var steps = this.querySelectorAll('.step');
            var scenarioArrow = this.querySelector('.scenario-arrow');

            for (var k = 0; k < steps.length; k++) {
                if (steps[k].style.display === 'block') {
                    scenarioArrow.classList.remove('fa-angle-up');
                    scenarioArrow.classList.add('fa-angle-down');
                    steps[k].style.display = 'none';
                } else {
                    steps[k].style.display = 'block';
                    scenarioArrow.classList.remove('fa-angle-down');
                    scenarioArrow.classList.add('fa-angle-up');
                }
            }
        }
function ( ) { var steps = this . querySelectorAll ( '.step' ) ; var scenarioArrow = this . querySelector ( '.scenario-arrow' ) ; for ( var k = 0 ; k < steps . length ; k ++ ) { if ( steps [ k ] . style . display === 'block' ) { scenarioArrow . classList . remove ( 'fa-angle-up' ) ; scenarioArrow . classList . add ( 'fa-angle-down' ) ; steps [ k ] . style . display = 'none' ; } else { steps [ k ] . style . display = 'block' ; scenarioArrow . classList . remove ( 'fa-angle-down' ) ; scenarioArrow . classList . add ( 'fa-angle-up' ) ; } } }
Hiding and displaying steps after clicking on scenario header
Hiding and displaying steps after clicking on scenario header