Last active
April 8, 2018 02:14
-
-
Save m-x-k/fd6d40367b49bd811d6f99a9065f919a to your computer and use it in GitHub Desktop.
reveal.js example slides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- -*- indent-tabs-mode:t; -*- --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Reveal Example Slides</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
<link rel="stylesheet" href="./reveal.js/css/reveal.css"/> | |
<link rel="stylesheet" href="./reveal.js/css/theme/night.css" id="theme"/> | |
</head> | |
<body> | |
<div class="reveal"> | |
<div class="slides"> | |
<section> | |
<h1>Reveal Example Slides</h1> | |
<h2>Welcome</h2> | |
</section> | |
<section data-markdown | |
data-separator="^\n\n\n" | |
data-separator-vertical="^\n\n" | |
data-separator-notes="^Note:" | |
data-element-attributes="{_\s*?([^}]+?)}"> | |
<script type="text/template"> | |
## Slide 1 | |
<!-- .slide: id="slide1" --> | |
<p class="fragment grow">grow</p> | |
<p class="fragment shrink">shrink</p> | |
<p class="fragment fade-out">fade-out</p> | |
<p class="fragment fade-up">fade-up (also down, left and right!)</p> | |
<p class="fragment current-visible">visible only once</p> | |
<p class="fragment highlight-current-blue">blue only once</p> | |
<p class="fragment highlight-red">highlight-red</p> | |
<p class="fragment highlight-green">highlight-green</p> | |
<p class="fragment highlight-blue">highlight-blue</p> | |
## Slide 2 | |
<!-- .slide: id="slide2" data-transition="concave" --> | |
Note: add diagram | |
</script> | |
</section> | |
</div> | |
</div> | |
<script src="reveal.js/lib/js/head.min.js"></script> | |
<script src="reveal.js/js/reveal.js"></script> | |
<script> | |
Reveal.initialize({ | |
controls: true, | |
progress: true, | |
history: true, | |
center: true, | |
transition: 'none', // none/fade/slide/convex/concave/zoom | |
dependencies: [ | |
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, | |
{ src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, | |
{ src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, | |
{ src: 'reveal.js/plugin/highlight/highlight.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } }, | |
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true }, | |
{ src: 'reveal.js/plugin/notes/notes.js', async: true } | |
] | |
}); | |
</script> | |
<script> | |
var link = document.createElement( 'link' ); | |
link.rel = 'stylesheet'; | |
link.type = 'text/css'; | |
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css'; | |
document.getElementsByTagName( 'head' )[0].appendChild( link ); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment