This repository has been archived on 2022-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
presis/revealjs/_templates/index.html.j2

53 lines
1.8 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../_assets/reveal.js/css/reveal.css">
<link rel="stylesheet" href="../_assets/reveal.js/css/print/pdf.css" media="print">
<link rel="stylesheet" href="{{ theme }}">
<link rel="stylesheet" href="../_assets/highlight.js/solarized-dark.css">
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? '../_assets/reveal.js/css/print/pdf.css' : '../_assets/reveal.js/css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
{{ content }}
</div>
</div>
<script src="../_assets/reveal.js/lib/js/head.min.js"></script>
<script src="../_assets/reveal.js/js/reveal.js"></script>
<script>
Reveal.initialize({
controls: {{ controls | lower }},
progress: {{ progress | lower }},
history: {{ history | lower }},
center: {{ center | lower }},
showNotes: {{ show_notes | lower }},
width: {{ width }},
height: {{ height }},
transition: '{{ transition }}',
dependencies: [
// Syntax highlight for <code> elements
{ src: '../_assets/reveal.js/plugin/highlight/highlight.js', async: true, callback: () => hljs.initHighlightingOnLoad() },
// Zoom in and out with Alt+click
{ src: '../_assets/reveal.js/plugin/zoom-js/zoom.js', async: true },
// Speaker notes
{ src: '../_assets/reveal.js/plugin/notes/notes.js', async: true },
]
});
</script>
</body>
</html>