1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-11 09:04:51 +02:00

fix and format examples decks

This commit is contained in:
Hakim El Hattab
2024-11-05 20:03:29 +01:00
parent ce890a6780
commit 7fff2f59f0
11 changed files with 621 additions and 347 deletions

View File

@@ -1,22 +1,23 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<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">
<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">
<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;">
<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>
@@ -31,7 +32,7 @@
</div>
</div>
<div class="reveal deck2" style="width: 100%; height: 50vh; margin: 10px;">
<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>
@@ -47,6 +48,7 @@
<section>
<h3>The Lorenz Equations</h3>
<!-- prettier-ignore -->
\[\begin{aligned}
\dot{x} &amp; = \sigma(y-x) \\
\dot{y} &amp; = \rho x - y - xz \\
@@ -67,36 +69,33 @@
</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 src="../dist/plugin/highlight.js"></script>
<script src="../dist/plugin/markdown.js"></script>
<script src="../dist/plugin/math.js"></script>
<script>
let deck1 = new Reveal( document.querySelector( '.deck1' ), {
let deck1 = new Reveal(document.querySelector('.deck1'), {
embedded: true,
progress: false,
keyboardCondition: 'focused',
plugins: [ RevealHighlight ]
} );
deck1.on( 'slidechanged', () => {
console.log( 'Deck 1 slide changed' );
} );
plugins: [RevealHighlight],
});
deck1.on('slidechanged', () => {
console.log('Deck 1 slide changed');
});
deck1.initialize();
let deck2 = new Reveal( document.querySelector( '.deck2' ), {
let deck2 = new Reveal(document.querySelector('.deck2'), {
embedded: true,
progress: false,
keyboardCondition: 'focused',
plugins: [ RevealMarkdown, RevealMath ]
} );
deck2.initialize().then( () => {
plugins: [RevealMarkdown, RevealMath],
});
deck2.initialize().then(() => {
deck2.slide(1);
} );
deck2.on( 'slidechanged', () => {
console.log( 'Deck 2 slide changed' );
} );
});
deck2.on('slidechanged', () => {
console.log('Deck 2 slide changed');
});
</script>
</body>
</html>