Sha256: ca0d56504b019bbf1e65179eceb45fa11ed0daba014b6517fdd18b871a741e53

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

$(document).ready(function() {

  var publishCommand = function(notificationName) {
    return function(tokens) { $.publish(notificationName); };
  }

  window.TerminalCommands = {
    next : publishCommand('presentation:slide:next'),
    previous : publishCommand('presentation:slide:previous'),
    goto : function(tokens) {
      var slide = parseInt(tokens[0]) - 1;
      $.publish('presentation:slide:location:change',slide);
    }
   };

});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parade-0.8.0 lib/public/js/parade-command-input.js