switch back to our own server

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-06 22:53:22 +08:00
parent 93e174b93b
commit fdbde7f2e8

View File

@ -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]