From fdbde7f2e872910454e1029805ec62d07c6b226f Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Wed, 6 Apr 2022 22:53:22 +0800 Subject: [PATCH] switch back to our own server Signed-off-by: Sean Cross --- index.html | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 8d09271..e06e5f9 100644 --- a/index.html +++ b/index.html @@ -868,6 +868,14 @@ // More info about initialization & config: // - https://revealjs.com/initialization/ // - https://revealjs.com/config/ + reveal_dependencies = [ + { src: 'https://reveal-multiplex.glitch.me/socket.io/socket.io.js', async: true }, + ]; + if (presenter) { + reveal_dependencies.push({ src: 'https://reveal-multiplex.glitch.me/master.js', async: true },); + } else { + reveal_dependencies.push({ src: 'https://unpkg.com/reveal-notes-server/client.js', async: true }); + } Reveal.initialize({ hash: true, @@ -882,8 +890,8 @@ // The "normal" size of the presentation, aspect ratio will be preserved // when the presentation is scaled to fit different resolutions. Can be // specified using percentage units. - width: 960, - height: 700, + width: 1920, + height: 1080, // Factor of the display size that should remain empty around the content margin: 0.1, @@ -891,8 +899,8 @@ multiplex: { // Example values. To generate your own, see the socket.io server instructions. secret: getQueryHash().s || null, - id: '6ee4f7df727dd88f', - url: 'https://reveal-multiplex.glitch.me/' + id: 'ef4a6dfa448e19c1', + url: 'https://p.xobs.io/' }, @@ -907,10 +915,7 @@ }, // Don't forget to add the dependencies - dependencies: [ - { src: 'https://reveal-multiplex.glitch.me/socket.io/socket.io.js', async: true }, - { src: 'https://reveal-multiplex.glitch.me/client.js', async: true } - ], + dependencies: reveal_dependencies, // Learn about plugins: https://revealjs.com/plugins/ plugins: [RevealMarkdown, RevealHighlight, RevealZoom]