diff --git a/README.md b/README.md index 573d5be..55dc08d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 + + + +``` - // 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 diff --git a/presentations/demo/css/print/paper.css b/presentations/demo-v3/css/print/paper.css similarity index 100% rename from presentations/demo/css/print/paper.css rename to presentations/demo-v3/css/print/paper.css diff --git a/presentations/demo/css/print/pdf.css b/presentations/demo-v3/css/print/pdf.css similarity index 100% rename from presentations/demo/css/print/pdf.css rename to presentations/demo-v3/css/print/pdf.css diff --git a/presentations/demo/css/reset.css b/presentations/demo-v3/css/reset.css similarity index 100% rename from presentations/demo/css/reset.css rename to presentations/demo-v3/css/reset.css diff --git a/presentations/demo/css/reveal.css b/presentations/demo-v3/css/reveal.css similarity index 100% rename from presentations/demo/css/reveal.css rename to presentations/demo-v3/css/reveal.css diff --git a/presentations/demo/css/reveal.scss b/presentations/demo-v3/css/reveal.scss similarity index 100% rename from presentations/demo/css/reveal.scss rename to presentations/demo-v3/css/reveal.scss diff --git a/presentations/demo/css/theme/README.md b/presentations/demo-v3/css/theme/README.md similarity index 100% rename from presentations/demo/css/theme/README.md rename to presentations/demo-v3/css/theme/README.md diff --git a/presentations/demo/css/theme/beige.css b/presentations/demo-v3/css/theme/beige.css similarity index 100% rename from presentations/demo/css/theme/beige.css rename to presentations/demo-v3/css/theme/beige.css diff --git a/presentations/demo/css/theme/black.css b/presentations/demo-v3/css/theme/black.css similarity index 100% rename from presentations/demo/css/theme/black.css rename to presentations/demo-v3/css/theme/black.css diff --git a/presentations/demo/css/theme/blood.css b/presentations/demo-v3/css/theme/blood.css similarity index 100% rename from presentations/demo/css/theme/blood.css rename to presentations/demo-v3/css/theme/blood.css diff --git a/presentations/demo/css/theme/league.css b/presentations/demo-v3/css/theme/league.css similarity index 100% rename from presentations/demo/css/theme/league.css rename to presentations/demo-v3/css/theme/league.css diff --git a/presentations/demo/css/theme/moon.css b/presentations/demo-v3/css/theme/moon.css similarity index 100% rename from presentations/demo/css/theme/moon.css rename to presentations/demo-v3/css/theme/moon.css diff --git a/presentations/demo/css/theme/night.css b/presentations/demo-v3/css/theme/night.css similarity index 100% rename from presentations/demo/css/theme/night.css rename to presentations/demo-v3/css/theme/night.css diff --git a/presentations/demo/css/theme/serif.css b/presentations/demo-v3/css/theme/serif.css similarity index 100% rename from presentations/demo/css/theme/serif.css rename to presentations/demo-v3/css/theme/serif.css diff --git a/presentations/demo/css/theme/simple.css b/presentations/demo-v3/css/theme/simple.css similarity index 100% rename from presentations/demo/css/theme/simple.css rename to presentations/demo-v3/css/theme/simple.css diff --git a/presentations/demo/css/theme/sky.css b/presentations/demo-v3/css/theme/sky.css similarity index 100% rename from presentations/demo/css/theme/sky.css rename to presentations/demo-v3/css/theme/sky.css diff --git a/presentations/demo/css/theme/solarized.css b/presentations/demo-v3/css/theme/solarized.css similarity index 100% rename from presentations/demo/css/theme/solarized.css rename to presentations/demo-v3/css/theme/solarized.css diff --git a/presentations/demo/css/theme/source/beige.scss b/presentations/demo-v3/css/theme/source/beige.scss similarity index 100% rename from presentations/demo/css/theme/source/beige.scss rename to presentations/demo-v3/css/theme/source/beige.scss diff --git a/presentations/demo/css/theme/source/black.scss b/presentations/demo-v3/css/theme/source/black.scss similarity index 100% rename from presentations/demo/css/theme/source/black.scss rename to presentations/demo-v3/css/theme/source/black.scss diff --git a/presentations/demo/css/theme/source/blood.scss b/presentations/demo-v3/css/theme/source/blood.scss similarity index 100% rename from presentations/demo/css/theme/source/blood.scss rename to presentations/demo-v3/css/theme/source/blood.scss diff --git a/presentations/demo/css/theme/source/league.scss b/presentations/demo-v3/css/theme/source/league.scss similarity index 100% rename from presentations/demo/css/theme/source/league.scss rename to presentations/demo-v3/css/theme/source/league.scss diff --git a/presentations/demo/css/theme/source/moon.scss b/presentations/demo-v3/css/theme/source/moon.scss similarity index 100% rename from presentations/demo/css/theme/source/moon.scss rename to presentations/demo-v3/css/theme/source/moon.scss diff --git a/presentations/demo/css/theme/source/night.scss b/presentations/demo-v3/css/theme/source/night.scss similarity index 100% rename from presentations/demo/css/theme/source/night.scss rename to presentations/demo-v3/css/theme/source/night.scss diff --git a/presentations/demo/css/theme/source/serif.scss b/presentations/demo-v3/css/theme/source/serif.scss similarity index 100% rename from presentations/demo/css/theme/source/serif.scss rename to presentations/demo-v3/css/theme/source/serif.scss diff --git a/presentations/demo/css/theme/source/simple.scss b/presentations/demo-v3/css/theme/source/simple.scss similarity index 100% rename from presentations/demo/css/theme/source/simple.scss rename to presentations/demo-v3/css/theme/source/simple.scss diff --git a/presentations/demo/css/theme/source/sky.scss b/presentations/demo-v3/css/theme/source/sky.scss similarity index 100% rename from presentations/demo/css/theme/source/sky.scss rename to presentations/demo-v3/css/theme/source/sky.scss diff --git a/presentations/demo/css/theme/source/solarized.scss b/presentations/demo-v3/css/theme/source/solarized.scss similarity index 100% rename from presentations/demo/css/theme/source/solarized.scss rename to presentations/demo-v3/css/theme/source/solarized.scss diff --git a/presentations/demo/css/theme/source/white.scss b/presentations/demo-v3/css/theme/source/white.scss similarity index 100% rename from presentations/demo/css/theme/source/white.scss rename to presentations/demo-v3/css/theme/source/white.scss diff --git a/presentations/demo/css/theme/template/mixins.scss b/presentations/demo-v3/css/theme/template/mixins.scss similarity index 100% rename from presentations/demo/css/theme/template/mixins.scss rename to presentations/demo-v3/css/theme/template/mixins.scss diff --git a/presentations/demo/css/theme/template/settings.scss b/presentations/demo-v3/css/theme/template/settings.scss similarity index 100% rename from presentations/demo/css/theme/template/settings.scss rename to presentations/demo-v3/css/theme/template/settings.scss diff --git a/presentations/demo/css/theme/template/theme.scss b/presentations/demo-v3/css/theme/template/theme.scss similarity index 100% rename from presentations/demo/css/theme/template/theme.scss rename to presentations/demo-v3/css/theme/template/theme.scss diff --git a/presentations/demo/css/theme/white.css b/presentations/demo-v3/css/theme/white.css similarity index 100% rename from presentations/demo/css/theme/white.css rename to presentations/demo-v3/css/theme/white.css diff --git a/presentations/demo-v3/index.html b/presentations/demo-v3/index.html new file mode 100644 index 0000000..aae0e02 --- /dev/null +++ b/presentations/demo-v3/index.html @@ -0,0 +1,457 @@ + + + +
+ + +Remember that you need to serve the presentation HTML from a HTTP server.
' + + 'Remember that you need to serve the presentation HTML from a HTTP server.
' + - 'Remember that you need to serve the presentation HTML from a HTTP server.
' + + '${code}
`;
+ };
+
+ marked.setOptions( {
+ renderer,
+ ...deck.getConfig().markdown
+ } );
+
+ return processSlides( deck.getRevealElement() ).then( convertSlides );
+
+ },
+
+ // TODO: Do these belong in the API?
+ processSlides: processSlides,
+ convertSlides: convertSlides,
+ slidify: slidify,
+ marked: marked
+ }
+
+};
+
+export default Plugin;
diff --git a/presentations/demo/plugin/math/math.esm.js b/presentations/demo/plugin/math/math.esm.js
new file mode 100644
index 0000000..f7d8b3d
--- /dev/null
+++ b/presentations/demo/plugin/math/math.esm.js
@@ -0,0 +1 @@
+function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r'+(n?t:ei(t,!0))+"
\n":""+(n?t:ei(t,!0))+"
\n"}},{key:"blockquote",value:function(t){return"\n"+t+"\n"}},{key:"html",value:function(t){return t}},{key:"heading",value:function(t,e,n,r){return this.options.headerIds?"
"+t+"
\n"}},{key:"table",value:function(t,e){return e&&(e=""+e+""),""+t+"
"}},{key:"br",value:function(){return this.options.xhtml?""+ui(t.message+"",!0)+"";throw t}}hi.options=hi.setOptions=function(t){return si(hi.defaults,t),di(hi.defaults),hi},hi.getDefaults=pi,hi.defaults=fi,hi.use=function(t){var e=si({},t);if(t.renderer&&function(){var n=hi.defaults.renderer||new ni,r=function(e){var r=n[e];n[e]=function(){for(var i=arguments.length,a=new Array(i),o=0;o\n\t\n\t\t\n\n\t\t