Skip to content

Commit 0213817

Browse files
committed
Added support for reveal.js 4
1 parent f1e6407 commit 0213817

File tree

132 files changed

+8128
-1578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+8128
-1578
lines changed

README.md

Lines changed: 71 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Demo
44

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

77
## Using the tool
88

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

2525
### Client side
2626

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

29-
```javascript
30-
Reveal.initialize({
31-
// ...
32-
/*
29+
```html
30+
<!--
3331
reveal.js-remote:
34-
optional configuration (with default values)
35-
*/
36-
remote: {
37-
// enable remote control
38-
//remote: true,
32+
The next two dependencies are required!
33+
If you do not serve the presentations from the presentations/-folder
34+
give the full servername here, e.g.
35+
36+
https://presentations.jowisoftware.de/soket.io/socket.io.js and
37+
https://presentations.jowisoftware.de/_remote/plugin.js_
38+
-->
39+
<script src="../socket.io/socket.io.js"></script>
40+
<script src="../_remote/plugin.js"></script>
41+
```
3942

40-
// enable multiplexing
41-
//multiplex: true,
43+
Next, load the plugin as usual:
4244

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

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

52-
// url of the presentation to share
53-
//shareUrl: window.location.href
54-
},
55+
```javascript
56+
Reveal.initialize({
57+
//
58+
dependencies: [
59+
//
60+
61+
/*
62+
reveal.js-remote:
63+
The next two dependencies are required!
64+
If you do not serve the presentations from the presentations/-folder
65+
give the full servername here, e.g.
66+
67+
https://presentations.jowisoftware.de/soket.io/socket.io.js and
68+
https://presentations.jowisoftware.de/_remote/plugin.js_
69+
*/
70+
{ src: '../socket.io/socket.io.js', async: true },
71+
{ src: '../_remote/plugin.js', async: true },
72+
]
73+
//
74+
});
75+
```
5576

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

79+
```javascript
80+
Reveal.initialize({
81+
//
5982
/*
6083
reveal.js-remote:
61-
The next two dependencies are required!
62-
If you do not serve the presentations from the presentations/-folder give the full servername here, e.g.
63-
64-
https://presentations.jowisoftware.de/soket.io/socket.io.js and
65-
66-
https://presentations.jowisoftware.de/_remote/plugin.js_
84+
optional configuration (with default values)
6785
*/
68-
{ src: '../socket.io/socket.io.js', async: true },
69-
{ src: '../_remote/plugin.js', async: true },
70-
]
71-
});
72-
86+
remote: {
87+
// enable remote control
88+
//remote: true,
89+
90+
// enable multiplexing
91+
//multiplex: true,
92+
93+
// server address
94+
// change this if you do not serve the presentation from the same domain
95+
// example: https://presentations.jowisoftware.de
96+
//server: window.location.protocol + "//" + window.location.host + "/",
97+
98+
// path to socket.io
99+
// change this if the basepath of the server is not "/"
100+
//path: "/socket.io",
101+
102+
// url of the presentation to share
103+
//shareUrl: window.location.href
104+
}
105+
//
106+
});
73107
```
74108

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

77111
### Resuming a presentation
78112

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.

0 commit comments

Comments
 (0)