-
Notifications
You must be signed in to change notification settings - Fork 146
/
index.html
292 lines (223 loc) · 8.67 KB
/
index.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reveal JS presentation</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="libs/reveal.js/4.1.3/reset.css">
<link rel="stylesheet" href="libs/reveal.js/4.1.3/reveal.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<!-- highlight Theme -->
<link rel="stylesheet" href="libs/highlight.js/11.3.1/styles/monokai.min.css">
<link rel="stylesheet" href="libs/reveal.js/4.1.3/plugin/chalkboard/style.css">
<link rel="stylesheet" href="libs/reveal.js/4.1.3/plugin/customcontrols/style.css">
<link rel="stylesheet" href="libs/styles/tasklist.css">
<!-- Revealjs Theme -->
<link rel="stylesheet" href="libs/reveal.js/4.1.3/theme/black.css" id="theme">
<!-- Revealjs Theme -->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
</div>
</div>
<script src="libs/reveal.js/4.1.3/reveal.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/zoom/zoom.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/notes/notes.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/search/search.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/markdown/markdown.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/highlight/highlight.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/menu/menu.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/math/math.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/fullscreen/plugin.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/animate/plugin.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/animate/svg.min.js"></script>
<!-- <script src="libs/reveal.js/4.1.3/plugin/anything/plugin.js"></script> -->
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/plugin.js"></script> -->
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/recorder.js"></script>-->
<!-- <script src="libs/reveal.js/4.1.3/plugin/audio-slideshow/RecordRTC.js"></script>-->
<script src="libs/reveal.js/4.1.3/plugin/chalkboard/plugin.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/customcontrols/plugin.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/embed-tweet/plugin.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/chart/chart.min.js"></script>
<script src="libs/reveal.js/4.1.3/plugin/chart/plugin.js"></script>
<script>
const printPlugins = [
RevealNotes,
RevealHighlight,
RevealMath,
RevealAnimate,
RevealChalkboard,
RevealEmbedTweet,
RevealChart,
];
const plugins = [...printPlugins,
RevealZoom,
RevealSearch,
RevealMarkdown,
RevealMenu,
RevealFullscreen,
//RevealAnything,
//RevealAudioSlideshow,
//RevealAudioRecorder,
RevealCustomControls,
// poll
// question
// seminar
]
// Also available as an ES module, see:
// https://revealjs.com/initialization/
Reveal.initialize({
controls: true,
controlsTutorial: true,
controlsLayout: 'bottom-right',
controlsBackArrows: 'faded',
progress: true,
slideNumber: false,
//#showSlideNumber "all" "print" "speaker"
hash: true,//# hash: false,
//# respondToHashChanges: true,
//# history: false,
keyboard: true,
//#keyboardCondition: null,
overview: true,
center: true,
touch: true,
loop: false,
rtl: false,
//#navigationMode: 'default', linear grid
shuffle: false,
fragments: true,
fragmentInURL: false,
embedded: false,
help: true,
//#pause: true
showNotes: false,
autoPlayMedia: false, // TODO fix this to a nullable value
//#preloadIframes: null. true false
//#autoAnimate: true
//#autoAnimateMatcher: null,
//#autoAnimateEasing: 'ease',
//autoAnimateDuration: 1.0,
//#autoAnimateUnmatched: true
//#autoAnimateStyles: []
autoSlide: 0, // TODO fix this to a falseable value
autoSlideStoppable: true,
autoSlideMethod: '0',
defaultTiming: 120,
mouseWheel: false,
//#previewLinks: false
//#postMessage: true, // TODO : this can cause issues with the vscode api ???
//#postMessageEvents: false,
//#focusBodyOnPageVisibilityChange: true,
transition: 'default',
transitionSpeed: 'default',
backgroundTransition: 'default',
//#pdfMaxPagesPerSlide: Number.POSITIVE_INFINITY,
//#pdfSeparateFragments: true,
//#pdfPageHeightOffset: -1,
viewDistance: 3,
//#mobileViewDistance: 2,
display: 'block',
//#hideInactiveCursor: true,
//#hideCursorTime: 5000
// Parallax Background
parallaxBackgroundImage: '',
parallaxBackgroundSize: '',
parallaxBackgroundHorizontal: 0,
parallaxBackgroundVertical: 0,
//Presentation Size
width: 960,
height: 700,
margin: 0.04,
minScale: 0.2,
maxScale: 2,
disableLayout: false,
audio: {
prefix: 'audio/', // audio files are stored in the "audio" folder
suffix: '.ogg', // audio files have the ".ogg" ending
textToSpeechURL: null, // the URL to the text to speech converter
defaultNotes: false, // use slide notes as default for the text to speech converter
defaultText: false, // use slide text as default for the text to speech converter
advance: 0, // advance to next slide after given time in milliseconds after audio has played, use negative value to not advance
autoplay: false, // automatically start slideshow
defaultDuration: 5, // default duration in seconds if no audio is available
defaultAudios: true, // try to play audios with names such as audio/1.2.ogg
playerOpacity: 0.05, // opacity value of audio player if unfocused
playerStyle: 'position: fixed; bottom: 4px; left: 25%; width: 50%; height:75px; z-index: 33;', // style used for container of audio controls
startAtFragment: false, // when moving to a slide, start at the current fragment or at the start of the slide
},
chalkboard: { // font-awesome.min.css must be available
//src: "chalkboard/chalkboard.json",
storage: "chalkboard-demo",
},
customcontrols: {
controls: [
{
id: 'toggle-overview',
title: 'Toggle overview (O)',
icon: '<i class="fa fa-th"></i>',
action: 'Reveal.toggleOverview();'
}
,
{ icon: '<i class="fa fa-pen-square"></i>',
title: 'Toggle chalkboard (B)',
action: 'RevealChalkboard.toggleChalkboard();'
},
{ icon: '<i class="fa fa-pen"></i>',
title: 'Toggle notes canvas (C)',
action: 'RevealChalkboard.toggleNotesCanvas();'
}
]
},
chart: {
defaults: {
color: 'lightgray', // color of labels
scale: {
beginAtZero: true,
ticks: { stepSize: 1 },
grid: { color: "lightgray" } , // color of grid lines
},
},
line: { borderColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ], "borderDash": [ [5,10], [0,0] ] },
bar: { backgroundColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ]},
pie: { backgroundColor: [ ["rgba(0,0,0,.8)" , "rgba(220,20,20,.8)", "rgba(20,220,20,.8)", "rgba(220,220,20,.8)", "rgba(20,20,220,.8)"] ]},
radar: { borderColor: [ "rgba(20,220,220,.8)" , "rgba(220,120,120,.8)", "rgba(20,120,220,.8)" ]},
},
math: {
mathjax: 'https://cdn.jsdelivr.net/gh/mathjax/[email protected]/MathJax.js',
config: 'TeX-AMS_HTML-full',
// pass other options into `MathJax.Hub.Config()`
TeX: { Macros: { RR: "{\\bf R}" } }
},
// Learn about plugins: https://revealjs.com/plugins/
plugins: (window.location.search.match(/print-pdf/gi) ? printPlugins : plugins )
});
// Change chalkboard theme :
function changeTheme(input) {
var config = {};
config.theme = input.value;
Reveal.getPlugin("RevealChalkboard").configure(config);
input.blur();
}
// // Handle the message inside the webview
// window.addEventListener('message', event => {
// const message = event.data; // The JSON data our extension sent
// switch (message.command) {
// case 'refactor':
// Reveal.toggleHelp();
// }
// });
if (window.location.search.match(/print-pdf-now/gi)) {
setTimeout(() => {
window.print();
}, 2500);
}
</script>
</body>
</html>