slides_reveal.tpl
175 lines
| 4.5 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
damianavila
|
r11677 | {%- extends 'reveal_internals/slides.tpl' -%} | |
Matthias BUSSONNIER
|
r9644 | ||
damianavila
|
r9662 | {% block header %} | |
<!DOCTYPE html> | |||
Matthias BUSSONNIER
|
r9644 | <html> | |
<head> | |||
damianavila
|
r12890 | <meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1" /> | |||
Matthias BUSSONNIER
|
r9644 | ||
<meta name="apple-mobile-web-app-capable" content="yes" /> | |||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | |||
damianavila
|
r12891 | <title>{{resources['metadata']['name']}} slides</title> | |
damianavila
|
r11179 | <!-- General and theme style sheets --> | |
<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/reveal.css"> | |||
<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/theme/simple.css" id="theme"> | |||
Matthias BUSSONNIER
|
r9644 | ||
<!-- For syntax highlighting --> | |||
damianavila
|
r11179 | <link rel="stylesheet" href="{{resources.reveal.url_prefix}}/lib/css/zenburn.css"> | |
Matthias BUSSONNIER
|
r9644 | ||
<!-- If the query includes 'print-pdf', use the PDF print sheet --> | |||
damianavila
|
r11180 | <script> | |
damianavila
|
r11343 | document.write( '<link rel="stylesheet" href="{{resources.reveal.url_prefix}}/css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); | |
damianavila
|
r11180 | </script> | |
Matthias BUSSONNIER
|
r9644 | ||
<!--[if lt IE 9]> | |||
damianavila
|
r11179 | <script src="{{resources.reveal.url_prefix}}/lib/js/html5shiv.js"></script> | |
Matthias BUSSONNIER
|
r9644 | <![endif]--> | |
Matthias BUSSONNIER
|
r9654 | {% for css in resources.inlining.css -%} | |
damianavila
|
r11770 | <style type="text/css"> | |
{{ css }} | |||
</style> | |||
Matthias BUSSONNIER
|
r9645 | {% endfor %} | |
Matthias BUSSONNIER
|
r9644 | ||
<style type="text/css"> | |||
Matthias BUSSONNIER
|
r9645 | /* Overrides of notebook CSS for static HTML export */ | |
damianavila
|
r12855 | html { | |
damianavila
|
r12889 | overflow-y: auto; | |
damianavila
|
r12855 | } | |
Matthias BUSSONNIER
|
r9644 | .reveal { | |
damianavila
|
r12889 | font-size: 20px; | |
Matthias BUSSONNIER
|
r9644 | } | |
.reveal pre { | |||
damianavila
|
r12889 | width: 95%; | |
padding: 0.4em; | |||
margin: 0px; | |||
font-family: monospace, sans-serif; | |||
font-size: 80%; | |||
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); | |||
Matthias BUSSONNIER
|
r9644 | } | |
.reveal section img { | |||
damianavila
|
r12889 | border: 0px solid black; | |
box-shadow: 0 0 10px rgba(0, 0, 0, 0); | |||
damianavila
|
r9563 | } | |
.reveal .slides { | |||
damianavila
|
r12889 | text-align: left; | |
Matthias BUSSONNIER
|
r9644 | } | |
Jessica B. Hamrick
|
r11053 | .reveal.fade { | |
damianavila
|
r12889 | opacity: 1; | |
Jessica B. Hamrick
|
r11053 | } | |
damianavila
|
r13171 | .reveal .progress { | |
damianavila
|
r13172 | position: static; | |
damianavila
|
r13171 | } | |
Matthias BUSSONNIER
|
r9644 | div.input_area { | |
damianavila
|
r12889 | padding: 0.06em; | |
Matthias BUSSONNIER
|
r9644 | } | |
div.code_cell { | |||
damianavila
|
r12889 | background-color: transparent; | |
Matthias BUSSONNIER
|
r9644 | } | |
div.prompt { | |||
damianavila
|
r12889 | width: 11ex; | |
padding: 0.4em; | |||
margin: 0px; | |||
font-family: monospace, sans-serif; | |||
font-size: 80%; | |||
text-align: right; | |||
damianavila
|
r9563 | } | |
div.output_area pre { | |||
damianavila
|
r12889 | font-family: monospace, sans-serif; | |
font-size: 80%; | |||
Matthias BUSSONNIER
|
r9644 | } | |
div.output_prompt { | |||
damianavila
|
r12889 | /* 5px right shift to account for margin in parent container */ | |
margin: 5px 5px 0 0; | |||
Matthias BUSSONNIER
|
r9644 | } | |
damianavila
|
r10950 | .rendered_html p { | |
damianavila
|
r12889 | text-align: inherit; | |
damianavila
|
r10950 | } | |
Matthias BUSSONNIER
|
r9644 | </style> | |
damianavila
|
r11247 | ||
<!-- Custom stylesheet, it must be in the same directory as the html file --> | |||
<link rel="stylesheet" href="custom.css"> | |||
damianavila
|
r9662 | </head> | |
{% endblock header%} | |||
{% block body %} | |||
<body> | |||
damianavila
|
r11770 | <div class="reveal"> | |
<div class="slides"> | |||
damianavila
|
r9662 | {{ super() }} | |
damianavila
|
r11770 | </div> | |
</div> | |||
damianavila
|
r9662 | ||
damianavila
|
r11179 | <script src="{{resources.reveal.url_prefix}}/lib/js/head.min.js"></script> | |
damianavila
|
r9662 | ||
damianavila
|
r11180 | <script src="{{resources.reveal.url_prefix}}/js/reveal.js"></script> | |
damianavila
|
r9662 | ||
<script> | |||
// Full list of configuration options available here: https://github.com/hakimel/reveal.js#configuration | |||
Reveal.initialize({ | |||
controls: true, | |||
progress: true, | |||
history: true, | |||
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme | |||
transition: Reveal.getQueryHash().transition || 'linear', // default/cube/page/concave/zoom/linear/none | |||
// Optional libraries used to extend on reveal.js | |||
dependencies: [ | |||
damianavila
|
r11179 | { src: "{{resources.reveal.url_prefix}}/lib/js/classList.js", condition: function() { return !document.body.classList; } }, | |
{ src: "{{resources.reveal.url_prefix}}/plugin/highlight/highlight.js", async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, | |||
MinRK
|
r12439 | { src: "{{resources.reveal.url_prefix}}/plugin/notes/notes.js", async: true, condition: function() { return !!document.body.classList; } } | |
damianavila
|
r9662 | ] | |
}); | |||
</script> | |||
damianavila
|
r10823 | <!-- MathJax configuration --> | |
<script type="text/x-mathjax-config"> | |||
MathJax.Hub.Config({ | |||
damianavila
|
r12889 | tex2jax: { | |
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | |||
}, | |||
displayAlign: 'left', // Change this to 'center' to center equations. | |||
"HTML-CSS": { | |||
styles: {'.MathJax_Display': {"margin": 0}} | |||
} | |||
damianavila
|
r10823 | }); | |
</script> | |||
<!-- End of mathjax configuration --> | |||
<script> | |||
damianavila
|
r11179 | // We wait for the onload function to load MathJax after the page is completely loaded. | |
damianavila
|
r10823 | // MathJax is loaded 1 unit of time after the page is ready. | |
damianavila
|
r12857 | // This hack prevent problems when you load multiple js files. | |
damianavila
|
r12889 | ||
damianavila
|
r10823 | window.onload = function () { | |
setTimeout(function () { | |||
var script = document.createElement("script"); | |||
script.type = "text/javascript"; | |||
script.src = "https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"; | |||
document.getElementsByTagName("head")[0].appendChild(script); | |||
},1) | |||
} | |||
</script> | |||
damianavila
|
r9662 | <script> | |
Reveal.addEventListener( 'slidechanged', function( event ) { | |||
damianavila
|
r12854 | window.scrollTo(0,0); | |
MathJax.Hub.Rerender(event.currentSlide); | |||
damianavila
|
r9662 | }); | |
</script> | |||
</body> | |||
{% endblock body %} | |||
{% block footer %} | |||
</html> | |||
damianavila
|
r11771 | {% endblock footer %} |