Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

expose new api for slide commands

  • Loading branch information...
commit ef275978d963004003b6ac4615eda19ce3772e06 1 parent 03dcd05
Andrei Neculau authored

Showing 2 changed files with 14 additions and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  remark.min.js
  2. +13 0 src/remark.js
2  remark.min.js
1 addition, 1 deletion not shown
13 src/remark.js
@@ -29,6 +29,19 @@ api.ready = function () {
29 29 api.emit('ready');
30 30 };
31 31
  32 +api.gotoSlide = function(slideNoOrName) {
  33 + dispatcher.emit('gotoSlide', slideNoOrName);
  34 +};
  35 +
  36 +api.gotoNextSlide = function() {
  37 + dispatcher.emit('gotoNextSlide');
  38 +};
  39 +
  40 +api.gotoPreviousSlide = function() {
  41 + dispatcher.emit('gotoPreviousSlide');
  42 +};
  43 +
  44 +
32 45 function assureElementsExist (sourceElement, slideshowElement) {
33 46 if (!sourceElement) {
34 47 dom.alert('remark error: source element not present.');

0 comments on commit ef27597

Please sign in to comment.
Something went wrong with that request. Please try again.