tweak initialization docs
This commit is contained in:
parent
9c21f9b0f0
commit
094acd6a6a
@ -155,8 +155,11 @@ It's also possible to write presentations using [Markdown](#markdown).
|
|||||||
### Initialization
|
### Initialization
|
||||||
|
|
||||||
If you only have a single presentation on the page we recommend initializing reveal.js using the singleton API.
|
If you only have a single presentation on the page we recommend initializing reveal.js using the singleton API.
|
||||||
```js
|
```html
|
||||||
Reveal.initialize({ keyboard: true });
|
<script src="dist/reveal.min.js"></script>
|
||||||
|
<script>
|
||||||
|
Reveal.initialize({ keyboard: true });
|
||||||
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
The `initialize` method returns a promise which will resolve as soon as the presentation is ready and can be interacted with via the API.
|
The `initialize` method returns a promise which will resolve as soon as the presentation is ready and can be interacted with via the API.
|
||||||
|
Loading…
Reference in New Issue
Block a user