Skip to content

Instantly share code, notes, and snippets.

@mtancoigne
Created April 24, 2016 09:08
Show Gist options
  • Save mtancoigne/1b84eda8459d3a92137de8b64746058d to your computer and use it in GitHub Desktop.
Save mtancoigne/1b84eda8459d3a92137de8b64746058d to your computer and use it in GitHub Desktop.
//Functions
// `current` API function returns the current step step
var current = function() {
return steps.indexOf(activeStep);
};
// `total` API function returns the number of steps present
var total = function() {
return steps.length;
};
// API definition:
// Store and return API for given impress.js root element
return ( roots[ "impress-root-" + rootId ] = {
init: init,
goto: goto,
next: next,
prev: prev,
current: current,
total: total
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment