static/kelmu.js
function(event, showAction) {
        var data = window.kelmu.data[id];
        var count = Math.max(+showAction.parameter || 1, 1);

        var action = function() {
          forward(event);
        };

        if (!data.animationReadyAvailable) {
          for (var i = 0; i < count; i++) {
            setTimeout(action, i * (data.settings.animationLength + 300));
          }
        } else {
          data.stepEvent = event;
          data.stepsToRun = count - 1;

          if (data.stepsToRun > 0) {
            // Notify the animator that we are running multiple steps that should be combined into a single step
            window.kelmu.sendMessage(id, 'showSequence');
          }

          forward(event);
        }
      }
function(event, showAction) {
        var data = window.kelmu.data[id];
        var count = Math.max(+showAction.parameter || 1, 1);

        var action = function() {
          forward(event);
        };

        if (!data.animationReadyAvailable) {
          for (var i = 0; i < count; i++) {
            setTimeout(action, i * (data.settings.animationLength + 300));
          }
        } else {
          data.stepEvent = event;
          data.stepsToRun = count - 1;

          if (data.stepsToRun > 0) {
            // Notify the animator that we are running multiple steps that should be combined into a single step
            window.kelmu.sendMessage(id, 'showSequence');
          }

          forward(event);
        }
      }
function ( event , showAction ) { var data = window . kelmu . data [ id ] ; var count = Math . max ( + showAction . parameter || 1 , 1 ) ; var action = function ( ) { forward ( event ) ; } ; if ( ! data . animationReadyAvailable ) { for ( var i = 0 ; i < count ; i ++ ) { setTimeout ( action , i * ( data . settings . animationLength + 300 ) ) ; } } else { data . stepEvent = event ; data . stepsToRun = count - 1 ; if ( data . stepsToRun > 0 ) { // Notify the animator that we are running multiple steps that should be combined into a single step window . kelmu . sendMessage ( id , 'showSequence' ) ; } forward ( event ) ; } }
Functionality for the `show` action.
Functionality for the show action .