aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-03-22 01:13:14 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2013-03-22 01:13:14 -0400
commitcaf5242b30c288528b63c6b9025f4388ea8297d8 (patch)
tree8f61374f8229ff6756d6bf7d8cba0a8924b62cb8
parent7ac22fea6399ce6fdac093fa9d163d09fc28d440 (diff)
downloadpandoc-caf5242b30c288528b63c6b9025f4388ea8297d8.tar.gz
Added reveal.js template.
(From a patch by jamiefolson.)
-rw-r--r--default.reveal_js103
1 files changed, 103 insertions, 0 deletions
diff --git a/default.reveal_js b/default.reveal_js
new file mode 100644
index 000000000..e67c93914
--- /dev/null
+++ b/default.reveal_js
@@ -0,0 +1,103 @@
+<!DOCTYPE html>
+<html$if(lang)$ lang="$lang$"$endif$>
+<head>
+ <meta charset="utf-8">
+$for(author-meta)$
+ <meta name="author" content="$author-meta$" />
+$endfor$
+$if(date-meta)$
+ <meta name="dcterms.date" content="$date-meta$" />
+$endif$
+ <title>$if(title-prefix)$$title-prefix$ - $endif$$pagetitle$</title>
+ <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">
+ <link rel="stylesheet" href="$reveal_js-url$/css/reveal.min.css"/>
+ <style type="text/css">code{white-space: pre;}</style>
+$if(highlighting-css)$
+ <style type="text/css">
+$highlighting-css$
+ </style>
+$endif$
+$if(css)$
+$for(css)$
+ <link rel="stylesheet" href="$css$"/>
+$endfor$
+$else$
+ <link rel="stylesheet" href="$reveal_js-url$/css/theme/simple.css" id="theme">
+$endif$
+ <!-- If the query includes 'print-pdf', use the PDF print sheet -->
+ <script>
+ document.write( '<link rel="stylesheet" href="$reveal_js-url$/css/print/' +
+ ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) +
+ '.css" type="text/css" media="print">' );
+ </script>
+ <!--[if lt IE 9]>
+ <script src="$reveal_js-url$/lib/js/html5shiv.js"></script>
+ <![endif]-->
+$if(math)$
+ $math$
+$endif$
+$for(header-includes)$
+ $header-includes$
+$endfor$
+</head>
+<body>
+$for(include-before)$
+$include-before$
+$endfor$
+ <div class="reveal">
+ <div class="slides">
+
+$if(title)$
+<section>
+ <h1 class="title">$title$</h1>
+$for(author)$
+ <h2 class="author">$author$</h2>
+$endfor$
+ <h3 class="date">$date$</h3>
+</section>
+$endif$
+
+$body$
+ </div>
+ </div>
+$for(include-after)$
+$include-after$
+$endfor$
+
+ <script src="$reveal_js-url$/lib/js/head.min.js"></script>
+ <script src="$reveal_js-url$/js/reveal.min.js"></script>
+
+ <script>
+
+ // Full list of configuration options available here:
+ // https://github.com/hakimel/reveal.js#configuration
+ Reveal.initialize({
+ controls: true,
+ progress: true,
+ history: true,
+ center: true,
+$if(duration)$
+ autoSlide: $duration$,
+$else$
+ autoSlide: 0,
+$endif$
+ theme: '$if(reveal_js-theme)$$reveal_js-theme$$endif$', // available themes are in /css/theme
+ transition: '$if(reveal_js-transition)$$reveal_js-transition$$endif$', // default/cube/page/concave/zoom/linear/fade/none
+
+ // Optional libraries used to extend on reveal.js
+ dependencies: [
+ { src: '$reveal_js-url$/lib/js/classList.js', condition: function() { return !document.body.classList; } },
+// { src: '$reveal_js-url$/plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
+// { src: '$reveal_js-url$/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
+// { src: '$reveal_js-url$/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
+ { src: '$reveal_js-url$/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
+ { src: '$reveal_js-url$/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
+ // { src: '$reveal_js-url$/plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
+ // { src: '$reveal_js-url$/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
+ ]
+ });
+ </script>
+ </body>
+</html>