@@ -17,67 +17,67 @@ function initializeReveal() {
1717
1818 // Optional reveal.js plugins
1919 dependencies : [ {
20- src : '/static/reveal.js/lib/js/classList.js' ,
21- condition : function ( ) {
22- return ! document . body . classList ;
23- }
24- } ,
25-
26- // Interpret Markdown in <section> elements
27- {
28- src : '/static/reveal.js/plugin/markdown/marked.js' ,
29- condition : function ( ) {
30- return ! ! document . querySelector ( '[data-markdown]' ) ;
31- }
32- } , {
33- src : '/static/reveal.js/plugin/markdown/markdown.js' ,
34- condition : function ( ) {
35- return ! ! document . querySelector ( '[data-markdown]' ) ;
36- }
37- } ,
38-
39- // Syntax highlight for <code> elements
40- {
41- src : '/static/reveal.js/plugin/highlight/highlight.js' ,
42- async : true ,
43- callback : function ( ) {
44- hljs . initHighlightingOnLoad ( ) ;
45- }
46- } ,
47-
48- // Zoom in and out with Alt+click
49- {
50- src : '/static/reveal.js/plugin/zoom-js/zoom.js' ,
51- async : true
52- } ,
53-
54- // Speaker notes
55- {
56- src : '/static/reveal.js/plugin/notes/notes.js' ,
57- async : true
58- } ,
59-
60- // MathJax
61- {
62- src : '/static/reveal.js/plugin/math/math.js' ,
63- async : true
64- } ,
65-
66- {
67- src : '/static/reveal.js/lib/js/classList.js' ,
68- condition : function ( ) {
69- return ! document . body . classList ;
70- }
20+ src : '/static/reveal.js/lib/js/classList.js' ,
21+ condition : function ( ) {
22+ return ! document . body . classList ;
7123 }
24+ } ,
25+
26+ // Interpret Markdown in <section> elements
27+ {
28+ src : '/static/reveal.js/plugin/markdown/marked.js' ,
29+ condition : function ( ) {
30+ return ! ! document . querySelector ( '[data-markdown]' ) ;
31+ }
32+ } , {
33+ src : '/static/reveal.js/plugin/markdown/markdown.js' ,
34+ condition : function ( ) {
35+ return ! ! document . querySelector ( '[data-markdown]' ) ;
36+ }
37+ } ,
38+
39+ // Syntax highlight for <code> elements
40+ {
41+ src : '/static/reveal.js/plugin/highlight/highlight.js' ,
42+ async : true ,
43+ callback : function ( ) {
44+ hljs . initHighlightingOnLoad ( ) ;
45+ }
46+ } ,
47+
48+ // Zoom in and out with Alt+click
49+ {
50+ src : '/static/reveal.js/plugin/zoom-js/zoom.js' ,
51+ async : true
52+ } ,
53+
54+ // Speaker notes
55+ {
56+ src : '/static/reveal.js/plugin/notes/notes.js' ,
57+ async : true
58+ } ,
59+
60+ // MathJax
61+ {
62+ src : '/static/reveal.js/plugin/math/math.js' ,
63+ async : true
64+ } ,
65+
66+ {
67+ src : '/static/reveal.js/lib/js/classList.js' ,
68+ condition : function ( ) {
69+ return ! document . body . classList ;
70+ }
71+ }
7272 ]
7373 } ) ;
7474
7575 themesCtrl ( ) ;
7676}
7777
7878function highlightAnyCodeBlocks ( ) {
79- $ ( document ) . ready ( function ( ) {
80- $ ( 'pre code' ) . each ( function ( i , block ) {
79+ $ ( document ) . ready ( function ( ) {
80+ $ ( 'pre code' ) . each ( function ( i , block ) {
8181 hljs . highlightBlock ( block ) ;
8282 } ) ;
8383 } ) ;
@@ -108,7 +108,7 @@ function reloadMarkdown() {
108108}
109109
110110function externalLinksInNewWindow ( ) {
111- $ ( document . links ) . filter ( function ( ) {
111+ $ ( document . links ) . filter ( function ( ) {
112112 return this . hostname != window . location . hostname ;
113113 } ) . attr ( 'target' , '_blank' ) ;
114114}
@@ -119,7 +119,7 @@ initializeReveal();
119119function themesCtrl ( ) {
120120 var defaultTheme = "black.css" ,
121121 currentTheme = localStorage . getItem ( 'theme?' ) ||
122- defaultTheme ;
122+ defaultTheme ;
123123
124124 function setTheme ( theme ) {
125125 cssEl = $ ( "#theme" ) ;
@@ -145,12 +145,12 @@ function themesCtrl() {
145145 "white.css" ,
146146 ] ;
147147 themeEl = $ ( "#themes" ) ;
148- availableThemes . forEach ( function ( theme ) {
148+ availableThemes . forEach ( function ( theme ) {
149149 elem = $ ( "<option value=" + theme + ">" + theme + "</option>" ) ;
150150 themeEl . append ( elem ) ;
151151 } )
152152 themeEl . val ( currentTheme ) ;
153- themeEl . change ( function ( ) {
153+ themeEl . change ( function ( ) {
154154 val = themeEl . val ( )
155155 setTheme ( val ) ;
156156 } ) ;
0 commit comments