reveal.tpl
154 lines
| 3.9 KiB
| application/vnd.groove-tool-template
|
SmartyLexer
/ templates / reveal.tpl
|
r9662 | {%- extends 'slides.tpl' -%} | ||
|
r9644 | |||
|
r9662 | {% block header %} | ||
<!DOCTYPE html> | ||||
|
r9644 | <html> | ||
<head> | ||||
<meta charset="utf-8" /> | ||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||||
<meta name="apple-mobile-web-app-capable" content="yes" /> | ||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> | ||||
<link rel="stylesheet" href="reveal/css/reveal.css"> | ||||
<link rel="stylesheet" href="reveal/css/theme/simple.css" id="theme"> | ||||
<!-- For syntax highlighting --> | ||||
<link rel="stylesheet" href="reveal/lib/css/zenburn.css"> | ||||
<!-- If the query includes 'print-pdf', use the PDF print sheet --> | ||||
<script> | ||||
document.write( '<link rel="stylesheet" href="reveal/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/lib/js/html5shiv.js"></script> | ||||
<![endif]--> | ||||
|
r9654 | {% for css in resources.inlining.css -%} | ||
|
r9644 | <style type="text/css"> | ||
|
r9645 | {{css}} | ||
|
r9644 | </style> | ||
|
r9645 | {% endfor %} | ||
|
r9644 | |||
<style type="text/css"> | ||||
|
r9645 | /* Overrides of notebook CSS for static HTML export */ | ||
|
r9644 | .reveal { | ||
font-size: 20px; | ||||
} | ||||
.reveal pre { | ||||
|
r9563 | width: 100%; | ||
padding: 0.3em; | ||||
margin: 0px auto; | ||||
font-family: monospace, sans-serif; | ||||
font-size: 80%; | ||||
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0); | ||||
|
r9644 | } | ||
.reveal section img { | ||||
|
r9563 | border: 0px solid black; | ||
box-shadow: 0 0 10px rgba(0, 0, 0, 0); | ||||
} | ||||
.reveal .slides { | ||||
text-align: left; | ||||
|
r9644 | } | ||
div.input_area { | ||||
|
r9563 | padding: 0.06em; | ||
|
r9644 | } | ||
div.code_cell { | ||||
|
r9563 | background-color: transparent; | ||
|
r9644 | } | ||
div.prompt { | ||||
|
r9563 | width: 11ex; | ||
padding: 0.4em; | ||||
margin: 0px; | ||||
font-family: monospace, sans-serif; | ||||
font-size: 80%; | ||||
text-align: right; | ||||
} | ||||
div.output_area pre { | ||||
font-family: monospace, sans-serif; | ||||
font-size: 80%; | ||||
|
r9644 | } | ||
div.output_prompt { | ||||
/* 5px right shift to account for margin in parent container */ | ||||
margin: 5px 5px 0 -5px; | ||||
} | ||||
</style> | ||||
|
r9662 | </head> | ||
{% endblock header%} | ||||
{% block body %} | ||||
<body> | ||||
<div class="reveal"><div class="slides"> | ||||
{{ super() }} | ||||
</div></div> | ||||
<!-- Social buttons --> | ||||
<div class="addthis_toolbox addthis_floating_style addthis_32x32_style" style="left:20px;top:20px;"> | ||||
<a class="addthis_button_twitter"></a> | ||||
<a class="addthis_button_google_plusone_share"></a> | ||||
<a class="addthis_button_linkedin"></a> | ||||
<a class="addthis_button_facebook"></a> | ||||
<a class="addthis_button_more"></a> | ||||
</div> | ||||
<!-- End of social buttons --> | ||||
|
r9663 | <!-- MathJax configuration --> | ||
<script type="text/x-mathjax-config"> | ||||
MathJax.Hub.Config({ | ||||
tex2jax: { | ||||
inlineMath: [ ['$','$'], ["\\(","\\)"] ], | ||||
displayMath: [ ['$$','$$'], ["\\[","\\]"] ] | ||||
}, | ||||
|
r9563 | displayAlign: 'left', // Change this to 'center' to center equations. | ||
|
r9663 | "HTML-CSS": { | ||
styles: {'.MathJax_Display': {"margin": 0}} | ||||
} | ||||
}); | ||||
</script> | ||||
<!-- End of mathjax configuration --> | ||||
|
r9662 | <script src="reveal/lib/js/head.min.js"></script> | ||
<script src="reveal/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, | ||||
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: [ | ||||
{ src: 'reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } }, | ||||
{ src: 'reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, | ||||
{ src: 'reveal/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, | ||||
|
r9664 | { src: 'reveal/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, | ||
|
r9662 | { src: 'http://s7.addthis.com/js/300/addthis_widget.js', async: true}, | ||
{ src: 'js/mathjax-onload.js', async: true} | ||||
] | ||||
}); | ||||
</script> | ||||
<script> | ||||
Reveal.addEventListener( 'slidechanged', function( event ) { | ||||
MathJax.Hub.Rerender(event.currentSlide); | ||||
}); | ||||
</script> | ||||
</body> | ||||
{% endblock body %} | ||||
{% block footer %} | ||||
</html> | ||||
|
r9691 | {% endblock footer %} | ||