Skip to content

Commit

Permalink
Added support for reveal.js 4
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenwierum committed Jun 7, 2020
1 parent f1e6407 commit 0213817
Show file tree
Hide file tree
Showing 132 changed files with 8,128 additions and 1,578 deletions.
108 changes: 71 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Demo

A [demo](https://presentations.jowisoftware.de/demo/) is available from.
A [demo](https://presentations.jowisoftware.de/demo/) is available here.

## Using the tool

Expand All @@ -24,55 +24,89 @@ The default port is 8080. Append "--help" for more information.

### Client side

Include the following codeblock into your presentation's configuration:
First, include the dependencies. On Reveal.js 4x. use the following code:

```javascript
Reveal.initialize({
// ...
/*
```html
<!--
reveal.js-remote:
optional configuration (with default values)
*/
remote: {
// enable remote control
//remote: true,
The next two dependencies are required!
If you do not serve the presentations from the presentations/-folder
give the full servername here, e.g.
https://presentations.jowisoftware.de/soket.io/socket.io.js and
https://presentations.jowisoftware.de/_remote/plugin.js_
-->
<script src="../socket.io/socket.io.js"></script>
<script src="../_remote/plugin.js"></script>
```

// enable multiplexing
//multiplex: true,
Next, load the plugin as usual:

// server address
// change this if you do not serve the presentation from the same domain
// example: https://presentations.jowisoftware.de
//server: window.location.protocol + "//" + window.location.host + "/",
```javascript
Reveal.initialize({
//
plugins: [ /* other, plugins, e.g. RevealMarkdown */, RevealRemote ]
//
});
```

// path to socket.io
// change this if the basepath of the server is not "/"
//path: "/socket.io",
On Reveal.js v 3.x, include the scripts as dependencies instead:

// url of the presentation to share
//shareUrl: window.location.href
},
```javascript
Reveal.initialize({
//
dependencies: [
//

/*
reveal.js-remote:
The next two dependencies are required!
If you do not serve the presentations from the presentations/-folder
give the full servername here, e.g.
https://presentations.jowisoftware.de/soket.io/socket.io.js and
https://presentations.jowisoftware.de/_remote/plugin.js_
*/
{ src: '../socket.io/socket.io.js', async: true },
{ src: '../_remote/plugin.js', async: true },
]
//
});
```

dependencies: [
// ...
In both versions, include the following code block into your presentation's configuration to fine-tune the plugin:

```javascript
Reveal.initialize({
//
/*
reveal.js-remote:
The next two dependencies are required!
If you do not serve the presentations from the presentations/-folder give the full servername here, e.g.
https://presentations.jowisoftware.de/soket.io/socket.io.js and
https://presentations.jowisoftware.de/_remote/plugin.js_
optional configuration (with default values)
*/
{ src: '../socket.io/socket.io.js', async: true },
{ src: '../_remote/plugin.js', async: true },
]
});

remote: {
// enable remote control
//remote: true,

// enable multiplexing
//multiplex: true,

// server address
// change this if you do not serve the presentation from the same domain
// example: https://presentations.jowisoftware.de
//server: window.location.protocol + "//" + window.location.host + "/",

// path to socket.io
// change this if the basepath of the server is not "/"
//path: "/socket.io",

// url of the presentation to share
//shareUrl: window.location.href
}
//
});
```

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

### Resuming a presentation

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0213817

Please sign in to comment.