-
Notifications
You must be signed in to change notification settings - Fork 1
/
_layout.jade
65 lines (57 loc) · 2.3 KB
/
_layout.jade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
doctype 5
html
head
meta(charset='utf-8')
title OSCON
// Core reveal.js styles
link(rel='stylesheet', href='css/reveal.min.css')
// our own awesome styles
link(rel='stylesheet', href='oscon_theme.css')
// syntax highlighting scheme
link(rel='stylesheet', href='plugin/highlight/styles/github.css')
// Add ?print-pdf to the url to format slides for PDF export
script.
// If the query includes 'print-pdf', include the PDF print sheet
if( window.location.search.match( /print-pdf/gi ) ) {
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'pdf.css';
//- document.getElementsByTagName( 'head' )[0].appendChild( link );
//- document.documentElement.className = "printpdf";
}
body#body
.reveal
header
.slides
!= yield
script(src='lib/js/head.min.js')
script(src='js/jquery.min.js')
script.
// Fix Jade's contenteditable attributes
jQuery('code[contenteditable=contenteditable]').attr('contenteditable','')
script(src='js/reveal.min.js')
script.
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
width: 1440,
height: 900,
controls: false,
progress: true,
history: true,
center: true,
theme: 'default',
transition: 'none',
transitionSpeed: 'slow',
backgroundTransition: 'none',
// theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
// transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});