Created
April 24, 2016 09:08
-
-
Save mtancoigne/1b84eda8459d3a92137de8b64746058d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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