function handlePlayPause(evt)
    {
        const state = getState('playing');

        visualizers[getCurrentActive()].state.playing = !state;
        activeVisualizer.togglePlay();

        if (state) {
            evt.target.dataset.toggle = "pause";
        } else {
            evt.target.dataset.toggle = "play";
        }
    }
/* ------------------------------------------------------------------------
     * handlePlayPause
     * ------------------------------------------------------------------------
     * param evt - Javascript event
     *
     * Event handeler for pausing or playing the animation determined by the
     * current state of the play/pause button.
     */


param evt - Javascript event

Event handeler for pausing or playing the animation determined by the
current state of the play/pause button.
param evt - Javascript event Event handeler for pausing or playing the animation determined by the current state of the play / pause button .
function handlePlayPause(evt)
    {
        const state = getState('playing');
        visualizers[getCurrentActive()].state.playing = !state;
        activeVisualizer.togglePlay();
        if (state) {
            evt.target.dataset.toggle = "pause";
        } else {
            evt.target.dataset.toggle = "play";
        }
    }
function handlePlayPause ( evt ) { const state = getState ( 'playing' ) ; visualizers [ getCurrentActive ( ) ] . state . playing = ! state ; activeVisualizer . togglePlay ( ) ; if ( state ) { evt . target . dataset . toggle = "pause" ; } else { evt . target . dataset . toggle = "play" ; } }
handlePlayPause
handlePlayPause