forked from damianavila/RISE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.js
25 lines (20 loc) · 950 Bytes
/
custom.js
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
// we want strict javascript that fails
// on ambiguous syntax
"using strict";
// to prevent timeout
requirejs.config({
waitSeconds: 60
});
// do not use notebook loaded event as it is re-triggerd on
// revert to checkpoint but this allow extension to be loaded
// late enough to work.
$([IPython.events]).on('app_initialized.NotebookApp', function(){
require(['custom/livereveal/main'],function(livereveal){
// livereveal.parameters('theme', 'transition', 'fontsize', static_prefix);
// * theme can be: simple, sky, beige, serif, solarized
// (you will need aditional css for default, night, moon themes).
// * transition can be: linear, zoom, fade, none
livereveal.parameters('simple', 'zoom', ''); //'https://raw.github.com/damianavila/par_IPy_slides_example/gh-pages/figs/star_wars_stormtroopers_darth_vader.jpg');
console.log('Live reveal extension loaded correctly');
});
});