generated from SpinW/PresentationTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
240 lines (215 loc) · 8.96 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
<!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">
<!-- This is the presentation title -->
<title>Introduction to SpinW</title>
<meta name="description" content="Introduction to SpinW" />
<link rel="stylesheet" href="presentation_base/css/reveal.css">
<link rel="stylesheet" href="presentation_base/css/theme/spinw.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="presentation_base/lib/css/zenburn.css">
<link rel="icon" href="presentation_base/lib/spinw/logo/radiant-orange/mark-knockout.svg"/>
<!-- 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 ) ? 'presentation_base/css/print/pdf.css' : 'presentation_base/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<!-- This is where you choose the theme -->
<div class="reveal pattern--fire-side">
<div class="slides">
<section data-external="parts/intro.html"> </section>
<section data-external="parts/content/LSWT_review.html"></section>
<section data-external="parts/content/MatlabIntro.html"></section>
<section data-external-replace="parts/content/spinW.html"></section>
<section data-external="parts/content/example1.html"></section>
<section data-external="parts/intro2.html"> </section>
<section data-external="parts/content/example2.html"></section>
<section data-external="parts/end.html"> </section>
<!--<section data-external="parts/other.html"> </section>-->
</div>
</div>
<script src="presentation_base/lib/js/head.min.js"></script>
<script src="presentation_base/js/reveal.js"></script>
<script src="presentation_base/plugin/function-plot/site/js/vendor/d3.js"></script>
<!--<script src="node_modules/@iconfu/svg-inject/dist/svg-inject.min.js"></script>-->
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
center: false,
width: "100%",
height: "100%",
margin: 0,
minScale: 1,
maxScale: 1,
history: true,
// anything: [
// {
// className: "anything",
// initialize: (function(container, options){ if (options && options.initialize) { options.initialize(container)} })
// },
// {
// className: "chart",
// initialize: (function(container, options){ container.chart = new Chart(container.getContext("2d"), options); })
// },
// {
// className: "plot",
// defaults: {width:500, height: 500, grid:true},
// initialize: (function(container, options){ options.target = "#"+container.id; functionPlot(options) })
// },
// // ...
// ],
math: {
//mathjax: 'node_modules/mathjax/MathJax.js' //offline local
mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js'
},
dependencies: [
{ src: 'presentation_base/plugin/menu/menu.js' },
{ src: 'presentation_base/plugin/math/math.js', async: true },
{ src: 'presentation_base/plugin/external/external/external.js' ,
condition: function() {
return !!document.querySelector( '[data-external],[data-external-replace]' );
}
},
{ src: 'presentation_base/plugin/notes/notes.js', async: true },
{
src: 'presentation_base/plugin/highlight/highlight.js',
async: true,
condition: function () {
// Trim whitespace from code blocks, and prevent HTML escaping by default.
// This must be done before the plugin is loaded.
Array.prototype.forEach.call(
document.querySelectorAll('pre code'),
function (element) {
if (!element.hasAttribute('data-notrim')) {
element.setAttribute('data-trim', '');
}
if (!element.hasAttribute('data-escape')) {
element.setAttribute('data-noescape', '');
}
}
);
return true;
},
callback: function () {
hljs.initHighlightingOnLoad();
var content_div = document.getElementById("edit");
content_div.addEventListener("blur", function() {
hljs.highlightBlock(document.getElementById("codeblock"));
})
}
},
{ src: 'presentation_base/js/jquery-3.3.1.min.js' },
{ src: 'presentation_base/plugin/function-plot/site/js/vendor/d3.js' },
{ src: 'presentation_base/plugin/markdown/marked.js' },
{ src: 'presentation_base/plugin/markdown/markdown.js'},
],
external: {
async: false,
},
menu: {
// Specifies which side of the presentation the menu will
// be shown. Use 'left' or 'right'.
side: 'left',
// Specifies the width of the menu.
// Can be one of the following:
// 'normal', 'wide', 'third', 'half', 'full', or
// any valid css length value
width: 'normal',
// Add slide numbers to the titles in the slide list.
// Use 'true' or format string (same as reveal.js slide numbers)
numbers: false,
// Specifies which slide elements will be used for generating
// the slide titles in the menu. The default selects the first
// heading element found in the slide, but you can specify any
// valid css selector and the text from the first matching
// element will be used.
// Note: that a section data-menu-title attribute or an element
// with a menu-title class will take precedence over this option
titleSelector: 'h1, h2, h3, h4, h5, h6',
// If slides do not have a matching title, attempt to use the
// start of the text content as the title instead
useTextContentForMissingTitles: false,
// Hide slides from the menu that do not have a title.
// Set to 'true' to only list slides with titles.
hideMissingTitles: false,
// Adds markers to the slide titles to indicate the
// progress through the presentation. Set to 'false'
// to hide the markers.
markers: true,
// Specify custom panels to be included in the menu, by
// providing an array of objects with 'title', 'icon'
// properties, and either a 'src' or 'content' property.
custom: false,
// Specifies the themes that will be available in the themes
// menu panel. Set to 'true' to show the themes menu panel
// with the default themes list. Alternatively, provide an
// array to specify the themes to make available in the
// themes menu panel, for example...
// [
// { name: 'Black', theme: 'css/theme/black.css' },
// { name: 'White', theme: 'css/theme/white.css' },
// { name: 'League', theme: 'css/theme/league.css' }
// ]
themes: false,
// Specifies the path to the default theme files. If your
// presentation uses a different path to the standard reveal
// layout then you need to provide this option, but only
// when 'themes' is set to 'true'. If you provide your own
// list of themes or 'themes' is set to 'false' the
// 'themesPath' option is ignored.
themesPath: 'css/theme/',
// Specifies if the transitions menu panel will be shown.
// Set to 'true' to show the transitions menu panel with
// the default transitions list. Alternatively, provide an
// array to specify the transitions to make available in
// the transitions panel, for example...
// ['None', 'Fade', 'Slide']
transitions: false,
// Adds a menu button to the slides to open the menu panel.
// Set to 'false' to hide the button.
openButton: true,
// If 'true' allows the slide number in the presentation to
// open the menu panel. The reveal.js slideNumber option must
// be displayed for this to take effect
openSlideNumber: false,
// If true allows the user to open and navigate the menu using
// the keyboard. Standard keyboard interaction with reveal
// will be disabled while the menu is open.
keyboard: true,
// Normally the menu will close on user actions such as
// selecting a menu item, or clicking the presentation area.
// If 'true', the sticky option will leave the menu open
// until it is explicitly closed, that is, using the close
// button or pressing the ESC or m key (when the keyboard
// interaction option is enabled).
sticky: false,
// If 'true' standard menu items will be automatically opened
// when navigating using the keyboard. Note: this only takes
// effect when both the 'keyboard' and 'sticky' options are enabled.
autoOpen: true,
// If 'true' the menu will not be created until it is explicitly
// requested by calling RevealMenu.init(). Note this will delay
// the creation of all menu panels, including custom panels, and
// the menu button.
delayInit: false,
// If 'true' the menu will be shown when the menu is initialised.
openOnInit: false,
// By default the menu will load it's own font-awesome library
// icons. If your presentation needs to load a different
// font-awesome library the 'loadIcons' option can be set to false
// and the menu will not attempt to load the font-awesome library.
loadIcons: true
},
});
</script>
</body>
</html>