Skip to content

Commit

Permalink
Added readme for zoom functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenwierum committed May 17, 2021
1 parent 61eeea7 commit 0dee117
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,31 @@ In both versions, include the following code block into your presentation's conf

While presenting, press `r` („Remote“) and scan the QR-Code to get the remote control or press `a` („shAre“) to share the presentation.

### Zooming in presentations

Reveal's zoom-Plugin does not emit any events. This is why changes cannot be tracked and synchronized to the audience.

However, thanks to [l-jonas](https://github.com/l-jonas) this plugin now ships with a custom zoom functionality.
To enable this plugin, include an additional Javascript:

```html
<script src="../socket.io/socket.io.js"></script>
<script src="../_remote/plugin.js"></script>
<!-- this line is new: -->
<script src="../_remote/remotezoom.js"></script>
```

Then, load the plugin as usual:

```javascript
Reveal.initialize({
// … other initialization …
plugins: [ RevealRemoteZoom, RevealRemote /*, OtherPlugins… */ ]
});
```

You can now do a synchronized zoom by double-clicking on any element in the presentation.

### Resuming a presentation

When a presentation is reloaded in the browser (both, presenter or audience), the presentation is resumed normally.
Expand Down
2 changes: 1 addition & 1 deletion presentations/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ <h1>THE END</h1>
</div>

<script src="dist/reveal.js"></script>
<script src="../_remote/remotezoom.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/search/search.js"></script>
<script src="plugin/markdown/markdown.js"></script>
Expand All @@ -463,6 +462,7 @@ <h1>THE END</h1>
-->
<script src="../socket.io/socket.io.js"></script>
<script src="../_remote/plugin.js"></script>
<script src="../_remote/remotezoom.js"></script>

<script>

Expand Down

0 comments on commit 0dee117

Please sign in to comment.