aboutsummaryrefslogtreecommitdiff
path: root/static/presentations/2021-11-13/garage/examples/multiple-presentations.html
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-11-26 15:51:03 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-11-26 15:51:03 +0100
commit2b53e3e2ef985a01fecede6a5854428391d83726 (patch)
tree1ca7dcc4edbabb55068a315e57c24b58b00fa920 /static/presentations/2021-11-13/garage/examples/multiple-presentations.html
parent888003d72fe33b0a8e8962040d1f759b58f18e6b (diff)
downloadrfid-2b53e3e2ef985a01fecede6a5854428391d83726.tar.gz
rfid-2b53e3e2ef985a01fecede6a5854428391d83726.zip
Ajout présentation et programme du 11/12
Diffstat (limited to 'static/presentations/2021-11-13/garage/examples/multiple-presentations.html')
-rw-r--r--static/presentations/2021-11-13/garage/examples/multiple-presentations.html102
1 files changed, 102 insertions, 0 deletions
diff --git a/static/presentations/2021-11-13/garage/examples/multiple-presentations.html b/static/presentations/2021-11-13/garage/examples/multiple-presentations.html
new file mode 100644
index 0000000..e5347d4
--- /dev/null
+++ b/static/presentations/2021-11-13/garage/examples/multiple-presentations.html
@@ -0,0 +1,102 @@
+<!doctype html>
+<html lang="en">
+
+ <head>
+ <meta charset="utf-8">
+
+ <title>reveal.js - Multiple Presentations</title>
+
+ <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">
+ <link rel="stylesheet" href="../plugin/highlight/monokai.css">
+ </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>
+ <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>
+ </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>
+ <section data-markdown>
+ <script type="text/template">
+ ## Markdown plugin
+
+ - 1
+ - 2
+ - 3
+ </script>
+ </section>
+ <section>
+ <h3>The Lorenz Equations</h3>
+
+ \[\begin{aligned}
+ \dot{x} &amp; = \sigma(y-x) \\
+ \dot{y} &amp; = \rho x - y - xz \\
+ \dot{z} &amp; = -\beta z + xy
+ \end{aligned} \]
+ </section>
+ </div>
+ </div>
+ </div>
+
+ <style>
+ .reveal {
+ border: 4px solid #ccc;
+ }
+ .reveal.focused {
+ border-color: #94b5ff;
+ }
+ </style>
+
+ <script src="../dist/reveal.js"></script>
+ <script src="../plugin/highlight/highlight.js"></script>
+ <script src="../plugin/markdown/markdown.js"></script>
+ <script src="../plugin/math/math.js"></script>
+ <script>
+
+ let deck1 = new Reveal( document.querySelector( '.deck1' ), {
+ embedded: true,
+ progress: false,
+ keyboardCondition: 'focused',
+ plugins: [ RevealHighlight ]
+ } );
+ deck1.on( 'slidechanged', () => {
+ console.log( 'Deck 1 slide changed' );
+ } );
+ deck1.initialize();
+
+ let deck2 = new Reveal( document.querySelector( '.deck2' ), {
+ embedded: true,
+ progress: false,
+ keyboardCondition: 'focused',
+ plugins: [ RevealMarkdown, RevealMath ]
+ } );
+ deck2.initialize().then( () => {
+ deck2.slide(1);
+ } );
+ deck2.on( 'slidechanged', () => {
+ console.log( 'Deck 2 slide changed' );
+ } );
+
+ </script>
+
+ </body>
+</html>