physics/reveal.html

89 lines
2.7 KiB
HTML
Raw Normal View History

2024-06-21 16:20:31 -05:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Reveal.js Test</title>
2024-06-21 17:25:06 -05:00
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
2024-06-21 17:23:17 -05:00
2024-06-21 16:20:31 -05:00
<link rel="stylesheet" href="./node_modules/reveal.js/dist/reset.css">
<link rel="stylesheet" href="./node_modules/reveal.js/dist/reveal.css">
<link rel="stylesheet" href="./node_modules/reveal.js/dist/theme/white.css">
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="./node_modules/reveal.js/plugin/highlight/monokai.css">
</head>
<body>
2024-06-21 20:11:48 -05:00
<script src="./draw.js"></script>
2024-06-21 16:20:31 -05:00
<div class="reveal">
<div class="slides">
2024-06-21 16:59:16 -05:00
<section>
<h2>Slide 1</h2>
<p>Content... `a = b / c`</p>
2024-06-21 20:11:48 -05:00
<div id="d3"></div>
<script>
{
const d = new Drawing('d3');
d.setTitle('Test Drawing');
d.line([0, 0], [100, 100]);
d.render();
}
</script>
2024-06-21 16:59:16 -05:00
</section>
<section data-markdown>
<textarea data-template>
## Slide 2
- Item 1
- Item 2
2024-06-21 20:11:48 -05:00
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
2024-06-21 16:59:16 -05:00
<div id="d1"></div>
<script>
{
const d = new Drawing('d1');
d.setTitle('Test Drawing');
d.line([0, 0], [100, 100]);
d.render();
}
</script>
</textarea>
</section>
<section data-markdown="test.md"></section>
2024-06-21 16:20:31 -05:00
</div>
</div>
<script src="./node_modules/reveal.js/dist/reveal.js"></script>
<script src="./node_modules/reveal.js/plugin/notes/notes.js"></script>
<script src="./node_modules/reveal.js/plugin/markdown/markdown.js"></script>
<script src="./node_modules/reveal.js/plugin/highlight/highlight.js"></script>
2024-06-21 16:59:16 -05:00
<script src="./node_modules/reveal.js/plugin/math/math.js"></script>
2024-06-21 16:20:31 -05:00
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
2024-06-21 16:59:16 -05:00
mathjax3: {
mathjax: './node_modules/mathjax/es5/startup.js',
loader: {
load: ['input/asciimath', 'output/chtml'],
},
},
2024-06-21 16:20:31 -05:00
// Learn about plugins: https://revealjs.com/plugins/
2024-06-21 16:59:16 -05:00
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes, RevealMath.MathJax3 ]
2024-06-21 20:11:48 -05:00
}).then(() => {
const nodes = document.querySelectorAll('code.drawing');
for (let node of nodes) {
Drawing.fromText(node);
}
});
</script>
2024-06-21 16:20:31 -05:00
</body>
</html>