slides/demo/demo_external.html

93 lines
4.5 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<title>Demo: loading external slides</title>
<meta name="description" content="Demo: loading external slides">
<meta name="author" content="The DataLad Team">
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<!-- Original reveal JS stylesheets-->
<link rel="stylesheet" href="../reveal.js/dist/reset.css">
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
<link rel="stylesheet" href="../reveal.js/dist/theme/beige.css">
<!-- custom styles, e.g., imgcredit -->
<link rel="stylesheet" href="../custom/css/main.css">
<!-- Used for printing PDFs (append ?print-pdf to URL in browser)-->
<script src="../custom/js/printpdf.js"></script>
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="../reveal.js/plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<section><h1>Demo: using the external.js plugin</h1></section>
<section>
<dl style="font-size:25px">
Start a local webserver (e.g., <strong>python3 -m http.server</strong></code>),
then view these slides in a browser.
<br><br>
The sources of this deck look as follows:
<pre><code>
< section data-external-replace="../modules/acknowledgements.html#.slides > section">< /section>
< section data-external-replace="../modules/help.html##contact ">< /section>
< section data-external-replace="identifiers_external.html">< /section>
</code></pre>
<dt>../modules/acknowledgements.html#.slides > section</dt>
<dd>is a fully self-contained reveal js slide deck,
complete with all necessary html tags. The entire "slides" class (i.e., all sections) are referenced via css selector</dd>
<dt>../modules/help.html##contact</dt>
<dd>is a fully self-contained reveal js slide deck, complete with all necessary html tags. A single section with the "id=contact" tag is selected via css selector.</dd>
<dt>identifiers_external.html</dt>
<dd>is a modular component (no "html" or "div" or "script" tags).
It does not work stand-alone and can only be included via <strong>data-external-replace</strong>
or <strong>data-external</strong> (use the former when in doubt). Note that
we recommend you stick to existing, stand-alone slide decks rather than creating modular components.</dd>
</dl>
</section>
</section>
<section data-external-replace="../modules/acknowledgements.html#.slides > section"></section>
<section data-external-replace="../modules/help.html##contact "></section>
<section data-external-replace="identifiers_external.html"></section>
</div>
</div>
<script src="../reveal.js/dist/reveal.js"></script>
<script src="../plugin/reveal_external/external/external.js"></script>
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
<script src="../reveal.js/plugin/notes/notes.js"></script>
<script>
// Full list of configuration options available at:
// https://revealjs.com/config/
Reveal.initialize({
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 1280,
height: 960,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.0,
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
plugins: [ RevealExternal, RevealMarkdown, RevealHighlight, RevealNotes ]
})
</script>
<script src="../custom/js/copy-code.js"></script>
</body>
</html>