-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (118 loc) · 4.62 KB
/
index.html
File metadata and controls
133 lines (118 loc) · 4.62 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>TITLE</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
<!--Personal customizations-->
<script src="js/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="css/tippy.css" />
<link href="css/font-awesome.min.css" rel="stylesheet">
<script src="https://use.fontawesome.com/0430db19bd.js"></script>
<script src="js/tippy.min.js"></script>
<link rel="stylesheet" href="css/icon.css">
<link rel="stylesheet" href="css/material.red-deep_orange.min.css" />
<script defer src="js/material.min.js"></script>
<script src="./js/anchorme.js"></script>
<script src="./js/script.js"></script>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-markdown="main.md" data-separator="^---" data-separator-vertical="^--" data-separator-notes="^VVV">
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [{
src: 'plugin/markdown/marked.js'
}, {
src: 'plugin/markdown/markdown.js'
}, {
src: 'plugin/notes/notes.js',
async: true
}, {
src: 'plugin/highlight/highlight.js',
async: true,
callback: function() {
hljs.initHighlightingOnLoad();
}
}, {
src: 'plugin/reveal.js-menu/menu.js'
}],
markdown: {
smartypants: true
},
menu: {
// titleSelector: '.title',
themes: false,
transitions: false,
hideMissingTitles: true,
custom: [{
title: "Bibliography",
icon: "<i class='fa fa-book'></i>",
content: '<li class="slide-menu-item"><a href="bib.html" target="_blank">Bibliography</a></li>'
}, {
title: 'Print version',
icon: '<i class="fa fa-file-pdf-o" aria-hidden="true"></i>',
content: '<li class="slide-menu-item"><a href="?print-pdf" target="_blank">PDF version</a></li>'
}]
}
});
// Lem's custom additions
let print = window.location.search.match(/print-pdf/gi)
Reveal.addEventListener('ready', function(event) {
if (print) {
var noPrint = document.getElementsByClassName('no-print');
while (noPrint[0]) {
noPrint[0].parentNode.remove()
}
$('*').css('background', 'transparent')
$('.slide-menu-button').remove()
}
// textFit($('section.present'))
// event.currentSlide, event.indexh, event.indexv
// $(".fancy_title").lettering();
if (!print) {
new Tippy('.tp', {
interactive: true,
animation: 'perspective',
size: 'big',
hideDelay: 1000,
})
// Tipped.create('.tp', {
// size: 'huge',
// behavior: 'sticky'
// });
document.getElementById('button').addEventListener('click', () => {
if (screenfull.enabled) {
screenfull.toggle();
// screenfull.request();
} else {
console.log("On No!")
}
});
}
});
</script>
</body>
</html>