"goto now accepts more types of parameters: numbers, id strings and DOM elements"

This commit is contained in:
Bartek Szopka
2012-03-14 22:06:57 +00:00
parent 1a21865ea6
commit 9d99c03392
3 changed files with 18 additions and 5 deletions

View File

@@ -339,8 +339,9 @@ if ("ontouchstart" in document.documentElement) {
`api.init()` - initializes the presentation,
`api.next()` - moves to next step of the presentation,
`api.prev()` - moves to previous step of the presentation
`api.goto( stepElement ) - moves the presentation to given step element (the DOM element of the step).
`api.prev()` - moves to previous step of the presentation,
`api.goto( idx | id | element )` - moves the presentation to the step given by its index number,
id or the DOM element.
You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed.
Don't worry, it wont initialize the presentation again.