|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="apple-mobile-web-app-capable" content="yes"> |
| 6 | + <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 7 | + <meta name="mobile-web-app-capable" content="yes"> |
| 8 | + <title><%- title %></title> |
| 9 | + <link rel="icon" type="image/png" href="<%- url %>/favicon.png"> |
| 10 | + <link rel="apple-touch-icon" href="<%- url %>/apple-touch-icon.png"> |
| 11 | + |
| 12 | + <link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/reveal.css"> |
| 13 | + <link rel="stylesheet" href="<%- url %>/vendor/reveal.js/<%- theme %>" id="theme"> |
| 14 | + <!-- For syntax highlighting --> |
| 15 | + <link rel="stylesheet" href="<%- url %>/vendor/reveal.js/lib/css/<%- highlightTheme %>.css"> |
| 16 | + <link rel="stylesheet" href="<%- url %>/css/site.css"> |
| 17 | + <link rel="stylesheet" href="<%- url %>/css/slide.css"> |
| 18 | + |
| 19 | + <!-- If the query includes 'print-pdf', use the PDF print sheet --> |
| 20 | + <script> |
| 21 | + document.write( '<link rel="stylesheet" href="<%- url %>/vendor/reveal.js/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); |
| 22 | + </script> |
| 23 | + <script src="<%- url %>/vendor/jquery/dist/jquery.min.js"></script> |
| 24 | + <script src="<%- url %>/vendor/velocity/velocity.min.js"></script> |
| 25 | + </head> |
| 26 | + <body> |
| 27 | + |
| 28 | + <div class="reveal"> |
| 29 | + <div class="slides"><%- slides %></div> |
| 30 | + </div> |
| 31 | + |
| 32 | + <script src="<%- url %>/vendor/reveal.js/lib/js/head.min.js"></script> |
| 33 | + <script src="<%- url %>/vendor/reveal.js/js/reveal.js"></script> |
| 34 | + <script src="<%- url %>/vendor/string.min.js"></script> |
| 35 | + <script src="<%- url %>/vendor/xss/dist/xss.min.js"></script> |
| 36 | + <script src="<%- url %>/js/render.js"></script> |
| 37 | + |
| 38 | + <script> |
| 39 | + if (typeof mixpanel !== 'undefined') mixpanel.track("enter slide"); |
| 40 | + |
| 41 | + var body = $(".slides").html(); |
| 42 | + $(".slides").html(S(body).unescapeHTML().s); |
| 43 | +
|
| 44 | + function extend() { |
| 45 | + var target = {}; |
| 46 | + for (var i = 0; i < arguments.length; i++) { |
| 47 | + var source = arguments[i]; |
| 48 | + for (var key in source) { |
| 49 | + if (source.hasOwnProperty(key)) { |
| 50 | + target[key] = source[key]; |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + return target; |
| 55 | + } |
| 56 | +
|
| 57 | + // Optional libraries used to extend on reveal.js |
| 58 | + var deps = [ |
| 59 | + { src: '<%- url %>/vendor/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, |
| 60 | + { src: '<%- url %>/vendor/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, |
| 61 | + { src: '<%- url %>/js/reveal-markdown.js', condition: function() { return !!document.querySelector('[data-markdown]'); } }, |
| 62 | + { src: '<%- url %>/vendor/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, |
| 63 | + { src: '<%- url %>/vendor/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, |
| 64 | + { src: '<%- url %>/vendor/reveal.js/plugin/math/math.js', async: true } |
| 65 | + ]; |
| 66 | +
|
| 67 | + // default options to init reveal.js |
| 68 | + var defaultOptions = { |
| 69 | + controls: true, |
| 70 | + progress: true, |
| 71 | + history: true, |
| 72 | + center: true, |
| 73 | + transition: 'slide', |
| 74 | + dependencies: deps |
| 75 | + }; |
| 76 | +
|
| 77 | + // options from URL query string |
| 78 | + var queryOptions = Reveal.getQueryHash() || {}; |
| 79 | +
|
| 80 | + var options = <%- options %>; |
| 81 | + options = extend(defaultOptions, options, queryOptions); |
| 82 | + Reveal.initialize(options); |
| 83 | + </script> |
| 84 | + </body> |
| 85 | +</html> |
0 commit comments