2020-04-16 16:04:26 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
2020-04-20 09:16:01 +02:00
|
|
|
<title>reveal.js - Multiple Presentations</title>
|
2020-04-16 16:04:26 +02:00
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="../dist/reveal.css">
|
|
|
|
<link rel="stylesheet" href="../dist/theme/white.css" id="theme">
|
2020-05-19 11:02:59 +02:00
|
|
|
<link rel="stylesheet" href="../plugin/highlight/monokai.css">
|
2020-04-16 16:04:26 +02:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body style="background: #ddd;">
|
|
|
|
|
|
|
|
<div style="display: flex; flex-direction: row;">
|
|
|
|
<div class="reveal deck1" style="width: 100%; height: 50vh; margin: 10px;">
|
|
|
|
<div class="slides">
|
|
|
|
<section>Deck 1, Slide 1</section>
|
|
|
|
<section>Deck 1, Slide 2</section>
|
2020-04-23 10:54:48 +02:00
|
|
|
<section>
|
|
|
|
<pre data-id="code-animation"><code class="hljs" data-trim data-line-numbers>
|
|
|
|
import React, { useState } from 'react';
|
|
|
|
function Example() {
|
|
|
|
const [count, setCount] = useState(0);
|
|
|
|
}
|
|
|
|
</code></pre>
|
|
|
|
</section>
|
2020-04-16 16:04:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;">
|
|
|
|
<div class="slides">
|
|
|
|
<section>Deck 2, Slide 1</section>
|
|
|
|
<section>Deck 2, Slide 2</section>
|
2020-04-23 10:54:48 +02:00
|
|
|
<section data-markdown>
|
|
|
|
<script type="text/template">
|
|
|
|
## Markdown plugin
|
|
|
|
|
|
|
|
- 1
|
|
|
|
- 2
|
|
|
|
- 3
|
|
|
|
</script>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<h3>The Lorenz Equations</h3>
|
|
|
|
|
|
|
|
\[\begin{aligned}
|
|
|
|
\dot{x} & = \sigma(y-x) \\
|
|
|
|
\dot{y} & = \rho x - y - xz \\
|
|
|
|
\dot{z} & = -\beta z + xy
|
|
|
|
\end{aligned} \]
|
|
|
|
</section>
|
2020-04-16 16:04:26 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-05-11 09:15:02 +02:00
|
|
|
<style>
|
|
|
|
.reveal {
|
|
|
|
border: 4px solid #ccc;
|
|
|
|
}
|
|
|
|
.reveal.focused {
|
|
|
|
border-color: #94b5ff;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2020-05-08 20:12:52 +02:00
|
|
|
<script src="../dist/reveal.js"></script>
|
2020-05-18 14:41:56 +02:00
|
|
|
<script src="../plugin/highlight/highlight.js"></script>
|
|
|
|
<script src="../plugin/markdown/markdown.js"></script>
|
|
|
|
<script src="../plugin/math/math.js"></script>
|
2020-04-16 16:04:26 +02:00
|
|
|
<script>
|
|
|
|
|
2020-04-21 11:26:02 +02:00
|
|
|
let deck1 = new Reveal( document.querySelector( '.deck1' ), {
|
2020-04-16 16:04:26 +02:00
|
|
|
embedded: true,
|
2020-05-11 09:15:02 +02:00
|
|
|
progress: false,
|
|
|
|
keyboardCondition: 'focused',
|
2020-04-23 10:54:48 +02:00
|
|
|
plugins: [ RevealHighlight ]
|
2020-04-16 16:04:26 +02:00
|
|
|
} );
|
2020-04-21 11:26:02 +02:00
|
|
|
deck1.on( 'slidechanged', () => {
|
2020-04-20 09:16:01 +02:00
|
|
|
console.log( 'Deck 1 slide changed' );
|
|
|
|
} );
|
2020-04-21 11:26:02 +02:00
|
|
|
deck1.initialize();
|
2020-04-16 16:04:26 +02:00
|
|
|
|
2020-04-21 11:26:02 +02:00
|
|
|
let deck2 = new Reveal( document.querySelector( '.deck2' ), {
|
2020-04-16 16:04:26 +02:00
|
|
|
embedded: true,
|
2020-05-11 09:15:02 +02:00
|
|
|
progress: false,
|
|
|
|
keyboardCondition: 'focused',
|
2020-04-23 10:54:48 +02:00
|
|
|
plugins: [ RevealMarkdown, RevealMath ]
|
2020-04-16 16:04:26 +02:00
|
|
|
} );
|
2020-04-21 11:26:02 +02:00
|
|
|
deck2.initialize().then( () => {
|
|
|
|
deck2.slide(1);
|
2020-04-16 16:04:26 +02:00
|
|
|
} );
|
2020-04-21 11:26:02 +02:00
|
|
|
deck2.on( 'slidechanged', () => {
|
2020-04-20 09:16:01 +02:00
|
|
|
console.log( 'Deck 2 slide changed' );
|
|
|
|
} );
|
2020-04-16 16:04:26 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|