summaryrefslogtreecommitdiff
path: root/reveal.js/demo.html
diff options
context:
space:
mode:
authorSimeon Simeonov2022-09-10 18:19:22 +0200
committerSimeon Simeonov2022-09-10 18:19:22 +0200
commit4ef55e4d52e06d071354bd7f6f6ba0a86243fc0e (patch)
treea8e961da78d84163cbb563f9e106d95314bea5e8 /reveal.js/demo.html
parent29c52d98bf7feb132a1857cce2058ec7134e4b0f (diff)
Add reveal.js/dist/theme/jupyter.css and reveal.js/python-oo.html
Diffstat (limited to 'reveal.js/demo.html')
-rw-r--r--reveal.js/demo.html37
1 files changed, 22 insertions, 15 deletions
diff --git a/reveal.js/demo.html b/reveal.js/demo.html
index ea42adf..ab11f77 100644
--- a/reveal.js/demo.html
+++ b/reveal.js/demo.html
@@ -52,7 +52,7 @@
52 <p>Slides can be nested inside of each other.</p> 52 <p>Slides can be nested inside of each other.</p>
53 <p>Use the <em>Space</em> key to navigate through all slides.</p> 53 <p>Use the <em>Space</em> key to navigate through all slides.</p>
54 <br> 54 <br>
55 <a href="#" class="navigate-down"> 55 <a href="#/2/1" class="navigate-down">
56 <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow"> 56 <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow">
57 </a> 57 </a>
58 </section> 58 </section>
@@ -273,6 +273,11 @@
273 <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow"> 273 <img class="r-frame" style="background: rgba(255,255,255,0.1);" width="178" height="238" data-src="https://static.slid.es/reveal/arrow.png" alt="Down arrow">
274 </a> 274 </a>
275 </section> 275 </section>
276 <section data-background-gradient="linear-gradient(to bottom, #283b95, #17b2c3)">
277 <h2>Gradient Backgrounds</h2>
278 <pre><code class="hljs html wrap">&lt;section data-background-gradient=
279 "linear-gradient(to bottom, #ddd, #191919)"&gt;</code></pre>
280 </section>
276 <section data-background="https://static.slid.es/reveal/image-placeholder.png"> 281 <section data-background="https://static.slid.es/reveal/image-placeholder.png">
277 <h2>Image Backgrounds</h2> 282 <h2>Image Backgrounds</h2>
278 <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre> 283 <pre><code class="hljs html">&lt;section data-background="image.png"&gt;</code></pre>
@@ -451,23 +456,25 @@ Reveal.on( 'customevent', function() {
451 </div> 456 </div>
452 457
453 <script src="dist/reveal.js"></script> 458 <script src="dist/reveal.js"></script>
459 <script src="plugin/zoom/zoom.js"></script>
460 <script src="plugin/notes/notes.js"></script>
461 <script src="plugin/search/search.js"></script>
462 <script src="plugin/markdown/markdown.js"></script>
463 <script src="plugin/highlight/highlight.js"></script>
454 <script> 464 <script>
455 Reveal.initialize();
456 465
457 const loadScript = src => { 466 // Also available as an ES module, see:
458 return new Promise((resolve, reject) => { 467 // https://revealjs.com/initialization/
459 const script = document.createElement('script'); 468 Reveal.initialize({
460 script.type = 'text/javascript'; 469 controls: true,
461 script.onload = resolve; 470 progress: true,
462 script.onerror = reject; 471 center: true,
463 script.src = src; 472 hash: true,
464 document.head.append(script); 473
465 }) 474 // Learn about plugins: https://revealjs.com/plugins/
466 } 475 plugins: [ RevealZoom, RevealNotes, RevealSearch, RevealMarkdown, RevealHighlight ]
476 });
467 477
468 loadScript( 'plugin/highlight/highlight.js' ).then(() => {
469 Reveal.registerPlugin( RevealHighlight )
470 })
471 </script> 478 </script>
472 479
473 </body> 480 </body>