-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.js
48 lines (32 loc) · 1.11 KB
/
script.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* Created by azder on 2016-02-06.
*/
(function (W) {
'use strict'; // ALWAYS
var config = {
// Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects
// to the end user's experience. For more help http://xhr.spec.whatwg.org/
// this one causes a synchronous ajax
// sourceUrl: 'presentation.md',
ratio: '16:10',
navigation: {
scroll: false,
touch: false,
click: false
},
slideNumberFormat: '%current%',// of %total%',
// Enable or disable counting of incremental slides in the slide counting
countIncrementalSlides: false,
highlightLanguage: 'javascript',
highlightStyle: 'idea',
highlightLines: true,
highlightSpans: false
};
// workaround for syncronous script loading
jQuery(function onLoad($) {
$.get('README.md').then(function then(data) {
$('#source').html(data);
W.slideshow = W.remark.create(config);
});
});
}(window));