aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8439017..b8ad6a0 100644
--- a/README.md
+++ b/README.md
@@ -994,10 +994,12 @@ Limitations:
### Resize Event
-When reveal.js changes the scale of the slides it fires an resize event. You can subscribe to the event to resize your elements accordingly.
+When reveal.js changes the scale of the slides it fires a resize event. You can subscribe to the event to resize your elements accordingly.
```javascript
-Reveal.addEventListener( 'resize', function( event ) { /* console.log(event.scale,event.oldscale,event.size); */ } );
+Reveal.addEventListener( 'resize', function( event ) {
+ // event.scale, event.oldScale, event.size
+} );
```
### postMessage API