59 lines
1.9 KiB
HTML
59 lines
1.9 KiB
HTML
<!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>
|
|
|
|
<link rel="icon" href="./favicon.svg" type="image/svg+xml">
|
|
|
|
<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">
|
|
<link rel="stylesheet" href="./reveal-override.css">
|
|
|
|
<!-- Theme used for syntax highlighted code -->
|
|
<link rel="stylesheet" href="./node_modules/reveal.js/plugin/highlight/monokai.css">
|
|
</head>
|
|
<body>
|
|
|
|
<script src="./draw.js"></script>
|
|
<script src="./vector.js"></script>
|
|
|
|
<div class="reveal">
|
|
<div class="slides">
|
|
<section data-markdown="test.md"></section>
|
|
</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>
|
|
<script src="./node_modules/reveal.js/plugin/math/math.js"></script>
|
|
<script>
|
|
// More info about initialization & config:
|
|
// - https://revealjs.com/initialization/
|
|
// - https://revealjs.com/config/
|
|
Reveal.initialize({
|
|
hash: true,
|
|
mathjax3: {
|
|
mathjax: './node_modules/mathjax/es5/startup.js',
|
|
loader: {
|
|
load: ['input/asciimath', 'output/chtml'],
|
|
},
|
|
},
|
|
// Learn about plugins: https://revealjs.com/plugins/
|
|
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes, RevealMath.MathJax3 ]
|
|
}).then(() => {
|
|
const nodes = document.querySelectorAll('code.drawing');
|
|
for (let node of nodes) {
|
|
Drawing.fromText(node);
|
|
}
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|