git.iko.soy/ikoHSE/sc-lectures
on master help sign in
Initial commit
commit40cc8db260e195f52a3559856ef8c89530d4fa5f authoriko <ilyakooo0@gmail.com> dateSun 19 Jan 2020, 21:33 (7 years ago)
176 files changed+25181
.gitignore+13 .travis.yml+5 1.html+887 bower.json+24 css/print/paper.css+203 css/print/pdf.css+164 css/reset.css+30 css/reveal.css+1606 css/reveal.scss+1777 css/theme/README.md+21 css/theme/beige.css+277 css/theme/black copy.css+273 css/theme/black.css+273 css/theme/blood.css+296 css/theme/league.css+279 css/theme/moon.css+277 css/theme/night.css+271 css/theme/serif.css+273 css/theme/simple.css+276 css/theme/sky.css+280 css/theme/solarized.css+277 css/theme/source/beige.scss+39 css/theme/source/black.scss+49 css/theme/source/blood.scss+78 css/theme/source/league.scss+34 css/theme/source/moon.scss+57 css/theme/source/night.scss+34 css/theme/source/serif.scss+35 css/theme/source/simple.scss+43 css/theme/source/sky.scss+46 css/theme/source/solarized.scss+63 css/theme/source/superblack.scss+65 css/theme/source/white.scss+49 css/theme/superblack.css+285 css/theme/template/mixins.scss+29 css/theme/template/settings.scss+45 css/theme/template/theme.scss+325 css/theme/white.css+273 gruntfile.js+189 js/reveal.js+6155 lib/css/monokai.css+71 lib/css/zenburn.css+80 lib/font/hasklig/Hasklig-Black.eot lib/font/hasklig/Hasklig-Black.otf lib/font/hasklig/Hasklig-Black.ttf lib/font/hasklig/Hasklig-Black.woff lib/font/hasklig/Hasklig-BlackIt.eot lib/font/hasklig/Hasklig-BlackIt.otf lib/font/hasklig/Hasklig-BlackIt.ttf lib/font/hasklig/Hasklig-BlackIt.woff lib/font/hasklig/Hasklig-Bold.eot lib/font/hasklig/Hasklig-Bold.otf lib/font/hasklig/Hasklig-Bold.ttf lib/font/hasklig/Hasklig-Bold.woff lib/font/hasklig/Hasklig-BoldIt.eot lib/font/hasklig/Hasklig-BoldIt.otf lib/font/hasklig/Hasklig-BoldIt.ttf lib/font/hasklig/Hasklig-BoldIt.woff lib/font/hasklig/Hasklig-ExtraLight.eot lib/font/hasklig/Hasklig-ExtraLight.otf lib/font/hasklig/Hasklig-ExtraLight.ttf lib/font/hasklig/Hasklig-ExtraLight.woff lib/font/hasklig/Hasklig-ExtraLightIt.eot lib/font/hasklig/Hasklig-ExtraLightIt.otf lib/font/hasklig/Hasklig-ExtraLightIt.ttf lib/font/hasklig/Hasklig-ExtraLightIt.woff lib/font/hasklig/Hasklig-It.eot lib/font/hasklig/Hasklig-It.otf lib/font/hasklig/Hasklig-It.ttf lib/font/hasklig/Hasklig-It.woff lib/font/hasklig/Hasklig-Light.eot lib/font/hasklig/Hasklig-Light.otf lib/font/hasklig/Hasklig-Light.ttf lib/font/hasklig/Hasklig-Light.woff lib/font/hasklig/Hasklig-LightIt.eot lib/font/hasklig/Hasklig-LightIt.otf lib/font/hasklig/Hasklig-LightIt.ttf lib/font/hasklig/Hasklig-LightIt.woff lib/font/hasklig/Hasklig-Medium.eot lib/font/hasklig/Hasklig-Medium.otf lib/font/hasklig/Hasklig-Medium.ttf lib/font/hasklig/Hasklig-Medium.woff lib/font/hasklig/Hasklig-MediumIt.eot lib/font/hasklig/Hasklig-MediumIt.otf lib/font/hasklig/Hasklig-MediumIt.ttf lib/font/hasklig/Hasklig-MediumIt.woff lib/font/hasklig/Hasklig-Regular.eot lib/font/hasklig/Hasklig-Regular.otf lib/font/hasklig/Hasklig-Regular.ttf lib/font/hasklig/Hasklig-Regular.woff lib/font/hasklig/Hasklig-Semibold.eot lib/font/hasklig/Hasklig-Semibold.otf lib/font/hasklig/Hasklig-Semibold.ttf lib/font/hasklig/Hasklig-Semibold.woff lib/font/hasklig/Hasklig-SemiboldIt.eot lib/font/hasklig/Hasklig-SemiboldIt.otf lib/font/hasklig/Hasklig-SemiboldIt.ttf lib/font/hasklig/Hasklig-SemiboldIt.woff lib/font/hasklig/hasklig.css+39 lib/font/league-gothic/LICENSE+2 lib/font/league-gothic/league-gothic.css+10 lib/font/league-gothic/league-gothic.eot lib/font/league-gothic/league-gothic.ttf lib/font/league-gothic/league-gothic.woff lib/font/source-sans-pro/LICENSE+45 lib/font/source-sans-pro/SourceSansPro-Black.eot lib/font/source-sans-pro/SourceSansPro-Black.ttf lib/font/source-sans-pro/SourceSansPro-Black.woff lib/font/source-sans-pro/SourceSansPro-BlackItalic.eot lib/font/source-sans-pro/SourceSansPro-BlackItalic.ttf lib/font/source-sans-pro/SourceSansPro-BlackItalic.woff lib/font/source-sans-pro/SourceSansPro-Bold.eot lib/font/source-sans-pro/SourceSansPro-Bold.ttf lib/font/source-sans-pro/SourceSansPro-Bold.woff lib/font/source-sans-pro/SourceSansPro-BoldItalic.eot lib/font/source-sans-pro/SourceSansPro-BoldItalic.ttf lib/font/source-sans-pro/SourceSansPro-BoldItalic.woff lib/font/source-sans-pro/SourceSansPro-ExtraLight.eot lib/font/source-sans-pro/SourceSansPro-ExtraLight.ttf lib/font/source-sans-pro/SourceSansPro-ExtraLight.woff lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.eot lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.ttf lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.woff lib/font/source-sans-pro/SourceSansPro-Italic.eot lib/font/source-sans-pro/SourceSansPro-Italic.ttf lib/font/source-sans-pro/SourceSansPro-Italic.woff lib/font/source-sans-pro/SourceSansPro-Light.eot lib/font/source-sans-pro/SourceSansPro-Light.ttf lib/font/source-sans-pro/SourceSansPro-Light.woff lib/font/source-sans-pro/SourceSansPro-LightItalic.eot lib/font/source-sans-pro/SourceSansPro-LightItalic.ttf lib/font/source-sans-pro/SourceSansPro-LightItalic.woff lib/font/source-sans-pro/SourceSansPro-Regular.eot lib/font/source-sans-pro/SourceSansPro-Regular.ttf lib/font/source-sans-pro/SourceSansPro-Regular.woff lib/font/source-sans-pro/SourceSansPro-SemiBold.eot lib/font/source-sans-pro/SourceSansPro-SemiBold.ttf lib/font/source-sans-pro/SourceSansPro-SemiBold.woff lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.eot lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.ttf lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.woff lib/font/source-sans-pro/source-sans-pro-italic.eot lib/font/source-sans-pro/source-sans-pro-italic.ttf lib/font/source-sans-pro/source-sans-pro-italic.woff lib/font/source-sans-pro/source-sans-pro-regular.eot lib/font/source-sans-pro/source-sans-pro-regular.ttf lib/font/source-sans-pro/source-sans-pro-regular.woff lib/font/source-sans-pro/source-sans-pro-semibold.eot lib/font/source-sans-pro/source-sans-pro-semibold.ttf lib/font/source-sans-pro/source-sans-pro-semibold.woff lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff lib/font/source-sans-pro/source-sans-pro.css+39 lib/js/html5shiv.js+7 lib/js/promise.js+2 package-lock.json+5719 package.json+44 plugin/highlight/highlight.js+303 plugin/markdown/example.html+134 plugin/markdown/example.md+36 plugin/markdown/markdown.js+446 plugin/markdown/marked.js+6 plugin/math/math.js+92 plugin/multiplex/client.js+13 plugin/multiplex/index.js+64 plugin/multiplex/master.js+34 plugin/multiplex/package.json+19 plugin/notes-server/client.js+65 plugin/notes-server/index.js+69 plugin/notes-server/notes.html+585 plugin/notes/notes.html+854 plugin/notes/notes.js+178 plugin/print-pdf/print-pdf.js+67 plugin/search/search.js+206 plugin/zoom-js/zoom.js+277
.gitignorenew file+13
@@ -0,0 +1,13 @@
1+.idea/
2+*.iml
3+*.iws
4+*.eml
5+out/
6+.DS_Store
7+.svn
8+log/*.log
9+tmp/**
10+node_modules/
11+.sass-cache
12+css/reveal.min.css
13+js/reveal.min.js
.travis.ymlnew file+5
@@ -0,0 +1,5 @@
1+language: node_js
2+node_js:
3+ - 11
4+after_script:
5+ - npm run build -- retire
1.htmlnew file+887
@@ -0,0 +1,887 @@
1+<!doctype html>
2+<html>
3+
4+<head>
5+ <meta charset="utf-8">
6+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
7+
8+ <link rel="stylesheet" href="css/reset.css">
9+ <link rel="stylesheet" href="css/reveal.css">
10+ <link rel="stylesheet" href="css/theme/superblack.css">
11+
12+ <!-- Theme used for syntax highlighting of code -->
13+ <link rel="stylesheet" href="lib/css/monokai.css">
14+
15+ <!-- Printing and PDF exports -->
16+ <script>
17+ var link = document.createElement('link');
18+ link.rel = 'stylesheet';
19+ link.type = 'text/css';
20+ link.href = window.location.search.match(/print-pdf/gi) ? 'css/print/pdf.css' : 'css/print/paper.css';
21+ document.getElementsByTagName('head')[0].appendChild(link);
22+ </script>
23+</head>
24+
25+<body>
26+ <div class="reveal">
27+ <div class="slides">
28+ <section>
29+ <h2>Функциональное программирование</h2>
30+ <aside class="notes" data-markdown>
31+ Функциональное программирование это не про использование map filter reduce.
32+
33+ Функциональное программирование это вообще ортогонально к ооп.
34+
35+ ИМХО проблема с ООП -- наследование (которое тоже ортогонально к ООП) -- нет разграничения между абстракцией и
36+ реализацией.
37+
38+ и вообще обзывание это функциональным программированием -- не совсем правильно.
39+
40+ то, что мы сейчас будем пытаться сделать -- сделать код более переиспользуемым.
41+
42+ сделать наши данные максимально тупыми => переиспользуемыми.
43+
44+ пытаться комбинировать слишком умные куски -- не получится -- слишком сложно.
45+
46+ мы хотим сделать простые куски, которые просто комбинировать и еще чтобы компилятор проверял эти наши
47+ комбинации на валидность.
48+ </aside>
49+ </section>
50+ <section data-markdown>
51+ Функциональное программирование:
52+ > функции -- это тоже данные.
53+
54+ `Int -> Bool` (функция) -- ровно такие же данные как и `Int`. Их также можно складывать в структуры,
55+ передавать как аргументы и т. п.
56+ </section>
57+
58+ <section>
59+ <section>
60+ <h1>нотация</h1>
61+ </section>
62+ <section>
63+ <table width="100%">
64+ <tr>
65+ <td>
66+ <pre>
67+ <code class="java">int x;</code>
68+ </pre>
69+ </td>
70+ <td>
71+ <pre>
72+ <code class="haskell">x :: Int</code>
73+ </pre>
74+ </td>
75+ </tr>
76+ <tr class="fragment">
77+ <td>
78+ <pre>
79+ <code class="java">int f(int x)</code>
80+ </pre>
81+ </td>
82+ <td>
83+ <pre>
84+ <code class="haskell">f :: Int -> Int</code>
85+ </pre>
86+ </td>
87+ </tr>
88+ <tr class="fragment">
89+ <td>
90+ <pre>
91+ <code class="java">static &lt;T&gt; T f(T x)</code>
92+ </pre>
93+
94+ </td>
95+ <td>
96+ <pre>
97+ <code class="haskell">f :: a -> a</code>
98+ </pre>
99+ </td>
100+ </tr>
101+ </table>
102+ </section>
103+ <section>
104+ <table width="100%">
105+ <tr>
106+ <td>
107+ <pre>
108+ <code class="java">static &lt;T&gt; T f(T x)</code>
109+ </pre>
110+ </td>
111+ <td>
112+ <pre>
113+ <code class="haskell">f :: a -> a</code>
114+ </pre>
115+ </td>
116+ </tr>
117+ <tr>
118+ <td class="fragment">
119+ <pre>
120+ <code class="java">f(x);</code>
121+ </pre>
122+ </td>
123+ <td class="fragment">
124+ <pre>
125+ <code class="haskell">f x</code>
126+ </pre>
127+ </td>
128+ </tr>
129+ <tr class="fragment">
130+ <td>
131+ <pre>
132+ <code class="java">f(x, y);</code>
133+ </pre>
134+ </td>
135+ <td>
136+ <pre>
137+ <code class="haskell">f x y</code>
138+ </pre>
139+ <pre class="fragment">
140+ <code class="haskell">f x y = (f x) y</code>
141+ </pre>
142+ <aside class="notes">
143+ Left-associative
144+ Currying
145+ </aside>
146+ </td>
147+ </td>
148+ </tr>
149+ </table>
150+ </section>
151+ <section>
152+ <table width="100%">
153+ <tr>
154+ <td>
155+ <pre>
156+ <code class="java">static &lt;T&gt; T f(T x)
157+static &lt;T&gt; T g(T x)</code>
158+ </pre>
159+ </td>
160+ <td>
161+ <pre>
162+ <code class="haskell">f :: a -> a
163+g :: a -> a</code>
164+ </pre>
165+ </td>
166+ </tr>
167+ <tr class="fragment">
168+ <td>
169+ <pre>
170+ <code class="java">f(g(x));
171+g(f(x));</code>
172+ </pre>
173+ </td>
174+ <td class="fragment">
175+ <pre>
176+ <code class="haskell">f (g x)
177+g (f x)</code>
178+ </pre>
179+ </td>
180+ </tr>
181+ </table>
182+ </section>
183+ </section>
184+ <section>
185+ <section>
186+ <h1>
187+ Композиция
188+ </h1>
189+ </section>
190+ <section>
191+ <pre><code class="haskell">f :: a -> a
192+g :: a -> a</code></pre>
193+ <pre class="fragment"><code class="haskell">f (g x)</code></pre>
194+ <pre class="fragment"><code class="haskell">(f . g) x == f (g x)</code></pre>
195+ <pre class="fragment"><code class="haskell">h = f . g
196+h x == f (g x)</code></pre>
197+ </section>
198+ <section>
199+ <pre><code class="haskell">f :: a -> a
200+g :: a -> a
201+
202+h :: a -> a
203+h = f . g</code></pre>
204+
205+ <h3 class="fragment">моноид</h3>
206+
207+ <aside class="notes" data-markdown>
208+ моноид -- у тебя есть две штуки одного типа и ты можешь получить еще одну
209+ штуку такого же
210+ типа.
211+
212+ Это очень простой способ рождения сложности из простоты
213+
214+ причем тип h выводится из определения. Нам его указывать не надо.
215+
216+ если у нас изначальные маленькие кусочки хорошо описаны, то порожденные большие кусочки будут автоматически
217+ хорошо описанными.
218+ </aside>
219+ </section>
220+ <section>
221+ <h3>
222+ Моноид
223+ </h3>
224+
225+ <p class="fragment">
226+ Бинарная асоциативная операция
227+ </p>
228+
229+ <pre><code class="haskell fragment">(.) :: (a -> a) -> (a -> a) -> (a -> a)</code></pre>
230+
231+ <p class="fragment">
232+ Нейтральный элемент
233+ </p>
234+
235+ <pre><code class="haskell fragment">id :: a -> a
236+id x = x</code></pre>
237+ </section>
238+ </section>
239+ </section>
240+ <section>
241+ <section>
242+ <h2>Haskell</h2>
243+ </section>
244+ <section>
245+ <h3>Чисто функционаьлный</h3>
246+ <p class="fragment" data-markdown>Все что функция может сделать -- посмотреть на свои аргументы это вернуть
247+ значение.</p>
248+ <aside class="notes" data-markdown>Нельзя просто произвольно распечатать строку в консоль, нельзя просто
249+ произвольно
250+ отправить запрос на бд, нельзя просто произвольно изменить глобальную переменную.</aside>
251+ </section>
252+ <section>
253+ <h3>Referential transparency</h3>
254+ <h5>(Любую константу можно заменить на само значение)</h5>
255+ <pre><code class="java fragment">int x = 8;
256+int y = x++;
257+System.out.println(y + " might be the same as " + y);</code></pre>
258+ <pre><code class="java fragment">int x = 8;
259+System.out.println(x++ + " might be the same as " + x++);</code></pre>
260+
261+ <aside class="notes" data-markdown>Сильно упрощает рефакторинг и понимание кода.</aside>
262+ </section>
263+ <section>
264+ <h3>Нет переменных, циклов и условных переходов</h3>
265+
266+ <p class="fragment" data-markdown>
267+ Зато есть константы и нормальная рекурсия
268+
269+ (А переходов вообще нет)
270+ </p>
271+ </section>
272+ <section>
273+ <h3>Очень ленивый</h3>
274+
275+ <pre><code class="haskell fragment">xs = [4, 1, 3, 2]
276+xs' = sort xs
277+print xs</code></pre>
278+
279+ <p class="fragment" data-markdown>
280+ `xs'` не нужен чтобы распечатать `xs`, поэтому сортироваться ничто не будет.
281+
282+ (Зачем делать то, что можно не делать)
283+ </p>
284+ </section>
285+ <section>
286+ <p>Если хотите быстро и просто потыкаться, тут есть интерктивная штука:</p>
287+ <a href="https://www.haskell.org">haskell.org</a>
288+ </section>
289+ </section>
290+ <section>
291+ <h2>Синтаксис</h2>
292+ </section>
293+ <section>
294+ <section>
295+ <h2>Функции</h2>
296+ </section>
297+ <section>
298+ <pre><code class="haskell">add2 :: Int -> Int
299+add2 x = x + 2</code></pre>
300+ <p>Все функции и константы всегда обозначаются словами с маленькой буквы без пробелов.</p>
301+ <p>(Константы это просто функции с нулем аргументов.)</p>
302+ </section>
303+ <section>
304+ <h3>Pattern mathcing</h3>
305+ <pre><code class="haskell">fixBuz :: Int -> String
306+divide8 3 = "Fiz"
307+divide8 5 = "Buz"
308+divide8 15 = "FizBuz"
309+divide8 _ = "Some other number"</code></pre>
310+
311+ <p data-markdown>
312+ Так матчить можно произвольные структуры произвольного уровня вложенности.
313+
314+ `_` -- специальное название константы, которое говорит что вам все равно что в ней лежит.
315+ </p>
316+ <aside class="notes" data-markdown>
317+ функции объявляются в несколькро строк. Первая -- обьявленик типа функции,
318+ а последубщие -- реализация. В общем случае тип можно не указывать, но указывать тип у высказыванй на самом
319+ верхнем уровне (не вложенные) считается хорошим тоном и улучшает выведение типов и ошибки компиляции.
320+
321+ У функции может быть несколько реализаций: какая из них вызовется зависит от значений передаваемых
322+ аргументов. матчинг произхводится сверху вниз.
323+
324+ если в аргемантах написано слово с маленькой буквы, то значение аргумента биндится на эту константу.
325+ </aside>
326+ </section>
327+ </section>
328+ <section>
329+ <section>
330+ <h2>Структуры</h2>
331+ </section>
332+ <section>
333+ <pre><code class="haskell">data Foo = Bar
334+foo :: Bar
335+foo = Bar</code></pre>
336+
337+ <p data-markdown>
338+ `Foo` -- тип структуры. `Bar` -- конструктор структуры.
339+
340+ Тут у `Foo` всего одно значение `Bar`.
341+ </p>
342+ </section>
343+ <section>
344+ <h3>Произведение типов</h3>
345+ <h5>(обычные поля структур)</h5>
346+ <aside class="notes" data-markdown>
347+ После констрктора можно укзать существующие типы, которые в нем храняться.
348+ </aside>
349+
350+ <pre><code class="haskell">data PersonType = Person String Int</code></pre>
351+ <pre><code class="haskell fragment">vasya :: PersonType
352+vasya = Person "Vasya" 8
353+-- тип можно не укзывать
354+petya = Person "Petya" 5</code></pre>
355+ <pre><code class="haskell fragment">getName :: PersonType -> String
356+getName (Person name _) = name</code></pre>
357+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
358+greetPerson p = "Hello, " ++ getName p</code></pre>
359+ <pre><code class="haskell fragment">greetPerson petya
360+-- "Hello, Petya"</code></pre>
361+ </section>
362+ <section>
363+ <h3>Еще немного функций</h3>
364+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
365+greetPerson p = "Hello, " ++ getName p</code></pre>
366+
367+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
368+greetPerson p = "Hello, " ++ name
369+ where
370+ name = getName p</code></pre>
371+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
372+greetPerson p = "Hello, " ++ name
373+ where
374+ getName' (Person name _) = name
375+ name = getName' p</code></pre>
376+ </section>
377+ <section>
378+ <pre><code class="haskell">data PersonType = Person String Int
379+
380+getName :: PersonType -> String
381+getName (Person name _) = name</code></pre>
382+ <pre><code class="haskell fragment">greetName :: String -> String
383+greetName name = "Hello, " ++ name</code></pre>
384+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
385+greetPerson p = greetName (getName p)</code></pre>
386+ <pre><code class="haskell fragment">greetPerson :: PersonType -> String
387+greetPerson = greetName . getName</code></pre>
388+ <pre><code class="haskell fragment">greetPerson petya
389+-- "Hello, Petya"</code></pre>
390+ <pre><code class="haskell fragment">(greetName . getName) petya
391+-- "Hello, Petya"</code></pre>
392+ </section>
393+ <section>
394+ <h3>Суммы типов</h3>
395+ <aside class="notes" data-markdown>
396+ Функции нескольких аргументов -- странный синтаксис -- потом расскажу.
397+ </aside>
398+
399+ <pre><code class="haskell fragment">data Bool = False | True</code></pre>
400+ <pre><code class="haskell fragment">x :: Bool
401+x = True
402+y = False</code></pre>
403+
404+ <pre><code class="haskell fragment">ifThenElse :: (Bool, a, a) -> a</code></pre>
405+ <pre><code class="haskell fragment">ifThenElse (True, a, _) = a
406+ifThenElse (False, _, b) = b</code></pre>
407+ <pre><code class="haskell fragment">ifThenElse (True, "Hello", "World")
408+-- "Hello"</code></pre>
409+
410+ <pre><code class="haskell fragment">ifThenElse (False, "Hello", "World")
411+-- "World"</code></pre>
412+
413+ </section>
414+ <section>
415+ <pre><code class="haskell">data CircleType = Circle Double Double Double
416+data RectangleType = Rectangle Double Double Double Double
417+</code></pre>
418+ <pre><code class="haskell fragment">data Shape =
419+ CircleShape CircleType | RectangleShape RectangleType</code></pre>
420+ <pre><code class="haskell fragment">surface :: Shape -> Double</code></pre>
421+ <pre><code class="haskell fragment">surface (CircleShape (Circle _ _ r)) =
422+ pi * r ^ 2</code></pre>
423+ <pre><code class="haskell fragment">surface (RectangleShape (Rectangle x1 y1 x2 y2)) =
424+ (abs (x2 - x1)) * (abs (y2 - y1))</code></pre>
425+ <pre><code class="haskell fragment">shape = CircleShape (Circle 0 0 2)
426+surface shape
427+-- 12.566370614359172
428+</code></pre>
429+ <pre><code class="haskell fragment">otherShape = RectangleShape (Rectangle 1 2 3 4)
430+surface otherShape
431+-- 4.0
432+</code></pre>
433+ </section>
434+ </section>
435+ <section>
436+ <section>
437+ <h2>И еще немного функций</h2>
438+ </section>
439+ <section>
440+ <h3>Лямбда-выражения</h3>
441+
442+ <pre><code class="haskell fragment">add8 :: Int -> Int</code></pre>
443+ <pre><code class="haskell fragment">add8 x = x + 8</code></pre>
444+ <pre><code class="haskell fragment">add8 = \x -> x + 8</code></pre>
445+ <p data-markdown class="fragment">
446+ λ -- `\`
447+
448+ (λ печатать тяжело)</p>
449+
450+ <pre><code class="haskell fragment">foo :: (Int -> Int) -> Int</code></pre>
451+ <pre><code class="haskell fragment">foo add8</code></pre>
452+ <pre><code class="haskell fragment">foo (\x -> x + 8)</code></pre>
453+ </section>
454+ <section>
455+ <h3>Давайте придумаем синтаксис для функции несколких аргументов!</h3>
456+ </section>
457+ <section>
458+ <pre><code class="haskell">x, y :: Int
459+x = 42
460+y = 69
461+</code></pre>
462+
463+ <pre><code class="haskell fragment">xPlusY :: Int
464+xPlusY = add x y</code></pre>
465+ <p class="fragment" data-markdown>Применение функции -- лево-ассоциативно</p>
466+ <pre><code class="haskell fragment">xPlusY = (add x) y</code></pre>
467+ <pre><code class="haskell fragment">xPlusY = f y
468+f = add x</code></pre>
469+ <pre><code class="haskell fragment">f :: Int -> Int</code></pre>
470+ <pre><code class="haskell fragment">add :: Int -> (Int -> Int)</code></pre>
471+ </section>
472+ <section>
473+ <pre><code class="haskell">add :: Int -> (Int -> Int)</code></pre>
474+ <p class="fragment" data-markdown>Тип `->` -- право-ассоциативный</p>
475+
476+ <pre><code class="haskell fragment">add :: Int -> Int -> Int</code></pre>
477+ <pre><code class="haskell fragment">add a b = a + b</code></pre>
478+ <pre><code class="haskell fragment">add = \a b -> a + b</code></pre>
479+ </section>
480+ <section>
481+ <p>Любая функция берет строго один аргумент.</p>
482+
483+ <p>Функция нескольких аргументов все равно берет строго одтн аргумент и возвращает функцию, которая берет
484+ следйющий.
485+ </p>
486+
487+ <p>
488+ <em>
489+ (И из-за того, что применение функции лево-ассоциативно, вызов таких не трубует особого
490+ синтаксиса.)
491+ </em>
492+ </p>
493+ </section>
494+ <section>
495+ <h3>Currying</h3>
496+ <pre><code class="haskell fragment">add :: Int -> Int -> Int
497+add a b = a + b</code></pre>
498+
499+ <pre><code class="haskell fragment">add8 :: Int -> Int</code></pre>
500+ <pre><code class="haskell fragment">add :: Int -> (Int -> Int)</code></pre>
501+ <pre><code class="haskell fragment">add8 = add 8</code></pre>
502+ <pre><code class="haskell fragment">add8 3
503+-- 11</code></pre>
504+ </section>
505+ <section>
506+ <h3>Funny fact</h3>
507+
508+ <p class="fragment" data-markdown>Оператор (например `+`) -- функция, название которой не содержит буквы и
509+ цифры.</p>
510+ <pre><code class="haskell fragment">x +&+ y = x + y</code></pre>
511+ <pre><code class="haskell fragment">8 +&+ 9
512+-- 17</code></pre>
513+
514+ </section>
515+ <section>
516+ <h3>Funny fact 2</h3>
517+
518+ <p class="fragment" data-markdown>Оператор можно превратить в функцию, окружив его скобками.</p>
519+ <pre><code class="haskell fragment">add :: Int -> Int -> Int
520+add x y = x + y</code></pre>
521+ <pre><code class="haskell fragment">add = (+&+)</code></pre>
522+ <pre><code class="haskell fragment">add = (+)</code></pre>
523+
524+ </section>
525+ <section>
526+ <h3>Funny fact 3</h3>
527+
528+ <p class="fragment" data-markdown>Функцию можно превратить в оператор, окружив ее обратными кавычками.</p>
529+ <pre><code class="haskell fragment">add :: Int -> Int -> Int
530+add x y = x + y</code></pre>
531+ <pre><code class="haskell fragment">add 8 9
532+-- 17</code></pre>
533+ <pre><code class="haskell fragment">8 `add` 9
534+-- 17</code></pre>
535+ </section>
536+ </section>
537+ </section>
538+ <section>
539+ <section>
540+ <h2>Список</h2>
541+ </section>
542+ <section>
543+ <h3>Односвязный список</h3>
544+ <pre><code class="haskell fragment">data IntList = Cons Int IntList | Nil</code></pre>
545+ <pre><code class="haskell fragment">nums :: IntList
546+nums = 1 `Cons` (2 `Cons` (3 `Cons` Nil))</code></pre>
547+ <pre><code class="haskell fragment">sum :: IntList -> Int</code></pre>
548+ <pre><code class="haskell fragment">sum (Cons x xs) = x + sum xs</code></pre>
549+ <pre><code class="haskell fragment">sum Nil = 0
550+sum (Cons x xs) = x + sum xs</code></pre>
551+ <pre><code class="haskell fragment">sum nums
552+-- 6</code></pre>
553+
554+ </section>
555+ <section>
556+ <pre><code class="haskell">take :: Int -> IntList -> IntList</code></pre>
557+ <pre><code class="haskell fragment">take _ Nil = Nil
558+take 0 _ = Nil
559+take n (Cons x xs) = Cons x (take (n - 1) xs)</code></pre>
560+ <pre><code class="haskell fragment">nums :: IntList
561+nums = 1 `Cons` (2 `Cons` (3 `Cons` Nil))</code></pre>
562+ <pre><code class="haskell fragment">take 2 nums
563+-- Cons 1 (Cons 2 Nil)
564+take 1029 nums
565+-- Cons 1 (Cons 2 (Cons 3 Nil))
566+take 0 nums
567+-- Nil</code></pre>
568+
569+ </section>
570+ <section>
571+ <pre><code class="haskell">repeat :: Int -> IntList</code></pre>
572+ <pre><code class="haskell fragment">repeat n = n : (repeat n)</code></pre>
573+ <pre><code class="haskell fragment">repeat 8
574+-- Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (Cons 8 (...</code></pre>
575+ <pre><code class="haskell fragment">(take 3 . repeat) 8
576+-- Cons 8 (Cons 8 (Cons 8 Nil))</code></pre>
577+ <pre><code class="haskell fragment">(sum . take 3 . repeat) 8
578+-- 24</code></pre>
579+ </section>
580+ <section>
581+ <table>
582+ <tr>
583+ <td>Наша самодеятельность</td>
584+ <td>В стандартной библиотеке</td>
585+ </tr>
586+ <tr class="fragment">
587+ <td>
588+ <pre><code class="haskell">IntList</code></pre>
589+ </td>
590+ <td>
591+ <pre><code class="haskell">[Int]</code></pre>
592+ </td>
593+ </tr>
594+ <tr class="fragment">
595+ <td>
596+ <pre><code class="haskell">Nil</code></pre>
597+ </td>
598+ <td>
599+ <pre><code class="haskell">[]</code></pre>
600+ </td>
601+ </tr>
602+ <tr class="fragment">
603+ <td>
604+ <pre><code class="haskell">Cons</code></pre>
605+ </td>
606+ <td>
607+ <pre><code class="haskell">:</code></pre>
608+ </td>
609+ </tr>
610+ <tr class="fragment">
611+ <td>
612+ <pre><code class="haskell">Cons 3 (Cons 4 Nil)</code></pre>
613+ </td>
614+ <td>
615+ <pre class="fragment"><code class="haskell">3 : 4 : []</code></pre>
616+ <pre class="fragment"><code class="haskell">[3, 4]</code></pre>
617+ </td>
618+ </tr>
619+ </table>
620+ </section>
621+ <section>
622+ <p data-markdown>`repeat`, `sum` и `take` тоже есть в стандартной библиотеке.</p>
623+ </section>
624+ </section>
625+ <section>
626+ <section>
627+ <h2>QuickSort</h2>
628+ </section>
629+ <section>
630+ <pre><code class="haskell">quicksort :: [Int] -> [Int]</code></pre>
631+
632+ <pre><code class="haskell fragment">quicksort (x:xs) =
633+ quicksort smaller ++ [x] ++ quicksort larger
634+ where
635+ smaller = filter (< x) xs
636+ larger = filter (>= x) xs</code></pre>
637+ </section>
638+ <section>
639+ <pre><code class="haskell">filter :: (Bool -> Int) -> [Int] -> [Int]</code></pre>
640+ <pre><code class="haskell fragment">filter f (x:xs) =
641+ if f x
642+ then filter f xs
643+ else x:(filter f xs)</code></pre>
644+ <pre><code class="haskell fragment">filter _ [] = []
645+filter f (x:xs) =
646+ if f x
647+ then filter f xs
648+ else x:(filter f xs)</code></pre>
649+ </section>
650+ <section>
651+ <pre><code class="haskell">quicksort :: [Int] -> [Int]
652+quicksort (x:xs) =
653+ quicksort smaller ++ [x] ++ quicksort larger
654+ where
655+ smaller = filter (< x) xs
656+ larger = filter (>= x) xs
657+ filter _ [] = []
658+ filter f (x:xs) =
659+ if f x
660+ then filter f xs
661+ else x:(filter f xs)</code></pre>
662+ </section>
663+ <section>
664+ <pre><code class="haskell">quicksort :: [Int] -> [Int]
665+quicksort [] = []
666+quicksort (x:xs) =
667+ quicksort smaller ++ [x] ++ quicksort larger
668+ where
669+ smaller = filter (< x) xs
670+ larger = filter (>= x) xs
671+ filter _ [] = []
672+ filter f (x:xs) =
673+ if f x
674+ then filter f xs
675+ else x:(filter f xs)</code></pre>
676+ <pre><code class="haskell fragment">quicksort [2, 1, 3, 4]
677+-- [1, 2, 3, 4]</code></pre>
678+ </section>
679+ <section>
680+ <p data-markdown>`filter` тоже есть в стандартной библиотеке.</p>
681+ </section>
682+ </section>
683+ <section>
684+ <section>
685+ <h2>Где и как смотреть "стандартную библиотеку"</h2>
686+ </section>
687+ <section>
688+ <ol>
689+ <li>
690+ <a href="https://hackage.haskell.org/package/base">Hackage</a>
691+
692+ <p data-markdown>
693+ (Там вам нужен только пакет `base`. Ссылка ведет прямо на него.)
694+
695+ Еще если там нажать `s`, то будет поиск.
696+ </p>
697+ </li>
698+ <li class="fragment">
699+ <a href="https://hoogle.haskell.org">Hoogle</a>
700+
701+ <p data-markdown>
702+ Это поиск по типам.
703+
704+ Например: `Int -> [Int] -> [Int]`
705+
706+ (Тут вам опять же нужен только пакет `base`. Нужно чтобы справа было "package:base".)
707+
708+ </p>
709+ </li>
710+ </ol>
711+ </section>
712+ </section>
713+ </div>
714+ </div>
715+
716+ <script src="js/reveal.min.js"></script>
717+
718+ <script>
719+ // More info about config & dependencies:
720+ // - https://github.com/hakimel/reveal.js#configuration
721+ // - https://github.com/hakimel/reveal.js#dependencies
722+ Reveal.initialize({
723+
724+ // Display presentation control arrows
725+ controls: true,
726+
727+ // Help the user learn the controls by providing hints, for example by
728+ // bouncing the down arrow when they first encounter a vertical slide
729+ controlsTutorial: true,
730+
731+ // Determines where controls appear, "edges" or "bottom-right"
732+ controlsLayout: 'bottom-right',
733+
734+ // Visibility rule for backwards navigation arrows; "faded", "hidden"
735+ // or "visible"
736+ controlsBackArrows: 'faded',
737+
738+ // Display a presentation progress bar
739+ progress: true,
740+
741+ // Display the page number of the current slide
742+ slideNumber: false,
743+
744+ // Add the current slide number to the URL hash so that reloading the
745+ // page/copying the URL will return you to the same slide
746+ hash: true,
747+
748+ // Push each slide change to the browser history. Implies `hash: true`
749+ history: false,
750+
751+ // Enable keyboard shortcuts for navigation
752+ keyboard: true,
753+
754+ // Enable the slide overview mode
755+ overview: true,
756+
757+ // Vertical centering of slides
758+ center: true,
759+
760+ // Enables touch navigation on devices with touch input
761+ touch: true,
762+
763+ // Loop the presentation
764+ loop: false,
765+
766+ // Change the presentation direction to be RTL
767+ rtl: false,
768+
769+ // See https://github.com/hakimel/reveal.js/#navigation-mode
770+ navigationMode: 'linear',
771+
772+ // Randomizes the order of slides each time the presentation loads
773+ shuffle: false,
774+
775+ // Turns fragments on and off globally
776+ fragments: true,
777+
778+ // Flags whether to include the current fragment in the URL,
779+ // so that reloading brings you to the same fragment position
780+ fragmentInURL: true,
781+
782+ // Flags if the presentation is running in an embedded mode,
783+ // i.e. contained within a limited portion of the screen
784+ embedded: false,
785+
786+ // Flags if we should show a help overlay when the questionmark
787+ // key is pressed
788+ help: true,
789+
790+ // Flags if speaker notes should be visible to all viewers
791+ showNotes: false,
792+
793+ // Global override for autoplaying embedded media (video/audio/iframe)
794+ // - null: Media will only autoplay if data-autoplay is present
795+ // - true: All media will autoplay, regardless of individual setting
796+ // - false: No media will autoplay, regardless of individual setting
797+ autoPlayMedia: null,
798+
799+ // Global override for preloading lazy-loaded iframes
800+ // - null: Iframes with data-src AND data-preload will be loaded when within
801+ // the viewDistance, iframes with only data-src will be loaded when visible
802+ // - true: All iframes with data-src will be loaded when within the viewDistance
803+ // - false: All iframes with data-src will be loaded only when visible
804+ preloadIframes: null,
805+
806+ // Number of milliseconds between automatically proceeding to the
807+ // next slide, disabled when set to 0, this value can be overwritten
808+ // by using a data-autoslide attribute on your slides
809+ autoSlide: 0,
810+
811+ // Stop auto-sliding after user input
812+ autoSlideStoppable: true,
813+
814+ // Use this method for navigation when auto-sliding
815+ autoSlideMethod: Reveal.navigateNext,
816+
817+ // Specify the average time in seconds that you think you will spend
818+ // presenting each slide. This is used to show a pacing timer in the
819+ // speaker view
820+ defaultTiming: 120,
821+
822+ // Enable slide navigation via mouse wheel
823+ mouseWheel: false,
824+
825+ // Hide cursor if inactive
826+ hideInactiveCursor: true,
827+
828+ // Time before the cursor is hidden (in ms)
829+ hideCursorTime: 5000,
830+
831+ // Hides the address bar on mobile devices
832+ hideAddressBar: true,
833+
834+ // Opens links in an iframe preview overlay
835+ // Add `data-preview-link` and `data-preview-link="false"` to customise each link
836+ // individually
837+ previewLinks: false,
838+
839+ // Transition style
840+ transition: 'slide', // none/fade/slide/convex/concave/zoom
841+
842+ // Transition speed
843+ transitionSpeed: 'default', // default/fast/slow
844+
845+ // Transition style for full page slide backgrounds
846+ backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
847+
848+ // Number of slides away from the current that are visible
849+ viewDistance: 3,
850+
851+ // Parallax background image
852+ parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'"
853+
854+ // Parallax background size
855+ parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px"
856+
857+ // Number of pixels to move the parallax background per slide
858+ // - Calculated automatically unless specified
859+ // - Set to 0 to disable movement along an axis
860+ parallaxBackgroundHorizontal: null,
861+ parallaxBackgroundVertical: null,
862+
863+ // The display mode that will be used to show slides
864+ display: 'block',
865+
866+ pdfSeparateFragments: false,
867+
868+ defaultTiming: null,
869+
870+ markdown: {
871+ smartypants: true
872+ },
873+
874+
875+ dependencies: [
876+ { src: 'plugin/markdown/marked.js' },
877+ { src: 'plugin/markdown/markdown.js' },
878+ { src: 'plugin/zoom-js/zoom.js', async: true },
879+ { src: 'plugin/notes/notes.js', async: true },
880+ { src: 'plugin/highlight/highlight.js', async: true }
881+ ]
882+
883+ });
884+ </script>
885+</body>
886+
887+</html>
bower.jsonnew file+24
@@ -0,0 +1,24 @@
1+{
2+ "name": "reveal.js",
3+ "version": "3.8.0",
4+ "main": [
5+ "js/reveal.js",
6+ "css/reveal.css"
7+ ],
8+ "homepage": "http://revealjs.com",
9+ "license": "MIT",
10+ "description": "The HTML Presentation Framework",
11+ "authors": [
12+ "Hakim El Hattab <hakim.elhattab@gmail.com>"
13+ ],
14+ "repository": {
15+ "type": "git",
16+ "url": "git://github.com/hakimel/reveal.js.git"
17+ },
18+ "ignore": [
19+ "**/.*",
20+ "node_modules",
21+ "bower_components",
22+ "test"
23+ ]
24+}
css/print/paper.cssnew file+203
@@ -0,0 +1,203 @@
1+/* Default Print Stylesheet Template
2+ by Rob Glazebrook of CSSnewbie.com
3+ Last Updated: June 4, 2008
4+
5+ Feel free (nay, compelled) to edit, append, and
6+ manipulate this file as you see fit. */
7+
8+
9+@media print {
10+
11+ /* SECTION 1: Set default width, margin, float, and
12+ background. This prevents elements from extending
13+ beyond the edge of the printed page, and prevents
14+ unnecessary background images from printing */
15+ html {
16+ background: #fff;
17+ width: auto;
18+ height: auto;
19+ overflow: visible;
20+ }
21+ body {
22+ background: #fff;
23+ font-size: 20pt;
24+ width: auto;
25+ height: auto;
26+ border: 0;
27+ margin: 0 5%;
28+ padding: 0;
29+ overflow: visible;
30+ float: none !important;
31+ }
32+
33+ /* SECTION 2: Remove any elements not needed in print.
34+ This would include navigation, ads, sidebars, etc. */
35+ .nestedarrow,
36+ .controls,
37+ .fork-reveal,
38+ .share-reveal,
39+ .state-background,
40+ .reveal .progress,
41+ .reveal .backgrounds,
42+ .reveal .slide-number {
43+ display: none !important;
44+ }
45+
46+ /* SECTION 3: Set body font face, size, and color.
47+ Consider using a serif font for readability. */
48+ body, p, td, li, div {
49+ font-size: 20pt!important;
50+ font-family: Georgia, "Times New Roman", Times, serif !important;
51+ color: #000;
52+ }
53+
54+ /* SECTION 4: Set heading font face, sizes, and color.
55+ Differentiate your headings from your body text.
56+ Perhaps use a large sans-serif for distinction. */
57+ h1,h2,h3,h4,h5,h6 {
58+ color: #000!important;
59+ height: auto;
60+ line-height: normal;
61+ font-family: Georgia, "Times New Roman", Times, serif !important;
62+ text-shadow: 0 0 0 #000 !important;
63+ text-align: left;
64+ letter-spacing: normal;
65+ }
66+ /* Need to reduce the size of the fonts for printing */
67+ h1 { font-size: 28pt !important; }
68+ h2 { font-size: 24pt !important; }
69+ h3 { font-size: 22pt !important; }
70+ h4 { font-size: 22pt !important; font-variant: small-caps; }
71+ h5 { font-size: 21pt !important; }
72+ h6 { font-size: 20pt !important; font-style: italic; }
73+
74+ /* SECTION 5: Make hyperlinks more usable.
75+ Ensure links are underlined, and consider appending
76+ the URL to the end of the link for usability. */
77+ a:link,
78+ a:visited {
79+ color: #000 !important;
80+ font-weight: bold;
81+ text-decoration: underline;
82+ }
83+ /*
84+ .reveal a:link:after,
85+ .reveal a:visited:after {
86+ content: " (" attr(href) ") ";
87+ color: #222 !important;
88+ font-size: 90%;
89+ }
90+ */
91+
92+
93+ /* SECTION 6: more reveal.js specific additions by @skypanther */
94+ ul, ol, div, p {
95+ visibility: visible;
96+ position: static;
97+ width: auto;
98+ height: auto;
99+ display: block;
100+ overflow: visible;
101+ margin: 0;
102+ text-align: left !important;
103+ }
104+ .reveal pre,
105+ .reveal table {
106+ margin-left: 0;
107+ margin-right: 0;
108+ }
109+ .reveal pre code {
110+ padding: 20px;
111+ border: 1px solid #ddd;
112+ }
113+ .reveal blockquote {
114+ margin: 20px 0;
115+ }
116+ .reveal .slides {
117+ position: static !important;
118+ width: auto !important;
119+ height: auto !important;
120+
121+ left: 0 !important;
122+ top: 0 !important;
123+ margin-left: 0 !important;
124+ margin-top: 0 !important;
125+ padding: 0 !important;
126+ zoom: 1 !important;
127+
128+ overflow: visible !important;
129+ display: block !important;
130+
131+ text-align: left !important;
132+ -webkit-perspective: none;
133+ -moz-perspective: none;
134+ -ms-perspective: none;
135+ perspective: none;
136+
137+ -webkit-perspective-origin: 50% 50%;
138+ -moz-perspective-origin: 50% 50%;
139+ -ms-perspective-origin: 50% 50%;
140+ perspective-origin: 50% 50%;
141+ }
142+ .reveal .slides section {
143+ visibility: visible !important;
144+ position: static !important;
145+ width: auto !important;
146+ height: auto !important;
147+ display: block !important;
148+ overflow: visible !important;
149+
150+ left: 0 !important;
151+ top: 0 !important;
152+ margin-left: 0 !important;
153+ margin-top: 0 !important;
154+ padding: 60px 20px !important;
155+ z-index: auto !important;
156+
157+ opacity: 1 !important;
158+
159+ page-break-after: always !important;
160+
161+ -webkit-transform-style: flat !important;
162+ -moz-transform-style: flat !important;
163+ -ms-transform-style: flat !important;
164+ transform-style: flat !important;
165+
166+ -webkit-transform: none !important;
167+ -moz-transform: none !important;
168+ -ms-transform: none !important;
169+ transform: none !important;
170+
171+ -webkit-transition: none !important;
172+ -moz-transition: none !important;
173+ -ms-transition: none !important;
174+ transition: none !important;
175+ }
176+ .reveal .slides section.stack {
177+ padding: 0 !important;
178+ }
179+ .reveal section:last-of-type {
180+ page-break-after: avoid !important;
181+ }
182+ .reveal section .fragment {
183+ opacity: 1 !important;
184+ visibility: visible !important;
185+
186+ -webkit-transform: none !important;
187+ -moz-transform: none !important;
188+ -ms-transform: none !important;
189+ transform: none !important;
190+ }
191+ .reveal section img {
192+ display: block;
193+ margin: 15px 0px;
194+ background: rgba(255,255,255,1);
195+ border: 1px solid #666;
196+ box-shadow: none;
197+ }
198+
199+ .reveal section small {
200+ font-size: 0.8em;
201+ }
202+
203+}
css/print/pdf.cssnew file+164
@@ -0,0 +1,164 @@
1+/**
2+ * This stylesheet is used to print reveal.js
3+ * presentations to PDF.
4+ *
5+ * https://github.com/hakimel/reveal.js#pdf-export
6+ */
7+
8+* {
9+ -webkit-print-color-adjust: exact;
10+}
11+
12+body {
13+ margin: 0 auto !important;
14+ border: 0;
15+ padding: 0;
16+ float: none !important;
17+ overflow: visible;
18+}
19+
20+html {
21+ width: 100%;
22+ height: 100%;
23+ overflow: visible;
24+}
25+
26+/* Remove any elements not needed in print. */
27+.nestedarrow,
28+.reveal .controls,
29+.reveal .progress,
30+.reveal .playback,
31+.reveal.overview,
32+.fork-reveal,
33+.share-reveal,
34+.state-background {
35+ display: none !important;
36+}
37+
38+h1, h2, h3, h4, h5, h6 {
39+ text-shadow: 0 0 0 #000 !important;
40+}
41+
42+.reveal pre code {
43+ overflow: hidden !important;
44+ font-family: Courier, 'Courier New', monospace !important;
45+}
46+
47+ul, ol, div, p {
48+ visibility: visible;
49+ position: static;
50+ width: auto;
51+ height: auto;
52+ display: block;
53+ overflow: visible;
54+ margin: auto;
55+}
56+.reveal {
57+ width: auto !important;
58+ height: auto !important;
59+ overflow: hidden !important;
60+}
61+.reveal .slides {
62+ position: static;
63+ width: 100% !important;
64+ height: auto !important;
65+ zoom: 1 !important;
66+
67+ left: auto;
68+ top: auto;
69+ margin: 0 !important;
70+ padding: 0 !important;
71+
72+ overflow: visible;
73+ display: block;
74+
75+ perspective: none;
76+ perspective-origin: 50% 50%;
77+}
78+
79+.reveal .slides .pdf-page {
80+ position: relative;
81+ overflow: hidden;
82+ z-index: 1;
83+
84+ page-break-after: always;
85+}
86+
87+.reveal .slides section {
88+ visibility: visible !important;
89+ display: block !important;
90+ position: absolute !important;
91+
92+ margin: 0 !important;
93+ padding: 0 !important;
94+ box-sizing: border-box !important;
95+ min-height: 1px;
96+
97+ opacity: 1 !important;
98+
99+ transform-style: flat !important;
100+ transform: none !important;
101+}
102+
103+.reveal section.stack {
104+ position: relative !important;
105+ margin: 0 !important;
106+ padding: 0 !important;
107+ page-break-after: avoid !important;
108+ height: auto !important;
109+ min-height: auto !important;
110+}
111+
112+.reveal img {
113+ box-shadow: none;
114+}
115+
116+.reveal .roll {
117+ overflow: visible;
118+ line-height: 1em;
119+}
120+
121+/* Slide backgrounds are placed inside of their slide when exporting to PDF */
122+.reveal .slide-background {
123+ display: block !important;
124+ position: absolute;
125+ top: 0;
126+ left: 0;
127+ width: 100%;
128+ height: 100%;
129+ z-index: auto !important;
130+}
131+
132+/* Display slide speaker notes when 'showNotes' is enabled */
133+.reveal.show-notes {
134+ max-width: none;
135+ max-height: none;
136+}
137+.reveal .speaker-notes-pdf {
138+ display: block;
139+ width: 100%;
140+ height: auto;
141+ max-height: none;
142+ top: auto;
143+ right: auto;
144+ bottom: auto;
145+ left: auto;
146+ z-index: 100;
147+}
148+
149+/* Layout option which makes notes appear on a separate page */
150+.reveal .speaker-notes-pdf[data-layout="separate-page"] {
151+ position: relative;
152+ color: inherit;
153+ background-color: transparent;
154+ padding: 20px;
155+ page-break-after: always;
156+ border: 0;
157+}
158+
159+/* Display slide numbers when 'slideNumber' is enabled */
160+.reveal .slide-number-pdf {
161+ display: block;
162+ position: absolute;
163+ font-size: 14px;
164+}
css/reset.cssnew file+30
@@ -0,0 +1,30 @@
1+/* http://meyerweb.com/eric/tools/css/reset/
2+ v4.0 | 20180602
3+ License: none (public domain)
4+*/
5+
6+html, body, div, span, applet, object, iframe,
7+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+a, abbr, acronym, address, big, cite, code,
9+del, dfn, em, img, ins, kbd, q, s, samp,
10+small, strike, strong, sub, sup, tt, var,
11+b, u, i, center,
12+dl, dt, dd, ol, ul, li,
13+fieldset, form, label, legend,
14+table, caption, tbody, tfoot, thead, tr, th, td,
15+article, aside, canvas, details, embed,
16+figure, figcaption, footer, header, hgroup,
17+main, menu, nav, output, ruby, section, summary,
18+time, mark, audio, video {
19+ margin: 0;
20+ padding: 0;
21+ border: 0;
22+ font-size: 100%;
23+ font: inherit;
24+ vertical-align: baseline;
25+}
26+/* HTML5 display-role reset for older browsers */
27+article, aside, details, figcaption, figure,
28+footer, header, hgroup, main, menu, nav, section {
29+ display: block;
30+}
css/reveal.cssnew file+1606
@@ -0,0 +1,1606 @@
1+/*!
2+ * reveal.js
3+ * http://revealjs.com
4+ * MIT licensed
5+ *
6+ * Copyright (C) 2019 Hakim El Hattab, http://hakim.se
7+ */
8+/*********************************************
9+ * GLOBAL STYLES
10+ *********************************************/
11+html {
12+ width: 100%;
13+ height: 100%;
14+ height: 100vh;
15+ height: calc( var(--vh, 1vh) * 100);
16+ overflow: hidden; }
17+
18+body {
19+ height: 100%;
20+ overflow: hidden;
21+ position: relative;
22+ line-height: 1;
23+ margin: 0;
24+ background-color: #fff;
25+ color: #000; }
26+
27+/*********************************************
28+ * VIEW FRAGMENTS
29+ *********************************************/
30+.reveal .slides section .fragment {
31+ opacity: 0;
32+ visibility: hidden;
33+ transition: all .2s ease; }
34+ .reveal .slides section .fragment.visible {
35+ opacity: 1;
36+ visibility: inherit; }
37+
38+.reveal .slides section .fragment.grow {
39+ opacity: 1;
40+ visibility: inherit; }
41+ .reveal .slides section .fragment.grow.visible {
42+ -webkit-transform: scale(1.3);
43+ transform: scale(1.3); }
44+
45+.reveal .slides section .fragment.shrink {
46+ opacity: 1;
47+ visibility: inherit; }
48+ .reveal .slides section .fragment.shrink.visible {
49+ -webkit-transform: scale(0.7);
50+ transform: scale(0.7); }
51+
52+.reveal .slides section .fragment.zoom-in {
53+ -webkit-transform: scale(0.1);
54+ transform: scale(0.1); }
55+ .reveal .slides section .fragment.zoom-in.visible {
56+ -webkit-transform: none;
57+ transform: none; }
58+
59+.reveal .slides section .fragment.fade-out {
60+ opacity: 1;
61+ visibility: inherit; }
62+ .reveal .slides section .fragment.fade-out.visible {
63+ opacity: 0;
64+ visibility: hidden; }
65+
66+.reveal .slides section .fragment.semi-fade-out {
67+ opacity: 1;
68+ visibility: inherit; }
69+ .reveal .slides section .fragment.semi-fade-out.visible {
70+ opacity: 0.5;
71+ visibility: inherit; }
72+
73+.reveal .slides section .fragment.strike {
74+ opacity: 1;
75+ visibility: inherit; }
76+ .reveal .slides section .fragment.strike.visible {
77+ text-decoration: line-through; }
78+
79+.reveal .slides section .fragment.fade-up {
80+ -webkit-transform: translate(0, 20%);
81+ transform: translate(0, 20%); }
82+ .reveal .slides section .fragment.fade-up.visible {
83+ -webkit-transform: translate(0, 0);
84+ transform: translate(0, 0); }
85+
86+.reveal .slides section .fragment.fade-down {
87+ -webkit-transform: translate(0, -20%);
88+ transform: translate(0, -20%); }
89+ .reveal .slides section .fragment.fade-down.visible {
90+ -webkit-transform: translate(0, 0);
91+ transform: translate(0, 0); }
92+
93+.reveal .slides section .fragment.fade-right {
94+ -webkit-transform: translate(-20%, 0);
95+ transform: translate(-20%, 0); }
96+ .reveal .slides section .fragment.fade-right.visible {
97+ -webkit-transform: translate(0, 0);
98+ transform: translate(0, 0); }
99+
100+.reveal .slides section .fragment.fade-left {
101+ -webkit-transform: translate(20%, 0);
102+ transform: translate(20%, 0); }
103+ .reveal .slides section .fragment.fade-left.visible {
104+ -webkit-transform: translate(0, 0);
105+ transform: translate(0, 0); }
106+
107+.reveal .slides section .fragment.fade-in-then-out,
108+.reveal .slides section .fragment.current-visible {
109+ opacity: 0;
110+ visibility: hidden; }
111+ .reveal .slides section .fragment.fade-in-then-out.current-fragment,
112+ .reveal .slides section .fragment.current-visible.current-fragment {
113+ opacity: 1;
114+ visibility: inherit; }
115+
116+.reveal .slides section .fragment.fade-in-then-semi-out {
117+ opacity: 0;
118+ visibility: hidden; }
119+ .reveal .slides section .fragment.fade-in-then-semi-out.visible {
120+ opacity: 0.5;
121+ visibility: inherit; }
122+ .reveal .slides section .fragment.fade-in-then-semi-out.current-fragment {
123+ opacity: 1;
124+ visibility: inherit; }
125+
126+.reveal .slides section .fragment.highlight-red,
127+.reveal .slides section .fragment.highlight-current-red,
128+.reveal .slides section .fragment.highlight-green,
129+.reveal .slides section .fragment.highlight-current-green,
130+.reveal .slides section .fragment.highlight-blue,
131+.reveal .slides section .fragment.highlight-current-blue {
132+ opacity: 1;
133+ visibility: inherit; }
134+
135+.reveal .slides section .fragment.highlight-red.visible {
136+ color: #ff2c2d; }
137+
138+.reveal .slides section .fragment.highlight-green.visible {
139+ color: #17ff2e; }
140+
141+.reveal .slides section .fragment.highlight-blue.visible {
142+ color: #1b91ff; }
143+
144+.reveal .slides section .fragment.highlight-current-red.current-fragment {
145+ color: #ff2c2d; }
146+
147+.reveal .slides section .fragment.highlight-current-green.current-fragment {
148+ color: #17ff2e; }
149+
150+.reveal .slides section .fragment.highlight-current-blue.current-fragment {
151+ color: #1b91ff; }
152+
153+/*********************************************
154+ * DEFAULT ELEMENT STYLES
155+ *********************************************/
156+/* Fixes issue in Chrome where italic fonts did not appear when printing to PDF */
157+.reveal:after {
158+ content: '';
159+ font-style: italic; }
160+
161+.reveal iframe {
162+ z-index: 1; }
163+
164+/** Prevents layering issues in certain browser/transition combinations */
165+.reveal a {
166+ position: relative; }
167+
168+.reveal .stretch {
169+ max-width: none;
170+ max-height: none; }
171+
172+.reveal pre.stretch code {
173+ height: 100%;
174+ max-height: 100%;
175+ box-sizing: border-box; }
176+
177+/*********************************************
178+ * CONTROLS
179+ *********************************************/
180+@-webkit-keyframes bounce-right {
181+ 0%, 10%, 25%, 40%, 50% {
182+ -webkit-transform: translateX(0);
183+ transform: translateX(0); }
184+ 20% {
185+ -webkit-transform: translateX(10px);
186+ transform: translateX(10px); }
187+ 30% {
188+ -webkit-transform: translateX(-5px);
189+ transform: translateX(-5px); } }
190+@keyframes bounce-right {
191+ 0%, 10%, 25%, 40%, 50% {
192+ -webkit-transform: translateX(0);
193+ transform: translateX(0); }
194+ 20% {
195+ -webkit-transform: translateX(10px);
196+ transform: translateX(10px); }
197+ 30% {
198+ -webkit-transform: translateX(-5px);
199+ transform: translateX(-5px); } }
200+
201+@-webkit-keyframes bounce-down {
202+ 0%, 10%, 25%, 40%, 50% {
203+ -webkit-transform: translateY(0);
204+ transform: translateY(0); }
205+ 20% {
206+ -webkit-transform: translateY(10px);
207+ transform: translateY(10px); }
208+ 30% {
209+ -webkit-transform: translateY(-5px);
210+ transform: translateY(-5px); } }
211+
212+@keyframes bounce-down {
213+ 0%, 10%, 25%, 40%, 50% {
214+ -webkit-transform: translateY(0);
215+ transform: translateY(0); }
216+ 20% {
217+ -webkit-transform: translateY(10px);
218+ transform: translateY(10px); }
219+ 30% {
220+ -webkit-transform: translateY(-5px);
221+ transform: translateY(-5px); } }
222+
223+.reveal .controls {
224+ display: none;
225+ position: absolute;
226+ top: auto;
227+ bottom: 12px;
228+ right: 12px;
229+ left: auto;
230+ z-index: 11;
231+ color: #000;
232+ pointer-events: none;
233+ font-size: 10px; }
234+ .reveal .controls button {
235+ position: absolute;
236+ padding: 0;
237+ background-color: transparent;
238+ border: 0;
239+ outline: 0;
240+ cursor: pointer;
241+ color: currentColor;
242+ -webkit-transform: scale(0.9999);
243+ transform: scale(0.9999);
244+ transition: color 0.2s ease, opacity 0.2s ease, -webkit-transform 0.2s ease;
245+ transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
246+ z-index: 2;
247+ pointer-events: auto;
248+ font-size: inherit;
249+ visibility: hidden;
250+ opacity: 0;
251+ -webkit-appearance: none;
252+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
253+ .reveal .controls .controls-arrow:before,
254+ .reveal .controls .controls-arrow:after {
255+ content: '';
256+ position: absolute;
257+ top: 0;
258+ left: 0;
259+ width: 2.6em;
260+ height: 0.5em;
261+ border-radius: 0.25em;
262+ background-color: currentColor;
263+ transition: all 0.15s ease, background-color 0.8s ease;
264+ -webkit-transform-origin: 0.2em 50%;
265+ transform-origin: 0.2em 50%;
266+ will-change: transform; }
267+ .reveal .controls .controls-arrow {
268+ position: relative;
269+ width: 3.6em;
270+ height: 3.6em; }
271+ .reveal .controls .controls-arrow:before {
272+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(45deg);
273+ transform: translateX(0.5em) translateY(1.55em) rotate(45deg); }
274+ .reveal .controls .controls-arrow:after {
275+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);
276+ transform: translateX(0.5em) translateY(1.55em) rotate(-45deg); }
277+ .reveal .controls .controls-arrow:hover:before {
278+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(40deg);
279+ transform: translateX(0.5em) translateY(1.55em) rotate(40deg); }
280+ .reveal .controls .controls-arrow:hover:after {
281+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-40deg);
282+ transform: translateX(0.5em) translateY(1.55em) rotate(-40deg); }
283+ .reveal .controls .controls-arrow:active:before {
284+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(36deg);
285+ transform: translateX(0.5em) translateY(1.55em) rotate(36deg); }
286+ .reveal .controls .controls-arrow:active:after {
287+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-36deg);
288+ transform: translateX(0.5em) translateY(1.55em) rotate(-36deg); }
289+ .reveal .controls .navigate-left {
290+ right: 6.4em;
291+ bottom: 3.2em;
292+ -webkit-transform: translateX(-10px);
293+ transform: translateX(-10px); }
294+ .reveal .controls .navigate-right {
295+ right: 0;
296+ bottom: 3.2em;
297+ -webkit-transform: translateX(10px);
298+ transform: translateX(10px); }
299+ .reveal .controls .navigate-right .controls-arrow {
300+ -webkit-transform: rotate(180deg);
301+ transform: rotate(180deg); }
302+ .reveal .controls .navigate-right.highlight {
303+ -webkit-animation: bounce-right 2s 50 both ease-out;
304+ animation: bounce-right 2s 50 both ease-out; }
305+ .reveal .controls .navigate-up {
306+ right: 3.2em;
307+ bottom: 6.4em;
308+ -webkit-transform: translateY(-10px);
309+ transform: translateY(-10px); }
310+ .reveal .controls .navigate-up .controls-arrow {
311+ -webkit-transform: rotate(90deg);
312+ transform: rotate(90deg); }
313+ .reveal .controls .navigate-down {
314+ right: 3.2em;
315+ bottom: -1.4em;
316+ padding-bottom: 1.4em;
317+ -webkit-transform: translateY(10px);
318+ transform: translateY(10px); }
319+ .reveal .controls .navigate-down .controls-arrow {
320+ -webkit-transform: rotate(-90deg);
321+ transform: rotate(-90deg); }
322+ .reveal .controls .navigate-down.highlight {
323+ -webkit-animation: bounce-down 2s 50 both ease-out;
324+ animation: bounce-down 2s 50 both ease-out; }
325+ .reveal .controls[data-controls-back-arrows="faded"] .navigate-left.enabled,
326+ .reveal .controls[data-controls-back-arrows="faded"] .navigate-up.enabled {
327+ opacity: 0.3; }
328+ .reveal .controls[data-controls-back-arrows="faded"] .navigate-left.enabled:hover,
329+ .reveal .controls[data-controls-back-arrows="faded"] .navigate-up.enabled:hover {
330+ opacity: 1; }
331+ .reveal .controls[data-controls-back-arrows="hidden"] .navigate-left.enabled,
332+ .reveal .controls[data-controls-back-arrows="hidden"] .navigate-up.enabled {
333+ opacity: 0;
334+ visibility: hidden; }
335+ .reveal .controls .enabled {
336+ visibility: visible;
337+ opacity: 0.9;
338+ cursor: pointer;
339+ -webkit-transform: none;
340+ transform: none; }
341+ .reveal .controls .enabled.fragmented {
342+ opacity: 0.5; }
343+ .reveal .controls .enabled:hover,
344+ .reveal .controls .enabled.fragmented:hover {
345+ opacity: 1; }
346+
347+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-up,
348+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-down {
349+ display: none; }
350+
351+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-left,
352+.reveal:not(.has-vertical-slides) .controls .navigate-left {
353+ bottom: 1.4em;
354+ right: 5.5em; }
355+
356+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-right,
357+.reveal:not(.has-vertical-slides) .controls .navigate-right {
358+ bottom: 1.4em;
359+ right: 0.5em; }
360+
361+.reveal:not(.has-horizontal-slides) .controls .navigate-up {
362+ right: 1.4em;
363+ bottom: 5em; }
364+
365+.reveal:not(.has-horizontal-slides) .controls .navigate-down {
366+ right: 1.4em;
367+ bottom: 0.5em; }
368+
369+.reveal.has-dark-background .controls {
370+ color: #fff; }
371+
372+.reveal.has-light-background .controls {
373+ color: #000; }
374+
375+.reveal.no-hover .controls .controls-arrow:hover:before,
376+.reveal.no-hover .controls .controls-arrow:active:before {
377+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(45deg);
378+ transform: translateX(0.5em) translateY(1.55em) rotate(45deg); }
379+
380+.reveal.no-hover .controls .controls-arrow:hover:after,
381+.reveal.no-hover .controls .controls-arrow:active:after {
382+ -webkit-transform: translateX(0.5em) translateY(1.55em) rotate(-45deg);
383+ transform: translateX(0.5em) translateY(1.55em) rotate(-45deg); }
384+
385+@media screen and (min-width: 500px) {
386+ .reveal .controls[data-controls-layout="edges"] {
387+ top: 0;
388+ right: 0;
389+ bottom: 0;
390+ left: 0; }
391+ .reveal .controls[data-controls-layout="edges"] .navigate-left,
392+ .reveal .controls[data-controls-layout="edges"] .navigate-right,
393+ .reveal .controls[data-controls-layout="edges"] .navigate-up,
394+ .reveal .controls[data-controls-layout="edges"] .navigate-down {
395+ bottom: auto;
396+ right: auto; }
397+ .reveal .controls[data-controls-layout="edges"] .navigate-left {
398+ top: 50%;
399+ left: 0.8em;
400+ margin-top: -1.8em; }
401+ .reveal .controls[data-controls-layout="edges"] .navigate-right {
402+ top: 50%;
403+ right: 0.8em;
404+ margin-top: -1.8em; }
405+ .reveal .controls[data-controls-layout="edges"] .navigate-up {
406+ top: 0.8em;
407+ left: 50%;
408+ margin-left: -1.8em; }
409+ .reveal .controls[data-controls-layout="edges"] .navigate-down {
410+ bottom: -0.3em;
411+ left: 50%;
412+ margin-left: -1.8em; } }
413+
414+/*********************************************
415+ * PROGRESS BAR
416+ *********************************************/
417+.reveal .progress {
418+ position: absolute;
419+ display: none;
420+ height: 3px;
421+ width: 100%;
422+ bottom: 0;
423+ left: 0;
424+ z-index: 10;
425+ background-color: rgba(0, 0, 0, 0.2);
426+ color: #fff; }
427+
428+.reveal .progress:after {
429+ content: '';
430+ display: block;
431+ position: absolute;
432+ height: 10px;
433+ width: 100%;
434+ top: -10px; }
435+
436+.reveal .progress span {
437+ display: block;
438+ height: 100%;
439+ width: 0px;
440+ background-color: currentColor;
441+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
442+
443+/*********************************************
444+ * SLIDE NUMBER
445+ *********************************************/
446+.reveal .slide-number {
447+ position: absolute;
448+ display: block;
449+ right: 8px;
450+ bottom: 8px;
451+ z-index: 31;
452+ font-family: Helvetica, sans-serif;
453+ font-size: 12px;
454+ line-height: 1;
455+ color: #fff;
456+ background-color: rgba(0, 0, 0, 0.4);
457+ padding: 5px; }
458+
459+.reveal .slide-number a {
460+ color: currentColor; }
461+
462+.reveal .slide-number-delimiter {
463+ margin: 0 3px; }
464+
465+/*********************************************
466+ * SLIDES
467+ *********************************************/
468+.reveal {
469+ position: relative;
470+ width: 100%;
471+ height: 100%;
472+ overflow: hidden;
473+ -ms-touch-action: pinch-zoom;
474+ touch-action: pinch-zoom; }
475+
476+.reveal .slides {
477+ position: absolute;
478+ width: 100%;
479+ height: 100%;
480+ top: 0;
481+ right: 0;
482+ bottom: 0;
483+ left: 0;
484+ margin: auto;
485+ pointer-events: none;
486+ overflow: visible;
487+ z-index: 1;
488+ text-align: center;
489+ -webkit-perspective: 600px;
490+ perspective: 600px;
491+ -webkit-perspective-origin: 50% 40%;
492+ perspective-origin: 50% 40%; }
493+
494+.reveal .slides > section {
495+ -webkit-perspective: 600px;
496+ perspective: 600px; }
497+
498+.reveal .slides > section,
499+.reveal .slides > section > section {
500+ display: none;
501+ position: absolute;
502+ width: 100%;
503+ padding: 20px 0px;
504+ pointer-events: auto;
505+ z-index: 10;
506+ -webkit-transform-style: flat;
507+ transform-style: flat;
508+ transition: -webkit-transform-origin 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), -webkit-transform 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), visibility 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), opacity 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
509+ transition: transform-origin 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), transform 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), visibility 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985), opacity 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
510+
511+/* Global transition speed settings */
512+.reveal[data-transition-speed="fast"] .slides section {
513+ transition-duration: 400ms; }
514+
515+.reveal[data-transition-speed="slow"] .slides section {
516+ transition-duration: 1200ms; }
517+
518+/* Slide-specific transition speed overrides */
519+.reveal .slides section[data-transition-speed="fast"] {
520+ transition-duration: 400ms; }
521+
522+.reveal .slides section[data-transition-speed="slow"] {
523+ transition-duration: 1200ms; }
524+
525+.reveal .slides > section.stack {
526+ padding-top: 0;
527+ padding-bottom: 0;
528+ pointer-events: none;
529+ height: 100%; }
530+
531+.reveal .slides > section.present,
532+.reveal .slides > section > section.present {
533+ display: block;
534+ z-index: 11;
535+ opacity: 1; }
536+
537+.reveal .slides > section:empty,
538+.reveal .slides > section > section:empty,
539+.reveal .slides > section[data-background-interactive],
540+.reveal .slides > section > section[data-background-interactive] {
541+ pointer-events: none; }
542+
543+.reveal.center,
544+.reveal.center .slides,
545+.reveal.center .slides section {
546+ min-height: 0 !important; }
547+
548+/* Don't allow interaction with invisible slides */
549+.reveal .slides > section.future,
550+.reveal .slides > section > section.future,
551+.reveal .slides > section.past,
552+.reveal .slides > section > section.past {
553+ pointer-events: none; }
554+
555+.reveal.overview .slides > section,
556+.reveal.overview .slides > section > section {
557+ pointer-events: auto; }
558+
559+.reveal .slides > section.past,
560+.reveal .slides > section.future,
561+.reveal .slides > section > section.past,
562+.reveal .slides > section > section.future {
563+ opacity: 0; }
564+
565+/*********************************************
566+ * Mixins for readability of transitions
567+ *********************************************/
568+/*********************************************
569+ * SLIDE TRANSITION
570+ * Aliased 'linear' for backwards compatibility
571+ *********************************************/
572+.reveal.slide section {
573+ -webkit-backface-visibility: hidden;
574+ backface-visibility: hidden; }
575+
576+.reveal .slides > section[data-transition=slide].past,
577+.reveal .slides > section[data-transition~=slide-out].past,
578+.reveal.slide .slides > section:not([data-transition]).past {
579+ -webkit-transform: translate(-150%, 0);
580+ transform: translate(-150%, 0); }
581+
582+.reveal .slides > section[data-transition=slide].future,
583+.reveal .slides > section[data-transition~=slide-in].future,
584+.reveal.slide .slides > section:not([data-transition]).future {
585+ -webkit-transform: translate(150%, 0);
586+ transform: translate(150%, 0); }
587+
588+.reveal .slides > section > section[data-transition=slide].past,
589+.reveal .slides > section > section[data-transition~=slide-out].past,
590+.reveal.slide .slides > section > section:not([data-transition]).past {
591+ -webkit-transform: translate(0, -150%);
592+ transform: translate(0, -150%); }
593+
594+.reveal .slides > section > section[data-transition=slide].future,
595+.reveal .slides > section > section[data-transition~=slide-in].future,
596+.reveal.slide .slides > section > section:not([data-transition]).future {
597+ -webkit-transform: translate(0, 150%);
598+ transform: translate(0, 150%); }
599+
600+.reveal.linear section {
601+ -webkit-backface-visibility: hidden;
602+ backface-visibility: hidden; }
603+
604+.reveal .slides > section[data-transition=linear].past,
605+.reveal .slides > section[data-transition~=linear-out].past,
606+.reveal.linear .slides > section:not([data-transition]).past {
607+ -webkit-transform: translate(-150%, 0);
608+ transform: translate(-150%, 0); }
609+
610+.reveal .slides > section[data-transition=linear].future,
611+.reveal .slides > section[data-transition~=linear-in].future,
612+.reveal.linear .slides > section:not([data-transition]).future {
613+ -webkit-transform: translate(150%, 0);
614+ transform: translate(150%, 0); }
615+
616+.reveal .slides > section > section[data-transition=linear].past,
617+.reveal .slides > section > section[data-transition~=linear-out].past,
618+.reveal.linear .slides > section > section:not([data-transition]).past {
619+ -webkit-transform: translate(0, -150%);
620+ transform: translate(0, -150%); }
621+
622+.reveal .slides > section > section[data-transition=linear].future,
623+.reveal .slides > section > section[data-transition~=linear-in].future,
624+.reveal.linear .slides > section > section:not([data-transition]).future {
625+ -webkit-transform: translate(0, 150%);
626+ transform: translate(0, 150%); }
627+
628+/*********************************************
629+ * CONVEX TRANSITION
630+ * Aliased 'default' for backwards compatibility
631+ *********************************************/
632+.reveal .slides section[data-transition=default].stack,
633+.reveal.default .slides section.stack {
634+ -webkit-transform-style: preserve-3d;
635+ transform-style: preserve-3d; }
636+
637+.reveal .slides > section[data-transition=default].past,
638+.reveal .slides > section[data-transition~=default-out].past,
639+.reveal.default .slides > section:not([data-transition]).past {
640+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
641+ transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0); }
642+
643+.reveal .slides > section[data-transition=default].future,
644+.reveal .slides > section[data-transition~=default-in].future,
645+.reveal.default .slides > section:not([data-transition]).future {
646+ -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
647+ transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0); }
648+
649+.reveal .slides > section > section[data-transition=default].past,
650+.reveal .slides > section > section[data-transition~=default-out].past,
651+.reveal.default .slides > section > section:not([data-transition]).past {
652+ -webkit-transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);
653+ transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0); }
654+
655+.reveal .slides > section > section[data-transition=default].future,
656+.reveal .slides > section > section[data-transition~=default-in].future,
657+.reveal.default .slides > section > section:not([data-transition]).future {
658+ -webkit-transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);
659+ transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0); }
660+
661+.reveal .slides section[data-transition=convex].stack,
662+.reveal.convex .slides section.stack {
663+ -webkit-transform-style: preserve-3d;
664+ transform-style: preserve-3d; }
665+
666+.reveal .slides > section[data-transition=convex].past,
667+.reveal .slides > section[data-transition~=convex-out].past,
668+.reveal.convex .slides > section:not([data-transition]).past {
669+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
670+ transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0); }
671+
672+.reveal .slides > section[data-transition=convex].future,
673+.reveal .slides > section[data-transition~=convex-in].future,
674+.reveal.convex .slides > section:not([data-transition]).future {
675+ -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
676+ transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0); }
677+
678+.reveal .slides > section > section[data-transition=convex].past,
679+.reveal .slides > section > section[data-transition~=convex-out].past,
680+.reveal.convex .slides > section > section:not([data-transition]).past {
681+ -webkit-transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);
682+ transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0); }
683+
684+.reveal .slides > section > section[data-transition=convex].future,
685+.reveal .slides > section > section[data-transition~=convex-in].future,
686+.reveal.convex .slides > section > section:not([data-transition]).future {
687+ -webkit-transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);
688+ transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0); }
689+
690+/*********************************************
691+ * CONCAVE TRANSITION
692+ *********************************************/
693+.reveal .slides section[data-transition=concave].stack,
694+.reveal.concave .slides section.stack {
695+ -webkit-transform-style: preserve-3d;
696+ transform-style: preserve-3d; }
697+
698+.reveal .slides > section[data-transition=concave].past,
699+.reveal .slides > section[data-transition~=concave-out].past,
700+.reveal.concave .slides > section:not([data-transition]).past {
701+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
702+ transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0); }
703+
704+.reveal .slides > section[data-transition=concave].future,
705+.reveal .slides > section[data-transition~=concave-in].future,
706+.reveal.concave .slides > section:not([data-transition]).future {
707+ -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
708+ transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0); }
709+
710+.reveal .slides > section > section[data-transition=concave].past,
711+.reveal .slides > section > section[data-transition~=concave-out].past,
712+.reveal.concave .slides > section > section:not([data-transition]).past {
713+ -webkit-transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
714+ transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0); }
715+
716+.reveal .slides > section > section[data-transition=concave].future,
717+.reveal .slides > section > section[data-transition~=concave-in].future,
718+.reveal.concave .slides > section > section:not([data-transition]).future {
719+ -webkit-transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
720+ transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0); }
721+
722+/*********************************************
723+ * ZOOM TRANSITION
724+ *********************************************/
725+.reveal .slides section[data-transition=zoom],
726+.reveal.zoom .slides section:not([data-transition]) {
727+ transition-timing-function: ease; }
728+
729+.reveal .slides > section[data-transition=zoom].past,
730+.reveal .slides > section[data-transition~=zoom-out].past,
731+.reveal.zoom .slides > section:not([data-transition]).past {
732+ visibility: hidden;
733+ -webkit-transform: scale(16);
734+ transform: scale(16); }
735+
736+.reveal .slides > section[data-transition=zoom].future,
737+.reveal .slides > section[data-transition~=zoom-in].future,
738+.reveal.zoom .slides > section:not([data-transition]).future {
739+ visibility: hidden;
740+ -webkit-transform: scale(0.2);
741+ transform: scale(0.2); }
742+
743+.reveal .slides > section > section[data-transition=zoom].past,
744+.reveal .slides > section > section[data-transition~=zoom-out].past,
745+.reveal.zoom .slides > section > section:not([data-transition]).past {
746+ -webkit-transform: scale(16);
747+ transform: scale(16); }
748+
749+.reveal .slides > section > section[data-transition=zoom].future,
750+.reveal .slides > section > section[data-transition~=zoom-in].future,
751+.reveal.zoom .slides > section > section:not([data-transition]).future {
752+ -webkit-transform: scale(0.2);
753+ transform: scale(0.2); }
754+
755+/*********************************************
756+ * CUBE TRANSITION
757+ *
758+ * WARNING:
759+ * this is deprecated and will be removed in a
760+ * future version.
761+ *********************************************/
762+.reveal.cube .slides {
763+ -webkit-perspective: 1300px;
764+ perspective: 1300px; }
765+
766+.reveal.cube .slides section {
767+ padding: 30px;
768+ min-height: 700px;
769+ -webkit-backface-visibility: hidden;
770+ backface-visibility: hidden;
771+ box-sizing: border-box;
772+ -webkit-transform-style: preserve-3d;
773+ transform-style: preserve-3d; }
774+
775+.reveal.center.cube .slides section {
776+ min-height: 0; }
777+
778+.reveal.cube .slides section:not(.stack):before {
779+ content: '';
780+ position: absolute;
781+ display: block;
782+ width: 100%;
783+ height: 100%;
784+ left: 0;
785+ top: 0;
786+ background: rgba(0, 0, 0, 0.1);
787+ border-radius: 4px;
788+ -webkit-transform: translateZ(-20px);
789+ transform: translateZ(-20px); }
790+
791+.reveal.cube .slides section:not(.stack):after {
792+ content: '';
793+ position: absolute;
794+ display: block;
795+ width: 90%;
796+ height: 30px;
797+ left: 5%;
798+ bottom: 0;
799+ background: none;
800+ z-index: 1;
801+ border-radius: 4px;
802+ box-shadow: 0px 95px 25px rgba(0, 0, 0, 0.2);
803+ -webkit-transform: translateZ(-90px) rotateX(65deg);
804+ transform: translateZ(-90px) rotateX(65deg); }
805+
806+.reveal.cube .slides > section.stack {
807+ padding: 0;
808+ background: none; }
809+
810+.reveal.cube .slides > section.past {
811+ -webkit-transform-origin: 100% 0%;
812+ transform-origin: 100% 0%;
813+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg);
814+ transform: translate3d(-100%, 0, 0) rotateY(-90deg); }
815+
816+.reveal.cube .slides > section.future {
817+ -webkit-transform-origin: 0% 0%;
818+ transform-origin: 0% 0%;
819+ -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg);
820+ transform: translate3d(100%, 0, 0) rotateY(90deg); }
821+
822+.reveal.cube .slides > section > section.past {
823+ -webkit-transform-origin: 0% 100%;
824+ transform-origin: 0% 100%;
825+ -webkit-transform: translate3d(0, -100%, 0) rotateX(90deg);
826+ transform: translate3d(0, -100%, 0) rotateX(90deg); }
827+
828+.reveal.cube .slides > section > section.future {
829+ -webkit-transform-origin: 0% 0%;
830+ transform-origin: 0% 0%;
831+ -webkit-transform: translate3d(0, 100%, 0) rotateX(-90deg);
832+ transform: translate3d(0, 100%, 0) rotateX(-90deg); }
833+
834+/*********************************************
835+ * PAGE TRANSITION
836+ *
837+ * WARNING:
838+ * this is deprecated and will be removed in a
839+ * future version.
840+ *********************************************/
841+.reveal.page .slides {
842+ -webkit-perspective-origin: 0% 50%;
843+ perspective-origin: 0% 50%;
844+ -webkit-perspective: 3000px;
845+ perspective: 3000px; }
846+
847+.reveal.page .slides section {
848+ padding: 30px;
849+ min-height: 700px;
850+ box-sizing: border-box;
851+ -webkit-transform-style: preserve-3d;
852+ transform-style: preserve-3d; }
853+
854+.reveal.page .slides section.past {
855+ z-index: 12; }
856+
857+.reveal.page .slides section:not(.stack):before {
858+ content: '';
859+ position: absolute;
860+ display: block;
861+ width: 100%;
862+ height: 100%;
863+ left: 0;
864+ top: 0;
865+ background: rgba(0, 0, 0, 0.1);
866+ -webkit-transform: translateZ(-20px);
867+ transform: translateZ(-20px); }
868+
869+.reveal.page .slides section:not(.stack):after {
870+ content: '';
871+ position: absolute;
872+ display: block;
873+ width: 90%;
874+ height: 30px;
875+ left: 5%;
876+ bottom: 0;
877+ background: none;
878+ z-index: 1;
879+ border-radius: 4px;
880+ box-shadow: 0px 95px 25px rgba(0, 0, 0, 0.2);
881+ -webkit-transform: translateZ(-90px) rotateX(65deg); }
882+
883+.reveal.page .slides > section.stack {
884+ padding: 0;
885+ background: none; }
886+
887+.reveal.page .slides > section.past {
888+ -webkit-transform-origin: 0% 0%;
889+ transform-origin: 0% 0%;
890+ -webkit-transform: translate3d(-40%, 0, 0) rotateY(-80deg);
891+ transform: translate3d(-40%, 0, 0) rotateY(-80deg); }
892+
893+.reveal.page .slides > section.future {
894+ -webkit-transform-origin: 100% 0%;
895+ transform-origin: 100% 0%;
896+ -webkit-transform: translate3d(0, 0, 0);
897+ transform: translate3d(0, 0, 0); }
898+
899+.reveal.page .slides > section > section.past {
900+ -webkit-transform-origin: 0% 0%;
901+ transform-origin: 0% 0%;
902+ -webkit-transform: translate3d(0, -40%, 0) rotateX(80deg);
903+ transform: translate3d(0, -40%, 0) rotateX(80deg); }
904+
905+.reveal.page .slides > section > section.future {
906+ -webkit-transform-origin: 0% 100%;
907+ transform-origin: 0% 100%;
908+ -webkit-transform: translate3d(0, 0, 0);
909+ transform: translate3d(0, 0, 0); }
910+
911+/*********************************************
912+ * FADE TRANSITION
913+ *********************************************/
914+.reveal .slides section[data-transition=fade],
915+.reveal.fade .slides section:not([data-transition]),
916+.reveal.fade .slides > section > section:not([data-transition]) {
917+ -webkit-transform: none;
918+ transform: none;
919+ transition: opacity 0.5s; }
920+
921+.reveal.fade.overview .slides section,
922+.reveal.fade.overview .slides > section > section {
923+ transition: none; }
924+
925+/*********************************************
926+ * NO TRANSITION
927+ *********************************************/
928+.reveal .slides section[data-transition=none],
929+.reveal.none .slides section:not([data-transition]) {
930+ -webkit-transform: none;
931+ transform: none;
932+ transition: none; }
933+
934+/*********************************************
935+ * PAUSED MODE
936+ *********************************************/
937+.reveal .pause-overlay {
938+ position: absolute;
939+ top: 0;
940+ left: 0;
941+ width: 100%;
942+ height: 100%;
943+ background: black;
944+ visibility: hidden;
945+ opacity: 0;
946+ z-index: 100;
947+ transition: all 1s ease; }
948+
949+.reveal .pause-overlay .resume-button {
950+ position: absolute;
951+ bottom: 20px;
952+ right: 20px;
953+ color: #ccc;
954+ border-radius: 2px;
955+ padding: 6px 14px;
956+ border: 2px solid #ccc;
957+ font-size: 16px;
958+ background: transparent;
959+ cursor: pointer; }
960+ .reveal .pause-overlay .resume-button:hover {
961+ color: #fff;
962+ border-color: #fff; }
963+
964+.reveal.paused .pause-overlay {
965+ visibility: visible;
966+ opacity: 1; }
967+
968+/*********************************************
969+ * FALLBACK
970+ *********************************************/
971+.no-transforms {
972+ overflow-y: auto; }
973+
974+.no-transforms .reveal {
975+ overflow: visible; }
976+
977+.no-transforms .reveal .slides {
978+ position: relative;
979+ width: 80%;
980+ max-width: 1280px;
981+ height: auto;
982+ top: 0;
983+ margin: 0 auto;
984+ text-align: center; }
985+
986+.no-transforms .reveal .controls,
987+.no-transforms .reveal .progress {
988+ display: none; }
989+
990+.no-transforms .reveal .slides section {
991+ display: block;
992+ opacity: 1;
993+ position: relative;
994+ height: auto;
995+ min-height: 0;
996+ top: 0;
997+ left: 0;
998+ margin: 10vh 0;
999+ margin: 70px 0;
1000+ -webkit-transform: none;
1001+ transform: none; }
1002+
1003+.reveal .no-transition,
1004+.reveal .no-transition * {
1005+ transition: none !important; }
1006+
1007+/*********************************************
1008+ * PER-SLIDE BACKGROUNDS
1009+ *********************************************/
1010+.reveal .backgrounds {
1011+ position: absolute;
1012+ width: 100%;
1013+ height: 100%;
1014+ top: 0;
1015+ left: 0;
1016+ -webkit-perspective: 600px;
1017+ perspective: 600px; }
1018+
1019+.reveal .slide-background {
1020+ display: none;
1021+ position: absolute;
1022+ width: 100%;
1023+ height: 100%;
1024+ opacity: 0;
1025+ visibility: hidden;
1026+ overflow: hidden;
1027+ background-color: rgba(0, 0, 0, 0);
1028+ transition: all 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
1029+
1030+.reveal .slide-background-content {
1031+ position: absolute;
1032+ width: 100%;
1033+ height: 100%;
1034+ background-position: 50% 50%;
1035+ background-repeat: no-repeat;
1036+ background-size: cover; }
1037+
1038+.reveal .slide-background.stack {
1039+ display: block; }
1040+
1041+.reveal .slide-background.present {
1042+ opacity: 1;
1043+ visibility: visible;
1044+ z-index: 2; }
1045+
1046+.print-pdf .reveal .slide-background {
1047+ opacity: 1 !important;
1048+ visibility: visible !important; }
1049+
1050+/* Video backgrounds */
1051+.reveal .slide-background video {
1052+ position: absolute;
1053+ width: 100%;
1054+ height: 100%;
1055+ max-width: none;
1056+ max-height: none;
1057+ top: 0;
1058+ left: 0;
1059+ -o-object-fit: cover;
1060+ object-fit: cover; }
1061+
1062+.reveal .slide-background[data-background-size="contain"] video {
1063+ -o-object-fit: contain;
1064+ object-fit: contain; }
1065+
1066+/* Immediate transition style */
1067+.reveal[data-background-transition=none] > .backgrounds .slide-background,
1068+.reveal > .backgrounds .slide-background[data-background-transition=none] {
1069+ transition: none; }
1070+
1071+/* Slide */
1072+.reveal[data-background-transition=slide] > .backgrounds .slide-background,
1073+.reveal > .backgrounds .slide-background[data-background-transition=slide] {
1074+ opacity: 1;
1075+ -webkit-backface-visibility: hidden;
1076+ backface-visibility: hidden; }
1077+
1078+.reveal[data-background-transition=slide] > .backgrounds .slide-background.past,
1079+.reveal > .backgrounds .slide-background.past[data-background-transition=slide] {
1080+ -webkit-transform: translate(-100%, 0);
1081+ transform: translate(-100%, 0); }
1082+
1083+.reveal[data-background-transition=slide] > .backgrounds .slide-background.future,
1084+.reveal > .backgrounds .slide-background.future[data-background-transition=slide] {
1085+ -webkit-transform: translate(100%, 0);
1086+ transform: translate(100%, 0); }
1087+
1088+.reveal[data-background-transition=slide] > .backgrounds .slide-background > .slide-background.past,
1089+.reveal > .backgrounds .slide-background > .slide-background.past[data-background-transition=slide] {
1090+ -webkit-transform: translate(0, -100%);
1091+ transform: translate(0, -100%); }
1092+
1093+.reveal[data-background-transition=slide] > .backgrounds .slide-background > .slide-background.future,
1094+.reveal > .backgrounds .slide-background > .slide-background.future[data-background-transition=slide] {
1095+ -webkit-transform: translate(0, 100%);
1096+ transform: translate(0, 100%); }
1097+
1098+/* Convex */
1099+.reveal[data-background-transition=convex] > .backgrounds .slide-background.past,
1100+.reveal > .backgrounds .slide-background.past[data-background-transition=convex] {
1101+ opacity: 0;
1102+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
1103+ transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0); }
1104+
1105+.reveal[data-background-transition=convex] > .backgrounds .slide-background.future,
1106+.reveal > .backgrounds .slide-background.future[data-background-transition=convex] {
1107+ opacity: 0;
1108+ -webkit-transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
1109+ transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0); }
1110+
1111+.reveal[data-background-transition=convex] > .backgrounds .slide-background > .slide-background.past,
1112+.reveal > .backgrounds .slide-background > .slide-background.past[data-background-transition=convex] {
1113+ opacity: 0;
1114+ -webkit-transform: translate3d(0, -100%, 0) rotateX(90deg) translate3d(0, -100%, 0);
1115+ transform: translate3d(0, -100%, 0) rotateX(90deg) translate3d(0, -100%, 0); }
1116+
1117+.reveal[data-background-transition=convex] > .backgrounds .slide-background > .slide-background.future,
1118+.reveal > .backgrounds .slide-background > .slide-background.future[data-background-transition=convex] {
1119+ opacity: 0;
1120+ -webkit-transform: translate3d(0, 100%, 0) rotateX(-90deg) translate3d(0, 100%, 0);
1121+ transform: translate3d(0, 100%, 0) rotateX(-90deg) translate3d(0, 100%, 0); }
1122+
1123+/* Concave */
1124+.reveal[data-background-transition=concave] > .backgrounds .slide-background.past,
1125+.reveal > .backgrounds .slide-background.past[data-background-transition=concave] {
1126+ opacity: 0;
1127+ -webkit-transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
1128+ transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0); }
1129+
1130+.reveal[data-background-transition=concave] > .backgrounds .slide-background.future,
1131+.reveal > .backgrounds .slide-background.future[data-background-transition=concave] {
1132+ opacity: 0;
1133+ -webkit-transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
1134+ transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0); }
1135+
1136+.reveal[data-background-transition=concave] > .backgrounds .slide-background > .slide-background.past,
1137+.reveal > .backgrounds .slide-background > .slide-background.past[data-background-transition=concave] {
1138+ opacity: 0;
1139+ -webkit-transform: translate3d(0, -100%, 0) rotateX(-90deg) translate3d(0, -100%, 0);
1140+ transform: translate3d(0, -100%, 0) rotateX(-90deg) translate3d(0, -100%, 0); }
1141+
1142+.reveal[data-background-transition=concave] > .backgrounds .slide-background > .slide-background.future,
1143+.reveal > .backgrounds .slide-background > .slide-background.future[data-background-transition=concave] {
1144+ opacity: 0;
1145+ -webkit-transform: translate3d(0, 100%, 0) rotateX(90deg) translate3d(0, 100%, 0);
1146+ transform: translate3d(0, 100%, 0) rotateX(90deg) translate3d(0, 100%, 0); }
1147+
1148+/* Zoom */
1149+.reveal[data-background-transition=zoom] > .backgrounds .slide-background,
1150+.reveal > .backgrounds .slide-background[data-background-transition=zoom] {
1151+ transition-timing-function: ease; }
1152+
1153+.reveal[data-background-transition=zoom] > .backgrounds .slide-background.past,
1154+.reveal > .backgrounds .slide-background.past[data-background-transition=zoom] {
1155+ opacity: 0;
1156+ visibility: hidden;
1157+ -webkit-transform: scale(16);
1158+ transform: scale(16); }
1159+
1160+.reveal[data-background-transition=zoom] > .backgrounds .slide-background.future,
1161+.reveal > .backgrounds .slide-background.future[data-background-transition=zoom] {
1162+ opacity: 0;
1163+ visibility: hidden;
1164+ -webkit-transform: scale(0.2);
1165+ transform: scale(0.2); }
1166+
1167+.reveal[data-background-transition=zoom] > .backgrounds .slide-background > .slide-background.past,
1168+.reveal > .backgrounds .slide-background > .slide-background.past[data-background-transition=zoom] {
1169+ opacity: 0;
1170+ visibility: hidden;
1171+ -webkit-transform: scale(16);
1172+ transform: scale(16); }
1173+
1174+.reveal[data-background-transition=zoom] > .backgrounds .slide-background > .slide-background.future,
1175+.reveal > .backgrounds .slide-background > .slide-background.future[data-background-transition=zoom] {
1176+ opacity: 0;
1177+ visibility: hidden;
1178+ -webkit-transform: scale(0.2);
1179+ transform: scale(0.2); }
1180+
1181+/* Global transition speed settings */
1182+.reveal[data-transition-speed="fast"] > .backgrounds .slide-background {
1183+ transition-duration: 400ms; }
1184+
1185+.reveal[data-transition-speed="slow"] > .backgrounds .slide-background {
1186+ transition-duration: 1200ms; }
1187+
1188+/*********************************************
1189+ * OVERVIEW
1190+ *********************************************/
1191+.reveal.overview {
1192+ -webkit-perspective-origin: 50% 50%;
1193+ perspective-origin: 50% 50%;
1194+ -webkit-perspective: 700px;
1195+ perspective: 700px; }
1196+ .reveal.overview .slides {
1197+ -moz-transform-style: preserve-3d; }
1198+ .reveal.overview .slides section {
1199+ height: 100%;
1200+ top: 0 !important;
1201+ opacity: 1 !important;
1202+ overflow: hidden;
1203+ visibility: visible !important;
1204+ cursor: pointer;
1205+ box-sizing: border-box; }
1206+ .reveal.overview .slides section:hover,
1207+ .reveal.overview .slides section.present {
1208+ outline: 10px solid rgba(150, 150, 150, 0.4);
1209+ outline-offset: 10px; }
1210+ .reveal.overview .slides section .fragment {
1211+ opacity: 1;
1212+ transition: none; }
1213+ .reveal.overview .slides section:after,
1214+ .reveal.overview .slides section:before {
1215+ display: none !important; }
1216+ .reveal.overview .slides > section.stack {
1217+ padding: 0;
1218+ top: 0 !important;
1219+ background: none;
1220+ outline: none;
1221+ overflow: visible; }
1222+ .reveal.overview .backgrounds {
1223+ -webkit-perspective: inherit;
1224+ perspective: inherit;
1225+ -moz-transform-style: preserve-3d; }
1226+ .reveal.overview .backgrounds .slide-background {
1227+ opacity: 1;
1228+ visibility: visible;
1229+ outline: 10px solid rgba(150, 150, 150, 0.1);
1230+ outline-offset: 10px; }
1231+ .reveal.overview .backgrounds .slide-background.stack {
1232+ overflow: visible; }
1233+
1234+.reveal.overview .slides section,
1235+.reveal.overview-deactivating .slides section {
1236+ transition: none; }
1237+
1238+.reveal.overview .backgrounds .slide-background,
1239+.reveal.overview-deactivating .backgrounds .slide-background {
1240+ transition: none; }
1241+
1242+/*********************************************
1243+ * RTL SUPPORT
1244+ *********************************************/
1245+.reveal.rtl .slides,
1246+.reveal.rtl .slides h1,
1247+.reveal.rtl .slides h2,
1248+.reveal.rtl .slides h3,
1249+.reveal.rtl .slides h4,
1250+.reveal.rtl .slides h5,
1251+.reveal.rtl .slides h6 {
1252+ direction: rtl;
1253+ font-family: sans-serif; }
1254+
1255+.reveal.rtl pre,
1256+.reveal.rtl code {
1257+ direction: ltr; }
1258+
1259+.reveal.rtl ol,
1260+.reveal.rtl ul {
1261+ text-align: right; }
1262+
1263+.reveal.rtl .progress span {
1264+ float: right; }
1265+
1266+/*********************************************
1267+ * PARALLAX BACKGROUND
1268+ *********************************************/
1269+.reveal.has-parallax-background .backgrounds {
1270+ transition: all 0.8s ease; }
1271+
1272+/* Global transition speed settings */
1273+.reveal.has-parallax-background[data-transition-speed="fast"] .backgrounds {
1274+ transition-duration: 400ms; }
1275+
1276+.reveal.has-parallax-background[data-transition-speed="slow"] .backgrounds {
1277+ transition-duration: 1200ms; }
1278+
1279+/*********************************************
1280+ * OVERLAY FOR LINK PREVIEWS AND HELP
1281+ *********************************************/
1282+.reveal > .overlay {
1283+ position: absolute;
1284+ top: 0;
1285+ left: 0;
1286+ width: 100%;
1287+ height: 100%;
1288+ z-index: 1000;
1289+ background: rgba(0, 0, 0, 0.9);
1290+ opacity: 0;
1291+ visibility: hidden;
1292+ transition: all 0.3s ease; }
1293+
1294+.reveal > .overlay.visible {
1295+ opacity: 1;
1296+ visibility: visible; }
1297+
1298+.reveal > .overlay .spinner {
1299+ position: absolute;
1300+ display: block;
1301+ top: 50%;
1302+ left: 50%;
1303+ width: 32px;
1304+ height: 32px;
1305+ margin: -16px 0 0 -16px;
1306+ z-index: 10;
1307+ background-image: url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);
1308+ visibility: visible;
1309+ opacity: 0.6;
1310+ transition: all 0.3s ease; }
1311+
1312+.reveal > .overlay header {
1313+ position: absolute;
1314+ left: 0;
1315+ top: 0;
1316+ width: 100%;
1317+ height: 40px;
1318+ z-index: 2;
1319+ border-bottom: 1px solid #222; }
1320+
1321+.reveal > .overlay header a {
1322+ display: inline-block;
1323+ width: 40px;
1324+ height: 40px;
1325+ line-height: 36px;
1326+ padding: 0 10px;
1327+ float: right;
1328+ opacity: 0.6;
1329+ box-sizing: border-box; }
1330+
1331+.reveal > .overlay header a:hover {
1332+ opacity: 1; }
1333+
1334+.reveal > .overlay header a .icon {
1335+ display: inline-block;
1336+ width: 20px;
1337+ height: 20px;
1338+ background-position: 50% 50%;
1339+ background-size: 100%;
1340+ background-repeat: no-repeat; }
1341+
1342+.reveal > .overlay header a.close .icon {
1343+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC); }
1344+
1345+.reveal > .overlay header a.external .icon {
1346+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==); }
1347+
1348+.reveal > .overlay .viewport {
1349+ position: absolute;
1350+ display: -webkit-box;
1351+ display: -ms-flexbox;
1352+ display: flex;
1353+ top: 40px;
1354+ right: 0;
1355+ bottom: 0;
1356+ left: 0; }
1357+
1358+.reveal > .overlay.overlay-preview .viewport iframe {
1359+ width: 100%;
1360+ height: 100%;
1361+ max-width: 100%;
1362+ max-height: 100%;
1363+ border: 0;
1364+ opacity: 0;
1365+ visibility: hidden;
1366+ transition: all 0.3s ease; }
1367+
1368+.reveal > .overlay.overlay-preview.loaded .viewport iframe {
1369+ opacity: 1;
1370+ visibility: visible; }
1371+
1372+.reveal > .overlay.overlay-preview.loaded .viewport-inner {
1373+ position: absolute;
1374+ z-index: -1;
1375+ left: 0;
1376+ top: 45%;
1377+ width: 100%;
1378+ text-align: center;
1379+ letter-spacing: normal; }
1380+
1381+.reveal > .overlay.overlay-preview .x-frame-error {
1382+ opacity: 0;
1383+ transition: opacity 0.3s ease 0.3s; }
1384+
1385+.reveal > .overlay.overlay-preview.loaded .x-frame-error {
1386+ opacity: 1; }
1387+
1388+.reveal > .overlay.overlay-preview.loaded .spinner {
1389+ opacity: 0;
1390+ visibility: hidden;
1391+ -webkit-transform: scale(0.2);
1392+ transform: scale(0.2); }
1393+
1394+.reveal > .overlay.overlay-help .viewport {
1395+ overflow: auto;
1396+ color: #fff; }
1397+
1398+.reveal > .overlay.overlay-help .viewport .viewport-inner {
1399+ width: 600px;
1400+ margin: auto;
1401+ padding: 20px 20px 80px 20px;
1402+ text-align: center;
1403+ letter-spacing: normal; }
1404+
1405+.reveal > .overlay.overlay-help .viewport .viewport-inner .title {
1406+ font-size: 20px; }
1407+
1408+.reveal > .overlay.overlay-help .viewport .viewport-inner table {
1409+ border: 1px solid #fff;
1410+ border-collapse: collapse;
1411+ font-size: 16px; }
1412+
1413+.reveal > .overlay.overlay-help .viewport .viewport-inner table th,
1414+.reveal > .overlay.overlay-help .viewport .viewport-inner table td {
1415+ width: 200px;
1416+ padding: 14px;
1417+ border: 1px solid #fff;
1418+ vertical-align: middle; }
1419+
1420+.reveal > .overlay.overlay-help .viewport .viewport-inner table th {
1421+ padding-top: 20px;
1422+ padding-bottom: 20px; }
1423+
1424+/*********************************************
1425+ * PLAYBACK COMPONENT
1426+ *********************************************/
1427+.reveal .playback {
1428+ position: absolute;
1429+ left: 15px;
1430+ bottom: 20px;
1431+ z-index: 30;
1432+ cursor: pointer;
1433+ transition: all 400ms ease;
1434+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
1435+
1436+.reveal.overview .playback {
1437+ opacity: 0;
1438+ visibility: hidden; }
1439+
1440+/*********************************************
1441+ * CODE HIGHLGIHTING
1442+ *********************************************/
1443+.reveal .hljs table {
1444+ margin: initial; }
1445+
1446+.reveal .hljs-ln-code,
1447+.reveal .hljs-ln-numbers {
1448+ padding: 0;
1449+ border: 0; }
1450+
1451+.reveal .hljs-ln-numbers {
1452+ opacity: 0.6;
1453+ padding-right: 0.75em;
1454+ text-align: right;
1455+ vertical-align: top; }
1456+
1457+.reveal .hljs.has-highlights tr:not(.highlight-line) {
1458+ opacity: 0.4; }
1459+
1460+.reveal .hljs:not(:first-child).fragment {
1461+ position: absolute;
1462+ top: 0;
1463+ left: 0;
1464+ width: 100%;
1465+ box-sizing: border-box; }
1466+
1467+/*********************************************
1468+ * ROLLING LINKS
1469+ *********************************************/
1470+.reveal .roll {
1471+ display: inline-block;
1472+ line-height: 1.2;
1473+ overflow: hidden;
1474+ vertical-align: top;
1475+ -webkit-perspective: 400px;
1476+ perspective: 400px;
1477+ -webkit-perspective-origin: 50% 50%;
1478+ perspective-origin: 50% 50%; }
1479+
1480+.reveal .roll:hover {
1481+ background: none;
1482+ text-shadow: none; }
1483+
1484+.reveal .roll span {
1485+ display: block;
1486+ position: relative;
1487+ padding: 0 2px;
1488+ pointer-events: none;
1489+ transition: all 400ms ease;
1490+ -webkit-transform-origin: 50% 0%;
1491+ transform-origin: 50% 0%;
1492+ -webkit-transform-style: preserve-3d;
1493+ transform-style: preserve-3d;
1494+ -webkit-backface-visibility: hidden;
1495+ backface-visibility: hidden; }
1496+
1497+.reveal .roll:hover span {
1498+ background: rgba(0, 0, 0, 0.5);
1499+ -webkit-transform: translate3d(0px, 0px, -45px) rotateX(90deg);
1500+ transform: translate3d(0px, 0px, -45px) rotateX(90deg); }
1501+
1502+.reveal .roll span:after {
1503+ content: attr(data-title);
1504+ display: block;
1505+ position: absolute;
1506+ left: 0;
1507+ top: 0;
1508+ padding: 0 2px;
1509+ -webkit-backface-visibility: hidden;
1510+ backface-visibility: hidden;
1511+ -webkit-transform-origin: 50% 0%;
1512+ transform-origin: 50% 0%;
1513+ -webkit-transform: translate3d(0px, 110%, 0px) rotateX(-90deg);
1514+ transform: translate3d(0px, 110%, 0px) rotateX(-90deg); }
1515+
1516+/*********************************************
1517+ * SPEAKER NOTES
1518+ *********************************************/
1519+.reveal aside.notes {
1520+ display: none; }
1521+
1522+.reveal .speaker-notes {
1523+ display: none;
1524+ position: absolute;
1525+ width: 33.3333333333%;
1526+ height: 100%;
1527+ top: 0;
1528+ left: 100%;
1529+ padding: 14px 18px 14px 18px;
1530+ z-index: 1;
1531+ font-size: 18px;
1532+ line-height: 1.4;
1533+ border: 1px solid rgba(0, 0, 0, 0.05);
1534+ color: #222;
1535+ background-color: #f5f5f5;
1536+ overflow: auto;
1537+ box-sizing: border-box;
1538+ text-align: left;
1539+ font-family: Helvetica, sans-serif;
1540+ -webkit-overflow-scrolling: touch; }
1541+ .reveal .speaker-notes .notes-placeholder {
1542+ color: #ccc;
1543+ font-style: italic; }
1544+ .reveal .speaker-notes:focus {
1545+ outline: none; }
1546+ .reveal .speaker-notes:before {
1547+ content: 'Speaker notes';
1548+ display: block;
1549+ margin-bottom: 10px;
1550+ opacity: 0.5; }
1551+
1552+.reveal.show-notes {
1553+ max-width: 75%;
1554+ overflow: visible; }
1555+
1556+.reveal.show-notes .speaker-notes {
1557+ display: block; }
1558+
1559+@media screen and (min-width: 1600px) {
1560+ .reveal .speaker-notes {
1561+ font-size: 20px; } }
1562+
1563+@media screen and (max-width: 1024px) {
1564+ .reveal.show-notes {
1565+ border-left: 0;
1566+ max-width: none;
1567+ max-height: 70%;
1568+ max-height: 70vh;
1569+ overflow: visible; }
1570+ .reveal.show-notes .speaker-notes {
1571+ top: 100%;
1572+ left: 0;
1573+ width: 100%;
1574+ height: 42.8571428571%;
1575+ height: 30vh;
1576+ border: 0; } }
1577+
1578+@media screen and (max-width: 600px) {
1579+ .reveal.show-notes {
1580+ max-height: 60%;
1581+ max-height: 60vh; }
1582+ .reveal.show-notes .speaker-notes {
1583+ top: 100%;
1584+ height: 66.6666666667%;
1585+ height: 40vh; }
1586+ .reveal .speaker-notes {
1587+ font-size: 14px; } }
1588+
1589+/*********************************************
1590+ * ZOOM PLUGIN
1591+ *********************************************/
1592+.zoomed .reveal *,
1593+.zoomed .reveal *:before,
1594+.zoomed .reveal *:after {
1595+ -webkit-backface-visibility: visible !important;
1596+ backface-visibility: visible !important; }
1597+
1598+.zoomed .reveal .progress,
1599+.zoomed .reveal .controls {
1600+ opacity: 0; }
1601+
1602+.zoomed .reveal .roll span {
1603+ background: none; }
1604+
1605+.zoomed .reveal .roll span:after {
1606+ visibility: hidden; }
css/reveal.scssnew file+1777
@@ -0,0 +1,1777 @@
1+/*!
2+ * reveal.js
3+ * http://revealjs.com
4+ * MIT licensed
5+ *
6+ * Copyright (C) 2019 Hakim El Hattab, http://hakim.se
7+ */
8+
9+
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+
14+html {
15+ width: 100%;
16+ height: 100%;
17+ height: 100vh;
18+ height: calc( var(--vh, 1vh) * 100 );
19+ overflow: hidden;
20+}
21+
22+body {
23+ height: 100%;
24+ overflow: hidden;
25+ position: relative;
26+ line-height: 1;
27+ margin: 0;
28+
29+ background-color: #fff;
30+ color: #000;
31+}
32+
33+
34+/*********************************************
35+ * VIEW FRAGMENTS
36+ *********************************************/
37+
38+.reveal .slides section .fragment {
39+ opacity: 0;
40+ visibility: hidden;
41+ transition: all .2s ease;
42+
43+ &.visible {
44+ opacity: 1;
45+ visibility: inherit;
46+ }
47+}
48+
49+.reveal .slides section .fragment.grow {
50+ opacity: 1;
51+ visibility: inherit;
52+
53+ &.visible {
54+ transform: scale( 1.3 );
55+ }
56+}
57+
58+.reveal .slides section .fragment.shrink {
59+ opacity: 1;
60+ visibility: inherit;
61+
62+ &.visible {
63+ transform: scale( 0.7 );
64+ }
65+}
66+
67+.reveal .slides section .fragment.zoom-in {
68+ transform: scale( 0.1 );
69+
70+ &.visible {
71+ transform: none;
72+ }
73+}
74+
75+.reveal .slides section .fragment.fade-out {
76+ opacity: 1;
77+ visibility: inherit;
78+
79+ &.visible {
80+ opacity: 0;
81+ visibility: hidden;
82+ }
83+}
84+
85+.reveal .slides section .fragment.semi-fade-out {
86+ opacity: 1;
87+ visibility: inherit;
88+
89+ &.visible {
90+ opacity: 0.5;
91+ visibility: inherit;
92+ }
93+}
94+
95+.reveal .slides section .fragment.strike {
96+ opacity: 1;
97+ visibility: inherit;
98+
99+ &.visible {
100+ text-decoration: line-through;
101+ }
102+}
103+
104+.reveal .slides section .fragment.fade-up {
105+ transform: translate(0, 40px);
106+
107+ &.visible {
108+ transform: translate(0, 0);
109+ }
110+}
111+
112+.reveal .slides section .fragment.fade-down {
113+ transform: translate(0, -40px);
114+
115+ &.visible {
116+ transform: translate(0, 0);
117+ }
118+}
119+
120+.reveal .slides section .fragment.fade-right {
121+ transform: translate(-40px, 0);
122+
123+ &.visible {
124+ transform: translate(0, 0);
125+ }
126+}
127+
128+.reveal .slides section .fragment.fade-left {
129+ transform: translate(40px, 0);
130+
131+ &.visible {
132+ transform: translate(0, 0);
133+ }
134+}
135+
136+.reveal .slides section .fragment.fade-in-then-out,
137+.reveal .slides section .fragment.current-visible {
138+ opacity: 0;
139+ visibility: hidden;
140+
141+ &.current-fragment {
142+ opacity: 1;
143+ visibility: inherit;
144+ }
145+}
146+
147+.reveal .slides section .fragment.fade-in-then-semi-out {
148+ opacity: 0;
149+ visibility: hidden;
150+
151+ &.visible {
152+ opacity: 0.5;
153+ visibility: inherit;
154+ }
155+
156+ &.current-fragment {
157+ opacity: 1;
158+ visibility: inherit;
159+ }
160+}
161+
162+.reveal .slides section .fragment.highlight-red,
163+.reveal .slides section .fragment.highlight-current-red,
164+.reveal .slides section .fragment.highlight-green,
165+.reveal .slides section .fragment.highlight-current-green,
166+.reveal .slides section .fragment.highlight-blue,
167+.reveal .slides section .fragment.highlight-current-blue {
168+ opacity: 1;
169+ visibility: inherit;
170+}
171+ .reveal .slides section .fragment.highlight-red.visible {
172+ color: #ff2c2d
173+ }
174+ .reveal .slides section .fragment.highlight-green.visible {
175+ color: #17ff2e;
176+ }
177+ .reveal .slides section .fragment.highlight-blue.visible {
178+ color: #1b91ff;
179+ }
180+
181+.reveal .slides section .fragment.highlight-current-red.current-fragment {
182+ color: #ff2c2d
183+}
184+.reveal .slides section .fragment.highlight-current-green.current-fragment {
185+ color: #17ff2e;
186+}
187+.reveal .slides section .fragment.highlight-current-blue.current-fragment {
188+ color: #1b91ff;
189+}
190+
191+
192+/*********************************************
193+ * DEFAULT ELEMENT STYLES
194+ *********************************************/
195+
196+/* Fixes issue in Chrome where italic fonts did not appear when printing to PDF */
197+.reveal:after {
198+ content: '';
199+ font-style: italic;
200+}
201+
202+.reveal iframe {
203+ z-index: 1;
204+}
205+
206+/** Prevents layering issues in certain browser/transition combinations */
207+.reveal a {
208+ position: relative;
209+}
210+
211+.reveal .stretch {
212+ max-width: none;
213+ max-height: none;
214+}
215+
216+.reveal pre.stretch code {
217+ height: 100%;
218+ max-height: 100%;
219+ box-sizing: border-box;
220+}
221+
222+
223+/*********************************************
224+ * CONTROLS
225+ *********************************************/
226+
227+@keyframes bounce-right {
228+ 0%, 10%, 25%, 40%, 50% {transform: translateX(0);}
229+ 20% {transform: translateX(10px);}
230+ 30% {transform: translateX(-5px);}
231+}
232+
233+@keyframes bounce-down {
234+ 0%, 10%, 25%, 40%, 50% {transform: translateY(0);}
235+ 20% {transform: translateY(10px);}
236+ 30% {transform: translateY(-5px);}
237+}
238+
239+$controlArrowSize: 3.6em;
240+$controlArrowSpacing: 1.4em;
241+$controlArrowLength: 2.6em;
242+$controlArrowThickness: 0.5em;
243+$controlsArrowAngle: 45deg;
244+$controlsArrowAngleHover: 40deg;
245+$controlsArrowAngleActive: 36deg;
246+
247+@mixin controlsArrowTransform( $angle ) {
248+ &:before {
249+ transform: translateX(($controlArrowSize - $controlArrowLength)/2) translateY(($controlArrowSize - $controlArrowThickness)/2) rotate( $angle );
250+ }
251+
252+ &:after {
253+ transform: translateX(($controlArrowSize - $controlArrowLength)/2) translateY(($controlArrowSize - $controlArrowThickness)/2) rotate( -$angle );
254+ }
255+}
256+
257+.reveal .controls {
258+ $spacing: 12px;
259+
260+ display: none;
261+ position: absolute;
262+ top: auto;
263+ bottom: $spacing;
264+ right: $spacing;
265+ left: auto;
266+ z-index: 11;
267+ color: #000;
268+ pointer-events: none;
269+ font-size: 10px;
270+
271+ button {
272+ position: absolute;
273+ padding: 0;
274+ background-color: transparent;
275+ border: 0;
276+ outline: 0;
277+ cursor: pointer;
278+ color: currentColor;
279+ transform: scale(.9999);
280+ transition: color 0.2s ease,
281+ opacity 0.2s ease,
282+ transform 0.2s ease;
283+ z-index: 2; // above slides
284+ pointer-events: auto;
285+ font-size: inherit;
286+
287+ visibility: hidden;
288+ opacity: 0;
289+
290+ -webkit-appearance: none;
291+ -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
292+ }
293+
294+ .controls-arrow:before,
295+ .controls-arrow:after {
296+ content: '';
297+ position: absolute;
298+ top: 0;
299+ left: 0;
300+ width: $controlArrowLength;
301+ height: $controlArrowThickness;
302+ border-radius: $controlArrowThickness/2;
303+ background-color: currentColor;
304+
305+ transition: all 0.15s ease, background-color 0.8s ease;
306+ transform-origin: floor(($controlArrowThickness/2)*10)/10 50%;
307+ will-change: transform;
308+ }
309+
310+ .controls-arrow {
311+ position: relative;
312+ width: $controlArrowSize;
313+ height: $controlArrowSize;
314+
315+ @include controlsArrowTransform( $controlsArrowAngle );
316+
317+ &:hover {
318+ @include controlsArrowTransform( $controlsArrowAngleHover );
319+ }
320+
321+ &:active {
322+ @include controlsArrowTransform( $controlsArrowAngleActive );
323+ }
324+ }
325+
326+ .navigate-left {
327+ right: $controlArrowSize + $controlArrowSpacing*2;
328+ bottom: $controlArrowSpacing + $controlArrowSize/2;
329+ transform: translateX( -10px );
330+ }
331+
332+ .navigate-right {
333+ right: 0;
334+ bottom: $controlArrowSpacing + $controlArrowSize/2;
335+ transform: translateX( 10px );
336+
337+ .controls-arrow {
338+ transform: rotate( 180deg );
339+ }
340+
341+ &.highlight {
342+ animation: bounce-right 2s 50 both ease-out;
343+ }
344+ }
345+
346+ .navigate-up {
347+ right: $controlArrowSpacing + $controlArrowSize/2;
348+ bottom: $controlArrowSpacing*2 + $controlArrowSize;
349+ transform: translateY( -10px );
350+
351+ .controls-arrow {
352+ transform: rotate( 90deg );
353+ }
354+ }
355+
356+ .navigate-down {
357+ right: $controlArrowSpacing + $controlArrowSize/2;
358+ bottom: -$controlArrowSpacing;
359+ padding-bottom: $controlArrowSpacing;
360+ transform: translateY( 10px );
361+
362+ .controls-arrow {
363+ transform: rotate( -90deg );
364+ }
365+
366+ &.highlight {
367+ animation: bounce-down 2s 50 both ease-out;
368+ }
369+ }
370+
371+ // Back arrow style: "faded":
372+ // Deemphasize backwards navigation arrows in favor of drawing
373+ // attention to forwards navigation
374+ &[data-controls-back-arrows="faded"] .navigate-left.enabled,
375+ &[data-controls-back-arrows="faded"] .navigate-up.enabled {
376+ opacity: 0.3;
377+
378+ &:hover {
379+ opacity: 1;
380+ }
381+ }
382+
383+ // Back arrow style: "hidden":
384+ // Never show arrows for backwards navigation
385+ &[data-controls-back-arrows="hidden"] .navigate-left.enabled,
386+ &[data-controls-back-arrows="hidden"] .navigate-up.enabled {
387+ opacity: 0;
388+ visibility: hidden;
389+ }
390+
391+ // Any control button that can be clicked is "enabled"
392+ .enabled {
393+ visibility: visible;
394+ opacity: 0.9;
395+ cursor: pointer;
396+ transform: none;
397+ }
398+
399+ // Any control button that leads to showing or hiding
400+ // a fragment
401+ .enabled.fragmented {
402+ opacity: 0.5;
403+ }
404+
405+ .enabled:hover,
406+ .enabled.fragmented:hover {
407+ opacity: 1;
408+ }
409+}
410+
411+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-up,
412+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-down {
413+ display: none;
414+}
415+
416+// Adjust the layout when there are no vertical slides
417+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-left,
418+.reveal:not(.has-vertical-slides) .controls .navigate-left {
419+ bottom: $controlArrowSpacing;
420+ right: 0.5em + $controlArrowSpacing + $controlArrowSize;
421+}
422+
423+.reveal[data-navigation-mode="linear"].has-horizontal-slides .navigate-right,
424+.reveal:not(.has-vertical-slides) .controls .navigate-right {
425+ bottom: $controlArrowSpacing;
426+ right: 0.5em;
427+}
428+
429+// Adjust the layout when there are no horizontal slides
430+.reveal:not(.has-horizontal-slides) .controls .navigate-up {
431+ right: $controlArrowSpacing;
432+ bottom: $controlArrowSpacing + $controlArrowSize;
433+}
434+.reveal:not(.has-horizontal-slides) .controls .navigate-down {
435+ right: $controlArrowSpacing;
436+ bottom: 0.5em;
437+}
438+
439+// Invert arrows based on background color
440+.reveal.has-dark-background .controls {
441+ color: #fff;
442+}
443+.reveal.has-light-background .controls {
444+ color: #000;
445+}
446+
447+// Disable active states on touch devices
448+.reveal.no-hover .controls .controls-arrow:hover,
449+.reveal.no-hover .controls .controls-arrow:active {
450+ @include controlsArrowTransform( $controlsArrowAngle );
451+}
452+
453+// Edge aligned controls layout
454+@media screen and (min-width: 500px) {
455+
456+ $spacing: 0.8em;
457+
458+ .reveal .controls[data-controls-layout="edges"] {
459+ & {
460+ top: 0;
461+ right: 0;
462+ bottom: 0;
463+ left: 0;
464+ }
465+
466+ .navigate-left,
467+ .navigate-right,
468+ .navigate-up,
469+ .navigate-down {
470+ bottom: auto;
471+ right: auto;
472+ }
473+
474+ .navigate-left {
475+ top: 50%;
476+ left: $spacing;
477+ margin-top: -$controlArrowSize/2;
478+ }
479+
480+ .navigate-right {
481+ top: 50%;
482+ right: $spacing;
483+ margin-top: -$controlArrowSize/2;
484+ }
485+
486+ .navigate-up {
487+ top: $spacing;
488+ left: 50%;
489+ margin-left: -$controlArrowSize/2;
490+ }
491+
492+ .navigate-down {
493+ bottom: $spacing - $controlArrowSpacing + 0.3em;
494+ left: 50%;
495+ margin-left: -$controlArrowSize/2;
496+ }
497+ }
498+
499+}
500+
501+
502+/*********************************************
503+ * PROGRESS BAR
504+ *********************************************/
505+
506+.reveal .progress {
507+ position: absolute;
508+ display: none;
509+ height: 3px;
510+ width: 100%;
511+ bottom: 0;
512+ left: 0;
513+ z-index: 10;
514+
515+ background-color: rgba( 0, 0, 0, 0.2 );
516+ color: #fff;
517+}
518+ .reveal .progress:after {
519+ content: '';
520+ display: block;
521+ position: absolute;
522+ height: 10px;
523+ width: 100%;
524+ top: -10px;
525+ }
526+ .reveal .progress span {
527+ display: block;
528+ height: 100%;
529+ width: 0px;
530+
531+ background-color: currentColor;
532+ transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
533+ }
534+
535+/*********************************************
536+ * SLIDE NUMBER
537+ *********************************************/
538+
539+.reveal .slide-number {
540+ position: absolute;
541+ display: block;
542+ right: 8px;
543+ bottom: 8px;
544+ z-index: 31;
545+ font-family: Helvetica, sans-serif;
546+ font-size: 12px;
547+ line-height: 1;
548+ color: #fff;
549+ background-color: rgba( 0, 0, 0, 0.4 );
550+ padding: 5px;
551+}
552+
553+.reveal .slide-number a {
554+ color: currentColor;
555+}
556+
557+.reveal .slide-number-delimiter {
558+ margin: 0 3px;
559+}
560+
561+/*********************************************
562+ * SLIDES
563+ *********************************************/
564+
565+.reveal {
566+ position: relative;
567+ width: 100%;
568+ height: 100%;
569+ overflow: hidden;
570+ touch-action: pinch-zoom;
571+}
572+
573+.reveal .slides {
574+ position: absolute;
575+ width: 100%;
576+ height: 100%;
577+ top: 0;
578+ right: 0;
579+ bottom: 0;
580+ left: 0;
581+ margin: auto;
582+ pointer-events: none;
583+
584+ overflow: visible;
585+ z-index: 1;
586+ text-align: center;
587+ perspective: 600px;
588+ perspective-origin: 50% 40%;
589+}
590+
591+.reveal .slides>section {
592+ perspective: 600px;
593+}
594+
595+.reveal .slides>section,
596+.reveal .slides>section>section {
597+ display: none;
598+ position: absolute;
599+ width: 100%;
600+ padding: 20px 0px;
601+ pointer-events: auto;
602+
603+ z-index: 10;
604+ transform-style: flat;
605+ transition: transform-origin 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985),
606+ transform 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985),
607+ visibility 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985),
608+ opacity 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
609+}
610+
611+/* Global transition speed settings */
612+.reveal[data-transition-speed="fast"] .slides section {
613+ transition-duration: 400ms;
614+}
615+.reveal[data-transition-speed="slow"] .slides section {
616+ transition-duration: 1200ms;
617+}
618+
619+/* Slide-specific transition speed overrides */
620+.reveal .slides section[data-transition-speed="fast"] {
621+ transition-duration: 400ms;
622+}
623+.reveal .slides section[data-transition-speed="slow"] {
624+ transition-duration: 1200ms;
625+}
626+
627+.reveal .slides>section.stack {
628+ padding-top: 0;
629+ padding-bottom: 0;
630+ pointer-events: none;
631+ height: 100%;
632+}
633+
634+.reveal .slides>section.present,
635+.reveal .slides>section>section.present {
636+ display: block;
637+ z-index: 11;
638+ opacity: 1;
639+}
640+
641+.reveal .slides>section:empty,
642+.reveal .slides>section>section:empty,
643+.reveal .slides>section[data-background-interactive],
644+.reveal .slides>section>section[data-background-interactive] {
645+ pointer-events: none;
646+}
647+
648+.reveal.center,
649+.reveal.center .slides,
650+.reveal.center .slides section {
651+ min-height: 0 !important;
652+}
653+
654+/* Don't allow interaction with invisible slides */
655+.reveal .slides>section.future,
656+.reveal .slides>section>section.future,
657+.reveal .slides>section.past,
658+.reveal .slides>section>section.past {
659+ pointer-events: none;
660+}
661+
662+.reveal.overview .slides>section,
663+.reveal.overview .slides>section>section {
664+ pointer-events: auto;
665+}
666+
667+.reveal .slides>section.past,
668+.reveal .slides>section.future,
669+.reveal .slides>section>section.past,
670+.reveal .slides>section>section.future {
671+ opacity: 0;
672+}
673+
674+
675+/*********************************************
676+ * Mixins for readability of transitions
677+ *********************************************/
678+
679+@mixin transition-global($style) {
680+ .reveal .slides section[data-transition=#{$style}],
681+ .reveal.#{$style} .slides section:not([data-transition]) {
682+ @content;
683+ }
684+}
685+@mixin transition-stack($style) {
686+ .reveal .slides section[data-transition=#{$style}].stack,
687+ .reveal.#{$style} .slides section.stack {
688+ @content;
689+ }
690+}
691+@mixin transition-horizontal-past($style) {
692+ .reveal .slides>section[data-transition=#{$style}].past,
693+ .reveal .slides>section[data-transition~=#{$style}-out].past,
694+ .reveal.#{$style} .slides>section:not([data-transition]).past {
695+ @content;
696+ }
697+}
698+@mixin transition-horizontal-future($style) {
699+ .reveal .slides>section[data-transition=#{$style}].future,
700+ .reveal .slides>section[data-transition~=#{$style}-in].future,
701+ .reveal.#{$style} .slides>section:not([data-transition]).future {
702+ @content;
703+ }
704+}
705+
706+@mixin transition-vertical-past($style) {
707+ .reveal .slides>section>section[data-transition=#{$style}].past,
708+ .reveal .slides>section>section[data-transition~=#{$style}-out].past,
709+ .reveal.#{$style} .slides>section>section:not([data-transition]).past {
710+ @content;
711+ }
712+}
713+@mixin transition-vertical-future($style) {
714+ .reveal .slides>section>section[data-transition=#{$style}].future,
715+ .reveal .slides>section>section[data-transition~=#{$style}-in].future,
716+ .reveal.#{$style} .slides>section>section:not([data-transition]).future {
717+ @content;
718+ }
719+}
720+
721+/*********************************************
722+ * SLIDE TRANSITION
723+ * Aliased 'linear' for backwards compatibility
724+ *********************************************/
725+
726+@each $stylename in slide, linear {
727+ .reveal.#{$stylename} section {
728+ backface-visibility: hidden;
729+ }
730+ @include transition-horizontal-past(#{$stylename}) {
731+ transform: translate(-150%, 0);
732+ }
733+ @include transition-horizontal-future(#{$stylename}) {
734+ transform: translate(150%, 0);
735+ }
736+ @include transition-vertical-past(#{$stylename}) {
737+ transform: translate(0, -150%);
738+ }
739+ @include transition-vertical-future(#{$stylename}) {
740+ transform: translate(0, 150%);
741+ }
742+}
743+
744+/*********************************************
745+ * CONVEX TRANSITION
746+ * Aliased 'default' for backwards compatibility
747+ *********************************************/
748+
749+@each $stylename in default, convex {
750+ @include transition-stack(#{$stylename}) {
751+ transform-style: preserve-3d;
752+ }
753+
754+ @include transition-horizontal-past(#{$stylename}) {
755+ transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
756+ }
757+ @include transition-horizontal-future(#{$stylename}) {
758+ transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
759+ }
760+ @include transition-vertical-past(#{$stylename}) {
761+ transform: translate3d(0, -300px, 0) rotateX(70deg) translate3d(0, -300px, 0);
762+ }
763+ @include transition-vertical-future(#{$stylename}) {
764+ transform: translate3d(0, 300px, 0) rotateX(-70deg) translate3d(0, 300px, 0);
765+ }
766+}
767+
768+/*********************************************
769+ * CONCAVE TRANSITION
770+ *********************************************/
771+
772+@include transition-stack(concave) {
773+ transform-style: preserve-3d;
774+}
775+
776+@include transition-horizontal-past(concave) {
777+ transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
778+}
779+@include transition-horizontal-future(concave) {
780+ transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
781+}
782+@include transition-vertical-past(concave) {
783+ transform: translate3d(0, -80%, 0) rotateX(-70deg) translate3d(0, -80%, 0);
784+}
785+@include transition-vertical-future(concave) {
786+ transform: translate3d(0, 80%, 0) rotateX(70deg) translate3d(0, 80%, 0);
787+}
788+
789+
790+/*********************************************
791+ * ZOOM TRANSITION
792+ *********************************************/
793+
794+@include transition-global(zoom) {
795+ transition-timing-function: ease;
796+}
797+@include transition-horizontal-past(zoom) {
798+ visibility: hidden;
799+ transform: scale(16);
800+}
801+@include transition-horizontal-future(zoom) {
802+ visibility: hidden;
803+ transform: scale(0.2);
804+}
805+@include transition-vertical-past(zoom) {
806+ transform: scale(16);
807+}
808+@include transition-vertical-future(zoom) {
809+ transform: scale(0.2);
810+}
811+
812+
813+/*********************************************
814+ * CUBE TRANSITION
815+ *
816+ * WARNING:
817+ * this is deprecated and will be removed in a
818+ * future version.
819+ *********************************************/
820+
821+.reveal.cube .slides {
822+ perspective: 1300px;
823+}
824+
825+.reveal.cube .slides section {
826+ padding: 30px;
827+ min-height: 700px;
828+ backface-visibility: hidden;
829+ box-sizing: border-box;
830+ transform-style: preserve-3d;
831+}
832+ .reveal.center.cube .slides section {
833+ min-height: 0;
834+ }
835+ .reveal.cube .slides section:not(.stack):before {
836+ content: '';
837+ position: absolute;
838+ display: block;
839+ width: 100%;
840+ height: 100%;
841+ left: 0;
842+ top: 0;
843+ background: rgba(0,0,0,0.1);
844+ border-radius: 4px;
845+ transform: translateZ( -20px );
846+ }
847+ .reveal.cube .slides section:not(.stack):after {
848+ content: '';
849+ position: absolute;
850+ display: block;
851+ width: 90%;
852+ height: 30px;
853+ left: 5%;
854+ bottom: 0;
855+ background: none;
856+ z-index: 1;
857+
858+ border-radius: 4px;
859+ box-shadow: 0px 95px 25px rgba(0,0,0,0.2);
860+ transform: translateZ(-90px) rotateX( 65deg );
861+ }
862+
863+.reveal.cube .slides>section.stack {
864+ padding: 0;
865+ background: none;
866+}
867+
868+.reveal.cube .slides>section.past {
869+ transform-origin: 100% 0%;
870+ transform: translate3d(-100%, 0, 0) rotateY(-90deg);
871+}
872+
873+.reveal.cube .slides>section.future {
874+ transform-origin: 0% 0%;
875+ transform: translate3d(100%, 0, 0) rotateY(90deg);
876+}
877+
878+.reveal.cube .slides>section>section.past {
879+ transform-origin: 0% 100%;
880+ transform: translate3d(0, -100%, 0) rotateX(90deg);
881+}
882+
883+.reveal.cube .slides>section>section.future {
884+ transform-origin: 0% 0%;
885+ transform: translate3d(0, 100%, 0) rotateX(-90deg);
886+}
887+
888+
889+/*********************************************
890+ * PAGE TRANSITION
891+ *
892+ * WARNING:
893+ * this is deprecated and will be removed in a
894+ * future version.
895+ *********************************************/
896+
897+.reveal.page .slides {
898+ perspective-origin: 0% 50%;
899+ perspective: 3000px;
900+}
901+
902+.reveal.page .slides section {
903+ padding: 30px;
904+ min-height: 700px;
905+ box-sizing: border-box;
906+ transform-style: preserve-3d;
907+}
908+ .reveal.page .slides section.past {
909+ z-index: 12;
910+ }
911+ .reveal.page .slides section:not(.stack):before {
912+ content: '';
913+ position: absolute;
914+ display: block;
915+ width: 100%;
916+ height: 100%;
917+ left: 0;
918+ top: 0;
919+ background: rgba(0,0,0,0.1);
920+ transform: translateZ( -20px );
921+ }
922+ .reveal.page .slides section:not(.stack):after {
923+ content: '';
924+ position: absolute;
925+ display: block;
926+ width: 90%;
927+ height: 30px;
928+ left: 5%;
929+ bottom: 0;
930+ background: none;
931+ z-index: 1;
932+
933+ border-radius: 4px;
934+ box-shadow: 0px 95px 25px rgba(0,0,0,0.2);
935+
936+ -webkit-transform: translateZ(-90px) rotateX( 65deg );
937+ }
938+
939+.reveal.page .slides>section.stack {
940+ padding: 0;
941+ background: none;
942+}
943+
944+.reveal.page .slides>section.past {
945+ transform-origin: 0% 0%;
946+ transform: translate3d(-40%, 0, 0) rotateY(-80deg);
947+}
948+
949+.reveal.page .slides>section.future {
950+ transform-origin: 100% 0%;
951+ transform: translate3d(0, 0, 0);
952+}
953+
954+.reveal.page .slides>section>section.past {
955+ transform-origin: 0% 0%;
956+ transform: translate3d(0, -40%, 0) rotateX(80deg);
957+}
958+
959+.reveal.page .slides>section>section.future {
960+ transform-origin: 0% 100%;
961+ transform: translate3d(0, 0, 0);
962+}
963+
964+
965+/*********************************************
966+ * FADE TRANSITION
967+ *********************************************/
968+
969+.reveal .slides section[data-transition=fade],
970+.reveal.fade .slides section:not([data-transition]),
971+.reveal.fade .slides>section>section:not([data-transition]) {
972+ transform: none;
973+ transition: opacity 0.5s;
974+}
975+
976+
977+.reveal.fade.overview .slides section,
978+.reveal.fade.overview .slides>section>section {
979+ transition: none;
980+}
981+
982+
983+/*********************************************
984+ * NO TRANSITION
985+ *********************************************/
986+
987+@include transition-global(none) {
988+ transform: none;
989+ transition: none;
990+}
991+
992+
993+/*********************************************
994+ * PAUSED MODE
995+ *********************************************/
996+
997+.reveal .pause-overlay {
998+ position: absolute;
999+ top: 0;
1000+ left: 0;
1001+ width: 100%;
1002+ height: 100%;
1003+ background: black;
1004+ visibility: hidden;
1005+ opacity: 0;
1006+ z-index: 100;
1007+ transition: all 1s ease;
1008+}
1009+
1010+.reveal .pause-overlay .resume-button {
1011+ position: absolute;
1012+ bottom: 20px;
1013+ right: 20px;
1014+ color: #ccc;
1015+ border-radius: 2px;
1016+ padding: 6px 14px;
1017+ border: 2px solid #ccc;
1018+ font-size: 16px;
1019+ background: transparent;
1020+ cursor: pointer;
1021+
1022+ &:hover {
1023+ color: #fff;
1024+ border-color: #fff;
1025+ }
1026+}
1027+
1028+.reveal.paused .pause-overlay {
1029+ visibility: visible;
1030+ opacity: 1;
1031+}
1032+
1033+
1034+/*********************************************
1035+ * FALLBACK
1036+ *********************************************/
1037+
1038+.no-transforms {
1039+ overflow-y: auto;
1040+}
1041+
1042+.no-transforms .reveal {
1043+ overflow: visible;
1044+}
1045+
1046+.no-transforms .reveal .slides {
1047+ position: relative;
1048+ width: 80%;
1049+ max-width: 1280px;
1050+ height: auto;
1051+ top: 0;
1052+ margin: 0 auto;
1053+ text-align: center;
1054+}
1055+
1056+.no-transforms .reveal .controls,
1057+.no-transforms .reveal .progress {
1058+ display: none;
1059+}
1060+
1061+.no-transforms .reveal .slides section {
1062+ display: block;
1063+ opacity: 1;
1064+ position: relative;
1065+ height: auto;
1066+ min-height: 0;
1067+ top: 0;
1068+ left: 0;
1069+ margin: 10vh 0;
1070+ margin: 70px 0;
1071+ transform: none;
1072+}
1073+
1074+.reveal .no-transition,
1075+.reveal .no-transition * {
1076+ transition: none !important;
1077+}
1078+
1079+
1080+/*********************************************
1081+ * PER-SLIDE BACKGROUNDS
1082+ *********************************************/
1083+
1084+.reveal .backgrounds {
1085+ position: absolute;
1086+ width: 100%;
1087+ height: 100%;
1088+ top: 0;
1089+ left: 0;
1090+ perspective: 600px;
1091+}
1092+ .reveal .slide-background {
1093+ display: none;
1094+ position: absolute;
1095+ width: 100%;
1096+ height: 100%;
1097+ opacity: 0;
1098+ visibility: hidden;
1099+ overflow: hidden;
1100+
1101+ background-color: rgba( 0, 0, 0, 0 );
1102+
1103+ transition: all 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
1104+ }
1105+
1106+ .reveal .slide-background-content {
1107+ position: absolute;
1108+ width: 100%;
1109+ height: 100%;
1110+
1111+ background-position: 50% 50%;
1112+ background-repeat: no-repeat;
1113+ background-size: cover;
1114+ }
1115+
1116+ .reveal .slide-background.stack {
1117+ display: block;
1118+ }
1119+
1120+ .reveal .slide-background.present {
1121+ opacity: 1;
1122+ visibility: visible;
1123+ z-index: 2;
1124+ }
1125+
1126+ .print-pdf .reveal .slide-background {
1127+ opacity: 1 !important;
1128+ visibility: visible !important;
1129+ }
1130+
1131+/* Video backgrounds */
1132+.reveal .slide-background video {
1133+ position: absolute;
1134+ width: 100%;
1135+ height: 100%;
1136+ max-width: none;
1137+ max-height: none;
1138+ top: 0;
1139+ left: 0;
1140+ object-fit: cover;
1141+}
1142+ .reveal .slide-background[data-background-size="contain"] video {
1143+ object-fit: contain;
1144+ }
1145+
1146+/* Immediate transition style */
1147+.reveal[data-background-transition=none]>.backgrounds .slide-background,
1148+.reveal>.backgrounds .slide-background[data-background-transition=none] {
1149+ transition: none;
1150+}
1151+
1152+/* Slide */
1153+.reveal[data-background-transition=slide]>.backgrounds .slide-background,
1154+.reveal>.backgrounds .slide-background[data-background-transition=slide] {
1155+ opacity: 1;
1156+ backface-visibility: hidden;
1157+}
1158+ .reveal[data-background-transition=slide]>.backgrounds .slide-background.past,
1159+ .reveal>.backgrounds .slide-background.past[data-background-transition=slide] {
1160+ transform: translate(-100%, 0);
1161+ }
1162+ .reveal[data-background-transition=slide]>.backgrounds .slide-background.future,
1163+ .reveal>.backgrounds .slide-background.future[data-background-transition=slide] {
1164+ transform: translate(100%, 0);
1165+ }
1166+
1167+ .reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.past,
1168+ .reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=slide] {
1169+ transform: translate(0, -100%);
1170+ }
1171+ .reveal[data-background-transition=slide]>.backgrounds .slide-background>.slide-background.future,
1172+ .reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=slide] {
1173+ transform: translate(0, 100%);
1174+ }
1175+
1176+
1177+/* Convex */
1178+.reveal[data-background-transition=convex]>.backgrounds .slide-background.past,
1179+.reveal>.backgrounds .slide-background.past[data-background-transition=convex] {
1180+ opacity: 0;
1181+ transform: translate3d(-100%, 0, 0) rotateY(-90deg) translate3d(-100%, 0, 0);
1182+}
1183+.reveal[data-background-transition=convex]>.backgrounds .slide-background.future,
1184+.reveal>.backgrounds .slide-background.future[data-background-transition=convex] {
1185+ opacity: 0;
1186+ transform: translate3d(100%, 0, 0) rotateY(90deg) translate3d(100%, 0, 0);
1187+}
1188+
1189+.reveal[data-background-transition=convex]>.backgrounds .slide-background>.slide-background.past,
1190+.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=convex] {
1191+ opacity: 0;
1192+ transform: translate3d(0, -100%, 0) rotateX(90deg) translate3d(0, -100%, 0);
1193+}
1194+.reveal[data-background-transition=convex]>.backgrounds .slide-background>.slide-background.future,
1195+.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=convex] {
1196+ opacity: 0;
1197+ transform: translate3d(0, 100%, 0) rotateX(-90deg) translate3d(0, 100%, 0);
1198+}
1199+
1200+
1201+/* Concave */
1202+.reveal[data-background-transition=concave]>.backgrounds .slide-background.past,
1203+.reveal>.backgrounds .slide-background.past[data-background-transition=concave] {
1204+ opacity: 0;
1205+ transform: translate3d(-100%, 0, 0) rotateY(90deg) translate3d(-100%, 0, 0);
1206+}
1207+.reveal[data-background-transition=concave]>.backgrounds .slide-background.future,
1208+.reveal>.backgrounds .slide-background.future[data-background-transition=concave] {
1209+ opacity: 0;
1210+ transform: translate3d(100%, 0, 0) rotateY(-90deg) translate3d(100%, 0, 0);
1211+}
1212+
1213+.reveal[data-background-transition=concave]>.backgrounds .slide-background>.slide-background.past,
1214+.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=concave] {
1215+ opacity: 0;
1216+ transform: translate3d(0, -100%, 0) rotateX(-90deg) translate3d(0, -100%, 0);
1217+}
1218+.reveal[data-background-transition=concave]>.backgrounds .slide-background>.slide-background.future,
1219+.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=concave] {
1220+ opacity: 0;
1221+ transform: translate3d(0, 100%, 0) rotateX(90deg) translate3d(0, 100%, 0);
1222+}
1223+
1224+/* Zoom */
1225+.reveal[data-background-transition=zoom]>.backgrounds .slide-background,
1226+.reveal>.backgrounds .slide-background[data-background-transition=zoom] {
1227+ transition-timing-function: ease;
1228+}
1229+
1230+.reveal[data-background-transition=zoom]>.backgrounds .slide-background.past,
1231+.reveal>.backgrounds .slide-background.past[data-background-transition=zoom] {
1232+ opacity: 0;
1233+ visibility: hidden;
1234+ transform: scale(16);
1235+}
1236+.reveal[data-background-transition=zoom]>.backgrounds .slide-background.future,
1237+.reveal>.backgrounds .slide-background.future[data-background-transition=zoom] {
1238+ opacity: 0;
1239+ visibility: hidden;
1240+ transform: scale(0.2);
1241+}
1242+
1243+.reveal[data-background-transition=zoom]>.backgrounds .slide-background>.slide-background.past,
1244+.reveal>.backgrounds .slide-background>.slide-background.past[data-background-transition=zoom] {
1245+ opacity: 0;
1246+ visibility: hidden;
1247+ transform: scale(16);
1248+}
1249+.reveal[data-background-transition=zoom]>.backgrounds .slide-background>.slide-background.future,
1250+.reveal>.backgrounds .slide-background>.slide-background.future[data-background-transition=zoom] {
1251+ opacity: 0;
1252+ visibility: hidden;
1253+ transform: scale(0.2);
1254+}
1255+
1256+
1257+/* Global transition speed settings */
1258+.reveal[data-transition-speed="fast"]>.backgrounds .slide-background {
1259+ transition-duration: 400ms;
1260+}
1261+.reveal[data-transition-speed="slow"]>.backgrounds .slide-background {
1262+ transition-duration: 1200ms;
1263+}
1264+
1265+
1266+/*********************************************
1267+ * OVERVIEW
1268+ *********************************************/
1269+
1270+.reveal.overview {
1271+ perspective-origin: 50% 50%;
1272+ perspective: 700px;
1273+
1274+ .slides {
1275+ // Fixes overview rendering errors in FF48+, not applied to
1276+ // other browsers since it degrades performance
1277+ -moz-transform-style: preserve-3d;
1278+ }
1279+
1280+ .slides section {
1281+ height: 100%;
1282+ top: 0 !important;
1283+ opacity: 1 !important;
1284+ overflow: hidden;
1285+ visibility: visible !important;
1286+ cursor: pointer;
1287+ box-sizing: border-box;
1288+ }
1289+ .slides section:hover,
1290+ .slides section.present {
1291+ outline: 10px solid rgba(150,150,150,0.4);
1292+ outline-offset: 10px;
1293+ }
1294+ .slides section .fragment {
1295+ opacity: 1;
1296+ transition: none;
1297+ }
1298+ .slides section:after,
1299+ .slides section:before {
1300+ display: none !important;
1301+ }
1302+ .slides>section.stack {
1303+ padding: 0;
1304+ top: 0 !important;
1305+ background: none;
1306+ outline: none;
1307+ overflow: visible;
1308+ }
1309+
1310+ .backgrounds {
1311+ perspective: inherit;
1312+
1313+ // Fixes overview rendering errors in FF48+, not applied to
1314+ // other browsers since it degrades performance
1315+ -moz-transform-style: preserve-3d;
1316+ }
1317+
1318+ .backgrounds .slide-background {
1319+ opacity: 1;
1320+ visibility: visible;
1321+
1322+ // This can't be applied to the slide itself in Safari
1323+ outline: 10px solid rgba(150,150,150,0.1);
1324+ outline-offset: 10px;
1325+ }
1326+
1327+ .backgrounds .slide-background.stack {
1328+ overflow: visible;
1329+ }
1330+}
1331+
1332+// Disable transitions transitions while we're activating
1333+// or deactivating the overview mode.
1334+.reveal.overview .slides section,
1335+.reveal.overview-deactivating .slides section {
1336+ transition: none;
1337+}
1338+
1339+.reveal.overview .backgrounds .slide-background,
1340+.reveal.overview-deactivating .backgrounds .slide-background {
1341+ transition: none;
1342+}
1343+
1344+
1345+/*********************************************
1346+ * RTL SUPPORT
1347+ *********************************************/
1348+
1349+.reveal.rtl .slides,
1350+.reveal.rtl .slides h1,
1351+.reveal.rtl .slides h2,
1352+.reveal.rtl .slides h3,
1353+.reveal.rtl .slides h4,
1354+.reveal.rtl .slides h5,
1355+.reveal.rtl .slides h6 {
1356+ direction: rtl;
1357+ font-family: sans-serif;
1358+}
1359+
1360+.reveal.rtl pre,
1361+.reveal.rtl code {
1362+ direction: ltr;
1363+}
1364+
1365+.reveal.rtl ol,
1366+.reveal.rtl ul {
1367+ text-align: right;
1368+}
1369+
1370+.reveal.rtl .progress span {
1371+ float: right
1372+}
1373+
1374+/*********************************************
1375+ * PARALLAX BACKGROUND
1376+ *********************************************/
1377+
1378+.reveal.has-parallax-background .backgrounds {
1379+ transition: all 0.8s ease;
1380+}
1381+
1382+/* Global transition speed settings */
1383+.reveal.has-parallax-background[data-transition-speed="fast"] .backgrounds {
1384+ transition-duration: 400ms;
1385+}
1386+.reveal.has-parallax-background[data-transition-speed="slow"] .backgrounds {
1387+ transition-duration: 1200ms;
1388+}
1389+
1390+
1391+/*********************************************
1392+ * OVERLAY FOR LINK PREVIEWS AND HELP
1393+ *********************************************/
1394+
1395+.reveal > .overlay {
1396+ position: absolute;
1397+ top: 0;
1398+ left: 0;
1399+ width: 100%;
1400+ height: 100%;
1401+ z-index: 1000;
1402+ background: rgba( 0, 0, 0, 0.9 );
1403+ opacity: 0;
1404+ visibility: hidden;
1405+ transition: all 0.3s ease;
1406+}
1407+ .reveal > .overlay.visible {
1408+ opacity: 1;
1409+ visibility: visible;
1410+ }
1411+
1412+ .reveal > .overlay .spinner {
1413+ position: absolute;
1414+ display: block;
1415+ top: 50%;
1416+ left: 50%;
1417+ width: 32px;
1418+ height: 32px;
1419+ margin: -16px 0 0 -16px;
1420+ z-index: 10;
1421+ background-image: url(data:image/gif;base64,R0lGODlhIAAgAPMAAJmZmf%2F%2F%2F6%2Bvr8nJybW1tcDAwOjo6Nvb26ioqKOjo7Ozs%2FLy8vz8%2FAAAAAAAAAAAACH%2FC05FVFNDQVBFMi4wAwEAAAAh%2FhpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh%2BQQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ%2FV%2FnmOM82XiHRLYKhKP1oZmADdEAAAh%2BQQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY%2FCZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB%2BA4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6%2BHo7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq%2BB6QDtuetcaBPnW6%2BO7wDHpIiK9SaVK5GgV543tzjgGcghAgAh%2BQQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK%2B%2BG%2Bw48edZPK%2BM6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE%2BG%2BcD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm%2BFNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk%2BaV%2BoJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0%2FVNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc%2BXiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30%2FiI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE%2FjiuL04RGEBgwWhShRgQExHBAAh%2BQQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR%2BipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq%2BE71SRQeyqUToLA7VxF0JDyIQh%2FMVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY%2BYip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd%2BMFCN6HAAIKgNggY0KtEBAAh%2BQQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1%2BvsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d%2BjYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg%2BygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0%2Bbm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h%2BKr0SJ8MFihpNbx%2B4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX%2BBP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA%3D%3D);
1422+
1423+ visibility: visible;
1424+ opacity: 0.6;
1425+ transition: all 0.3s ease;
1426+ }
1427+
1428+ .reveal > .overlay header {
1429+ position: absolute;
1430+ left: 0;
1431+ top: 0;
1432+ width: 100%;
1433+ height: 40px;
1434+ z-index: 2;
1435+ border-bottom: 1px solid #222;
1436+ }
1437+ .reveal > .overlay header a {
1438+ display: inline-block;
1439+ width: 40px;
1440+ height: 40px;
1441+ line-height: 36px;
1442+ padding: 0 10px;
1443+ float: right;
1444+ opacity: 0.6;
1445+
1446+ box-sizing: border-box;
1447+ }
1448+ .reveal > .overlay header a:hover {
1449+ opacity: 1;
1450+ }
1451+ .reveal > .overlay header a .icon {
1452+ display: inline-block;
1453+ width: 20px;
1454+ height: 20px;
1455+
1456+ background-position: 50% 50%;
1457+ background-size: 100%;
1458+ background-repeat: no-repeat;
1459+ }
1460+ .reveal > .overlay header a.close .icon {
1461+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABkklEQVRYR8WX4VHDMAxG6wnoJrABZQPYBCaBTWAD2g1gE5gg6OOsXuxIlr40d81dfrSJ9V4c2VLK7spHuTJ/5wpM07QXuXc5X0opX2tEJcadjHuV80li/FgxTIEK/5QBCICBD6xEhSMGHgQPgBgLiYVAB1dpSqKDawxTohFw4JSEA3clzgIBPCURwE2JucBR7rhPJJv5OpJwDX+SfDjgx1wACQeJG1aChP9K/IMmdZ8DtESV1WyP3Bt4MwM6sj4NMxMYiqUWHQu4KYA/SYkIjOsm3BXYWMKFDwU2khjCQ4ELJUJ4SmClRArOCmSXGuKma0fYD5CbzHxFpCSGAhfAVSSUGDUk2BWZaff2g6GE15BsBQ9nwmpIGDiyHQddwNTMKkbZaf9fajXQca1EX44puJZUsnY0ObGmITE3GVLCbEhQUjGVt146j6oasWN+49Vph2w1pZ5EansNZqKBm1txbU57iRRcZ86RWMDdWtBJUHBHwoQPi1GV+JCbntmvok7iTX4/Up9mgyTc/FJYDTcndgH/AA5A/CHsyEkVAAAAAElFTkSuQmCC);
1462+ }
1463+ .reveal > .overlay header a.external .icon {
1464+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAcElEQVRYR+2WSQoAIQwEzf8f7XiOMkUQxUPlGkM3hVmiQfQR9GYnH1SsAQlI4DiBqkCMoNb9y2e90IAEJPAcgdznU9+engMaeJ7Azh5Y1U67gAho4DqBqmB1buAf0MB1AlVBek83ZPkmJMGc1wAR+AAqod/B97TRpQAAAABJRU5ErkJggg==);
1465+ }
1466+
1467+ .reveal > .overlay .viewport {
1468+ position: absolute;
1469+ display: flex;
1470+ top: 40px;
1471+ right: 0;
1472+ bottom: 0;
1473+ left: 0;
1474+ }
1475+
1476+ .reveal > .overlay.overlay-preview .viewport iframe {
1477+ width: 100%;
1478+ height: 100%;
1479+ max-width: 100%;
1480+ max-height: 100%;
1481+ border: 0;
1482+
1483+ opacity: 0;
1484+ visibility: hidden;
1485+ transition: all 0.3s ease;
1486+ }
1487+
1488+ .reveal > .overlay.overlay-preview.loaded .viewport iframe {
1489+ opacity: 1;
1490+ visibility: visible;
1491+ }
1492+
1493+ .reveal > .overlay.overlay-preview.loaded .viewport-inner {
1494+ position: absolute;
1495+ z-index: -1;
1496+ left: 0;
1497+ top: 45%;
1498+ width: 100%;
1499+ text-align: center;
1500+ letter-spacing: normal;
1501+ }
1502+ .reveal > .overlay.overlay-preview .x-frame-error {
1503+ opacity: 0;
1504+ transition: opacity 0.3s ease 0.3s;
1505+ }
1506+ .reveal > .overlay.overlay-preview.loaded .x-frame-error {
1507+ opacity: 1;
1508+ }
1509+
1510+ .reveal > .overlay.overlay-preview.loaded .spinner {
1511+ opacity: 0;
1512+ visibility: hidden;
1513+ transform: scale(0.2);
1514+ }
1515+
1516+ .reveal > .overlay.overlay-help .viewport {
1517+ overflow: auto;
1518+ color: #fff;
1519+ }
1520+
1521+ .reveal > .overlay.overlay-help .viewport .viewport-inner {
1522+ width: 600px;
1523+ margin: auto;
1524+ padding: 20px 20px 80px 20px;
1525+ text-align: center;
1526+ letter-spacing: normal;
1527+ }
1528+
1529+ .reveal > .overlay.overlay-help .viewport .viewport-inner .title {
1530+ font-size: 20px;
1531+ }
1532+
1533+ .reveal > .overlay.overlay-help .viewport .viewport-inner table {
1534+ border: 1px solid #fff;
1535+ border-collapse: collapse;
1536+ font-size: 16px;
1537+ }
1538+
1539+ .reveal > .overlay.overlay-help .viewport .viewport-inner table th,
1540+ .reveal > .overlay.overlay-help .viewport .viewport-inner table td {
1541+ width: 200px;
1542+ padding: 14px;
1543+ border: 1px solid #fff;
1544+ vertical-align: middle;
1545+ }
1546+
1547+ .reveal > .overlay.overlay-help .viewport .viewport-inner table th {
1548+ padding-top: 20px;
1549+ padding-bottom: 20px;
1550+ }
1551+
1552+
1553+/*********************************************
1554+ * PLAYBACK COMPONENT
1555+ *********************************************/
1556+
1557+.reveal .playback {
1558+ position: absolute;
1559+ left: 15px;
1560+ bottom: 20px;
1561+ z-index: 30;
1562+ cursor: pointer;
1563+ transition: all 400ms ease;
1564+ -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
1565+}
1566+
1567+.reveal.overview .playback {
1568+ opacity: 0;
1569+ visibility: hidden;
1570+}
1571+
1572+
1573+/*********************************************
1574+ * CODE HIGHLGIHTING
1575+ *********************************************/
1576+
1577+.reveal .hljs table {
1578+ margin: initial;
1579+}
1580+
1581+.reveal .hljs-ln-code,
1582+.reveal .hljs-ln-numbers {
1583+ padding: 0;
1584+ border: 0;
1585+}
1586+
1587+.reveal .hljs-ln-numbers {
1588+ opacity: 0.6;
1589+ padding-right: 0.75em;
1590+ text-align: right;
1591+ vertical-align: top;
1592+}
1593+
1594+.reveal .hljs.has-highlights tr:not(.highlight-line) {
1595+ opacity: 0.4;
1596+}
1597+
1598+.reveal .hljs:not(:first-child).fragment {
1599+ position: absolute;
1600+ top: 0;
1601+ left: 0;
1602+ width: 100%;
1603+ box-sizing: border-box;
1604+}
1605+
1606+
1607+/*********************************************
1608+ * ROLLING LINKS
1609+ *********************************************/
1610+
1611+.reveal .roll {
1612+ display: inline-block;
1613+ line-height: 1.2;
1614+ overflow: hidden;
1615+
1616+ vertical-align: top;
1617+ perspective: 400px;
1618+ perspective-origin: 50% 50%;
1619+}
1620+ .reveal .roll:hover {
1621+ background: none;
1622+ text-shadow: none;
1623+ }
1624+.reveal .roll span {
1625+ display: block;
1626+ position: relative;
1627+ padding: 0 2px;
1628+
1629+ pointer-events: none;
1630+ transition: all 400ms ease;
1631+ transform-origin: 50% 0%;
1632+ transform-style: preserve-3d;
1633+ backface-visibility: hidden;
1634+}
1635+ .reveal .roll:hover span {
1636+ background: rgba(0,0,0,0.5);
1637+ transform: translate3d( 0px, 0px, -45px ) rotateX( 90deg );
1638+ }
1639+.reveal .roll span:after {
1640+ content: attr(data-title);
1641+
1642+ display: block;
1643+ position: absolute;
1644+ left: 0;
1645+ top: 0;
1646+ padding: 0 2px;
1647+ backface-visibility: hidden;
1648+ transform-origin: 50% 0%;
1649+ transform: translate3d( 0px, 110%, 0px ) rotateX( -90deg );
1650+}
1651+
1652+
1653+/*********************************************
1654+ * SPEAKER NOTES
1655+ *********************************************/
1656+
1657+$notesWidthPercent: 25%;
1658+
1659+// Hide on-page notes
1660+.reveal aside.notes {
1661+ display: none;
1662+}
1663+
1664+// An interface element that can optionally be used to show the
1665+// speaker notes to all viewers, on top of the presentation
1666+.reveal .speaker-notes {
1667+ display: none;
1668+ position: absolute;
1669+ width: $notesWidthPercent / (1-$notesWidthPercent/100) * 1%;
1670+ height: 100%;
1671+ top: 0;
1672+ left: 100%;
1673+ padding: 14px 18px 14px 18px;
1674+ z-index: 1;
1675+ font-size: 18px;
1676+ line-height: 1.4;
1677+ border: 1px solid rgba( 0, 0, 0, 0.05 );
1678+ color: #222;
1679+ background-color: #f5f5f5;
1680+ overflow: auto;
1681+ box-sizing: border-box;
1682+ text-align: left;
1683+ font-family: Helvetica, sans-serif;
1684+ -webkit-overflow-scrolling: touch;
1685+
1686+ .notes-placeholder {
1687+ color: #ccc;
1688+ font-style: italic;
1689+ }
1690+
1691+ &:focus {
1692+ outline: none;
1693+ }
1694+
1695+ &:before {
1696+ content: 'Speaker notes';
1697+ display: block;
1698+ margin-bottom: 10px;
1699+ opacity: 0.5;
1700+ }
1701+}
1702+
1703+
1704+.reveal.show-notes {
1705+ max-width: 100% - $notesWidthPercent;
1706+ overflow: visible;
1707+}
1708+
1709+.reveal.show-notes .speaker-notes {
1710+ display: block;
1711+}
1712+
1713+@media screen and (min-width: 1600px) {
1714+ .reveal .speaker-notes {
1715+ font-size: 20px;
1716+ }
1717+}
1718+
1719+@media screen and (max-width: 1024px) {
1720+ .reveal.show-notes {
1721+ border-left: 0;
1722+ max-width: none;
1723+ max-height: 70%;
1724+ max-height: 70vh;
1725+ overflow: visible;
1726+ }
1727+
1728+ .reveal.show-notes .speaker-notes {
1729+ top: 100%;
1730+ left: 0;
1731+ width: 100%;
1732+ height: (30/0.7)*1%;
1733+ height: 30vh;
1734+ border: 0;
1735+ }
1736+}
1737+
1738+@media screen and (max-width: 600px) {
1739+ .reveal.show-notes {
1740+ max-height: 60%;
1741+ max-height: 60vh;
1742+ }
1743+
1744+ .reveal.show-notes .speaker-notes {
1745+ top: 100%;
1746+ height: (40/0.6)*1%;
1747+ height: 40vh;
1748+ }
1749+
1750+ .reveal .speaker-notes {
1751+ font-size: 14px;
1752+ }
1753+}
1754+
1755+
1756+/*********************************************
1757+ * ZOOM PLUGIN
1758+ *********************************************/
1759+
1760+.zoomed .reveal *,
1761+.zoomed .reveal *:before,
1762+.zoomed .reveal *:after {
1763+ backface-visibility: visible !important;
1764+}
1765+
1766+.zoomed .reveal .progress,
1767+.zoomed .reveal .controls {
1768+ opacity: 0;
1769+}
1770+
1771+.zoomed .reveal .roll span {
1772+ background: none;
1773+}
1774+
1775+.zoomed .reveal .roll span:after {
1776+ visibility: hidden;
1777+}
css/theme/README.mdnew file+21
@@ -0,0 +1,21 @@
1+## Dependencies
2+
3+Themes are written using Sass to keep things modular and reduce the need for repeated selectors across files. Make sure that you have the reveal.js development environment including the Grunt dependencies installed before proceeding: https://github.com/hakimel/reveal.js#full-setup
4+
5+## Creating a Theme
6+
7+To create your own theme, start by duplicating a ```.scss``` file in [/css/theme/source](https://github.com/hakimel/reveal.js/blob/master/css/theme/source). It will be automatically compiled by Grunt from Sass to CSS (see the [Gruntfile](https://github.com/hakimel/reveal.js/blob/master/Gruntfile.js)) when you run `npm run build -- css-themes`.
8+
9+Each theme file does four things in the following order:
10+
11+1. **Include [/css/theme/template/mixins.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/mixins.scss)**
12+Shared utility functions.
13+
14+2. **Include [/css/theme/template/settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss)**
15+Declares a set of custom variables that the template file (step 4) expects. Can be overridden in step 3.
16+
17+3. **Override**
18+This is where you override the default theme. Either by specifying variables (see [settings.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/settings.scss) for reference) or by adding any selectors and styles you please.
19+
20+4. **Include [/css/theme/template/theme.scss](https://github.com/hakimel/reveal.js/blob/master/css/theme/template/theme.scss)**
21+The template theme file which will generate final CSS output based on the currently defined variables.
css/theme/beige.cssnew file+277
@@ -0,0 +1,277 @@
1+/**
2+ * Beige theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+@import url(../../lib/font/league-gothic/league-gothic.css);
7+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
8+/*********************************************
9+ * GLOBAL STYLES
10+ *********************************************/
11+body {
12+ background: #f7f2d3;
13+ background: -moz-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
14+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, white), color-stop(100%, #f7f2d3));
15+ background: -webkit-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
16+ background: -o-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
17+ background: -ms-radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
18+ background: radial-gradient(center, circle cover, white 0%, #f7f2d3 100%);
19+ background-color: #f7f3de; }
20+
21+.reveal {
22+ font-family: "Lato", sans-serif;
23+ font-size: 40px;
24+ font-weight: normal;
25+ color: #333; }
26+
27+::selection {
28+ color: #fff;
29+ background: rgba(79, 64, 28, 0.99);
30+ text-shadow: none; }
31+
32+::-moz-selection {
33+ color: #fff;
34+ background: rgba(79, 64, 28, 0.99);
35+ text-shadow: none; }
36+
37+.reveal .slides section,
38+.reveal .slides section > section {
39+ line-height: 1.3;
40+ font-weight: inherit; }
41+
42+/*********************************************
43+ * HEADERS
44+ *********************************************/
45+.reveal h1,
46+.reveal h2,
47+.reveal h3,
48+.reveal h4,
49+.reveal h5,
50+.reveal h6 {
51+ margin: 0 0 20px 0;
52+ color: #333;
53+ font-family: "League Gothic", Impact, sans-serif;
54+ font-weight: normal;
55+ line-height: 1.2;
56+ letter-spacing: normal;
57+ text-transform: uppercase;
58+ text-shadow: none;
59+ word-wrap: break-word; }
60+
61+.reveal h1 {
62+ font-size: 3.77em; }
63+
64+.reveal h2 {
65+ font-size: 2.11em; }
66+
67+.reveal h3 {
68+ font-size: 1.55em; }
69+
70+.reveal h4 {
71+ font-size: 1em; }
72+
73+.reveal h1 {
74+ text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
75+
76+/*********************************************
77+ * OTHER
78+ *********************************************/
79+.reveal p {
80+ margin: 20px 0;
81+ line-height: 1.3; }
82+
83+/* Ensure certain elements are never larger than the slide itself */
84+.reveal img,
85+.reveal video,
86+.reveal iframe {
87+ max-width: 95%;
88+ max-height: 95%; }
89+
90+.reveal strong,
91+.reveal b {
92+ font-weight: bold; }
93+
94+.reveal em {
95+ font-style: italic; }
96+
97+.reveal ol,
98+.reveal dl,
99+.reveal ul {
100+ display: inline-block;
101+ text-align: left;
102+ margin: 0 0 0 1em; }
103+
104+.reveal ol {
105+ list-style-type: decimal; }
106+
107+.reveal ul {
108+ list-style-type: disc; }
109+
110+.reveal ul ul {
111+ list-style-type: square; }
112+
113+.reveal ul ul ul {
114+ list-style-type: circle; }
115+
116+.reveal ul ul,
117+.reveal ul ol,
118+.reveal ol ol,
119+.reveal ol ul {
120+ display: block;
121+ margin-left: 40px; }
122+
123+.reveal dt {
124+ font-weight: bold; }
125+
126+.reveal dd {
127+ margin-left: 40px; }
128+
129+.reveal blockquote {
130+ display: block;
131+ position: relative;
132+ width: 70%;
133+ margin: 20px auto;
134+ padding: 5px;
135+ font-style: italic;
136+ background: rgba(255, 255, 255, 0.05);
137+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
138+
139+.reveal blockquote p:first-child,
140+.reveal blockquote p:last-child {
141+ display: inline-block; }
142+
143+.reveal q {
144+ font-style: italic; }
145+
146+.reveal pre {
147+ display: block;
148+ position: relative;
149+ width: 90%;
150+ margin: 20px auto;
151+ text-align: left;
152+ font-size: 0.55em;
153+ font-family: monospace;
154+ line-height: 1.2em;
155+ word-wrap: break-word;
156+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
157+
158+.reveal code {
159+ font-family: monospace;
160+ text-transform: none; }
161+
162+.reveal pre code {
163+ display: block;
164+ padding: 5px;
165+ overflow: auto;
166+ max-height: 400px;
167+ word-wrap: normal; }
168+
169+.reveal table {
170+ margin: auto;
171+ border-collapse: collapse;
172+ border-spacing: 0; }
173+
174+.reveal table th {
175+ font-weight: bold; }
176+
177+.reveal table th,
178+.reveal table td {
179+ text-align: left;
180+ padding: 0.2em 0.5em 0.2em 0.5em;
181+ border-bottom: 1px solid; }
182+
183+.reveal table th[align="center"],
184+.reveal table td[align="center"] {
185+ text-align: center; }
186+
187+.reveal table th[align="right"],
188+.reveal table td[align="right"] {
189+ text-align: right; }
190+
191+.reveal table tbody tr:last-child th,
192+.reveal table tbody tr:last-child td {
193+ border-bottom: none; }
194+
195+.reveal sup {
196+ vertical-align: super;
197+ font-size: smaller; }
198+
199+.reveal sub {
200+ vertical-align: sub;
201+ font-size: smaller; }
202+
203+.reveal small {
204+ display: inline-block;
205+ font-size: 0.6em;
206+ line-height: 1.2em;
207+ vertical-align: top; }
208+
209+.reveal small * {
210+ vertical-align: top; }
211+
212+/*********************************************
213+ * LINKS
214+ *********************************************/
215+.reveal a {
216+ color: #8b743d;
217+ text-decoration: none;
218+ -webkit-transition: color .15s ease;
219+ -moz-transition: color .15s ease;
220+ transition: color .15s ease; }
221+
222+.reveal a:hover {
223+ color: #c0a86e;
224+ text-shadow: none;
225+ border: none; }
226+
227+.reveal .roll span:after {
228+ color: #fff;
229+ background: #564826; }
230+
231+/*********************************************
232+ * IMAGES
233+ *********************************************/
234+.reveal section img {
235+ margin: 15px 0px;
236+ background: rgba(255, 255, 255, 0.12);
237+ border: 4px solid #333;
238+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
239+
240+.reveal section img.plain {
241+ border: 0;
242+ box-shadow: none; }
243+
244+.reveal a img {
245+ -webkit-transition: all .15s linear;
246+ -moz-transition: all .15s linear;
247+ transition: all .15s linear; }
248+
249+.reveal a:hover img {
250+ background: rgba(255, 255, 255, 0.2);
251+ border-color: #8b743d;
252+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
253+
254+/*********************************************
255+ * NAVIGATION CONTROLS
256+ *********************************************/
257+.reveal .controls {
258+ color: #8b743d; }
259+
260+/*********************************************
261+ * PROGRESS BAR
262+ *********************************************/
263+.reveal .progress {
264+ background: rgba(0, 0, 0, 0.2);
265+ color: #8b743d; }
266+
267+.reveal .progress span {
268+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
269+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
270+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
271+
272+/*********************************************
273+ * PRINT BACKGROUND
274+ *********************************************/
275+@media print {
276+ .backgrounds {
277+ background-color: #f7f3de; } }
css/theme/black copy.cssnew file+273
@@ -0,0 +1,273 @@
1+/**
2+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7+section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
8+ color: #222; }
9+
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+body {
14+ background: #191919;
15+ background-color: #191919; }
16+
17+.reveal {
18+ font-family: "Source Sans Pro", Helvetica, sans-serif;
19+ font-size: 42px;
20+ font-weight: normal;
21+ color: #fff; }
22+
23+::selection {
24+ color: #fff;
25+ background: #bee4fd;
26+ text-shadow: none; }
27+
28+::-moz-selection {
29+ color: #fff;
30+ background: #bee4fd;
31+ text-shadow: none; }
32+
33+.reveal .slides section,
34+.reveal .slides section > section {
35+ line-height: 1.3;
36+ font-weight: inherit; }
37+
38+/*********************************************
39+ * HEADERS
40+ *********************************************/
41+.reveal h1,
42+.reveal h2,
43+.reveal h3,
44+.reveal h4,
45+.reveal h5,
46+.reveal h6 {
47+ margin: 0 0 20px 0;
48+ color: #fff;
49+ font-family: "Source Sans Pro", Helvetica, sans-serif;
50+ font-weight: 600;
51+ line-height: 1.2;
52+ letter-spacing: normal;
53+ text-transform: uppercase;
54+ text-shadow: none;
55+ word-wrap: break-word; }
56+
57+.reveal h1 {
58+ font-size: 2.5em; }
59+
60+.reveal h2 {
61+ font-size: 1.6em; }
62+
63+.reveal h3 {
64+ font-size: 1.3em; }
65+
66+.reveal h4 {
67+ font-size: 1em; }
68+
69+.reveal h1 {
70+ text-shadow: none; }
71+
72+/*********************************************
73+ * OTHER
74+ *********************************************/
75+.reveal p {
76+ margin: 20px 0;
77+ line-height: 1.3; }
78+
79+/* Ensure certain elements are never larger than the slide itself */
80+.reveal img,
81+.reveal video,
82+.reveal iframe {
83+ max-width: 95%;
84+ max-height: 95%; }
85+
86+.reveal strong,
87+.reveal b {
88+ font-weight: bold; }
89+
90+.reveal em {
91+ font-style: italic; }
92+
93+.reveal ol,
94+.reveal dl,
95+.reveal ul {
96+ display: inline-block;
97+ text-align: left;
98+ margin: 0 0 0 1em; }
99+
100+.reveal ol {
101+ list-style-type: decimal; }
102+
103+.reveal ul {
104+ list-style-type: disc; }
105+
106+.reveal ul ul {
107+ list-style-type: square; }
108+
109+.reveal ul ul ul {
110+ list-style-type: circle; }
111+
112+.reveal ul ul,
113+.reveal ul ol,
114+.reveal ol ol,
115+.reveal ol ul {
116+ display: block;
117+ margin-left: 40px; }
118+
119+.reveal dt {
120+ font-weight: bold; }
121+
122+.reveal dd {
123+ margin-left: 40px; }
124+
125+.reveal blockquote {
126+ display: block;
127+ position: relative;
128+ width: 70%;
129+ margin: 20px auto;
130+ padding: 5px;
131+ font-style: italic;
132+ background: rgba(255, 255, 255, 0.05);
133+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
134+
135+.reveal blockquote p:first-child,
136+.reveal blockquote p:last-child {
137+ display: inline-block; }
138+
139+.reveal q {
140+ font-style: italic; }
141+
142+.reveal pre {
143+ display: block;
144+ position: relative;
145+ width: 90%;
146+ margin: 20px auto;
147+ text-align: left;
148+ font-size: 0.55em;
149+ font-family: monospace;
150+ line-height: 1.2em;
151+ word-wrap: break-word;
152+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
153+
154+.reveal code {
155+ font-family: monospace;
156+ text-transform: none; }
157+
158+.reveal pre code {
159+ display: block;
160+ padding: 5px;
161+ overflow: auto;
162+ max-height: 400px;
163+ word-wrap: normal; }
164+
165+.reveal table {
166+ margin: auto;
167+ border-collapse: collapse;
168+ border-spacing: 0; }
169+
170+.reveal table th {
171+ font-weight: bold; }
172+
173+.reveal table th,
174+.reveal table td {
175+ text-align: left;
176+ padding: 0.2em 0.5em 0.2em 0.5em;
177+ border-bottom: 1px solid; }
178+
179+.reveal table th[align="center"],
180+.reveal table td[align="center"] {
181+ text-align: center; }
182+
183+.reveal table th[align="right"],
184+.reveal table td[align="right"] {
185+ text-align: right; }
186+
187+.reveal table tbody tr:last-child th,
188+.reveal table tbody tr:last-child td {
189+ border-bottom: none; }
190+
191+.reveal sup {
192+ vertical-align: super;
193+ font-size: smaller; }
194+
195+.reveal sub {
196+ vertical-align: sub;
197+ font-size: smaller; }
198+
199+.reveal small {
200+ display: inline-block;
201+ font-size: 0.6em;
202+ line-height: 1.2em;
203+ vertical-align: top; }
204+
205+.reveal small * {
206+ vertical-align: top; }
207+
208+/*********************************************
209+ * LINKS
210+ *********************************************/
211+.reveal a {
212+ color: #42affa;
213+ text-decoration: none;
214+ -webkit-transition: color .15s ease;
215+ -moz-transition: color .15s ease;
216+ transition: color .15s ease; }
217+
218+.reveal a:hover {
219+ color: #8dcffc;
220+ text-shadow: none;
221+ border: none; }
222+
223+.reveal .roll span:after {
224+ color: #fff;
225+ background: #068de9; }
226+
227+/*********************************************
228+ * IMAGES
229+ *********************************************/
230+.reveal section img {
231+ margin: 15px 0px;
232+ background: rgba(255, 255, 255, 0.12);
233+ border: 4px solid #fff;
234+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235+
236+.reveal section img.plain {
237+ border: 0;
238+ box-shadow: none; }
239+
240+.reveal a img {
241+ -webkit-transition: all .15s linear;
242+ -moz-transition: all .15s linear;
243+ transition: all .15s linear; }
244+
245+.reveal a:hover img {
246+ background: rgba(255, 255, 255, 0.2);
247+ border-color: #42affa;
248+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249+
250+/*********************************************
251+ * NAVIGATION CONTROLS
252+ *********************************************/
253+.reveal .controls {
254+ color: #42affa; }
255+
256+/*********************************************
257+ * PROGRESS BAR
258+ *********************************************/
259+.reveal .progress {
260+ background: rgba(0, 0, 0, 0.2);
261+ color: #42affa; }
262+
263+.reveal .progress span {
264+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
265+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
267+
268+/*********************************************
269+ * PRINT BACKGROUND
270+ *********************************************/
271+@media print {
272+ .backgrounds {
273+ background-color: #191919; } }
css/theme/black.cssnew file+273
@@ -0,0 +1,273 @@
1+/**
2+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7+section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
8+ color: #222; }
9+
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+body {
14+ background: #191919;
15+ background-color: #191919; }
16+
17+.reveal {
18+ font-family: "Source Sans Pro", Helvetica, sans-serif;
19+ font-size: 42px;
20+ font-weight: normal;
21+ color: #fff; }
22+
23+::selection {
24+ color: #fff;
25+ background: #bee4fd;
26+ text-shadow: none; }
27+
28+::-moz-selection {
29+ color: #fff;
30+ background: #bee4fd;
31+ text-shadow: none; }
32+
33+.reveal .slides section,
34+.reveal .slides section > section {
35+ line-height: 1.3;
36+ font-weight: inherit; }
37+
38+/*********************************************
39+ * HEADERS
40+ *********************************************/
41+.reveal h1,
42+.reveal h2,
43+.reveal h3,
44+.reveal h4,
45+.reveal h5,
46+.reveal h6 {
47+ margin: 0 0 20px 0;
48+ color: #fff;
49+ font-family: "Source Sans Pro", Helvetica, sans-serif;
50+ font-weight: 600;
51+ line-height: 1.2;
52+ letter-spacing: normal;
53+ text-transform: uppercase;
54+ text-shadow: none;
55+ word-wrap: break-word; }
56+
57+.reveal h1 {
58+ font-size: 2.5em; }
59+
60+.reveal h2 {
61+ font-size: 1.6em; }
62+
63+.reveal h3 {
64+ font-size: 1.3em; }
65+
66+.reveal h4 {
67+ font-size: 1em; }
68+
69+.reveal h1 {
70+ text-shadow: none; }
71+
72+/*********************************************
73+ * OTHER
74+ *********************************************/
75+.reveal p {
76+ margin: 20px 0;
77+ line-height: 1.3; }
78+
79+/* Ensure certain elements are never larger than the slide itself */
80+.reveal img,
81+.reveal video,
82+.reveal iframe {
83+ max-width: 95%;
84+ max-height: 95%; }
85+
86+.reveal strong,
87+.reveal b {
88+ font-weight: bold; }
89+
90+.reveal em {
91+ font-style: italic; }
92+
93+.reveal ol,
94+.reveal dl,
95+.reveal ul {
96+ display: inline-block;
97+ text-align: left;
98+ margin: 0 0 0 1em; }
99+
100+.reveal ol {
101+ list-style-type: decimal; }
102+
103+.reveal ul {
104+ list-style-type: disc; }
105+
106+.reveal ul ul {
107+ list-style-type: square; }
108+
109+.reveal ul ul ul {
110+ list-style-type: circle; }
111+
112+.reveal ul ul,
113+.reveal ul ol,
114+.reveal ol ol,
115+.reveal ol ul {
116+ display: block;
117+ margin-left: 40px; }
118+
119+.reveal dt {
120+ font-weight: bold; }
121+
122+.reveal dd {
123+ margin-left: 40px; }
124+
125+.reveal blockquote {
126+ display: block;
127+ position: relative;
128+ width: 70%;
129+ margin: 20px auto;
130+ padding: 5px;
131+ font-style: italic;
132+ background: rgba(255, 255, 255, 0.05);
133+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
134+
135+.reveal blockquote p:first-child,
136+.reveal blockquote p:last-child {
137+ display: inline-block; }
138+
139+.reveal q {
140+ font-style: italic; }
141+
142+.reveal pre {
143+ display: block;
144+ position: relative;
145+ width: 90%;
146+ margin: 20px auto;
147+ text-align: left;
148+ font-size: 0.55em;
149+ font-family: monospace;
150+ line-height: 1.2em;
151+ word-wrap: break-word;
152+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
153+
154+.reveal code {
155+ font-family: monospace;
156+ text-transform: none; }
157+
158+.reveal pre code {
159+ display: block;
160+ padding: 5px;
161+ overflow: auto;
162+ max-height: 400px;
163+ word-wrap: normal; }
164+
165+.reveal table {
166+ margin: auto;
167+ border-collapse: collapse;
168+ border-spacing: 0; }
169+
170+.reveal table th {
171+ font-weight: bold; }
172+
173+.reveal table th,
174+.reveal table td {
175+ text-align: left;
176+ padding: 0.2em 0.5em 0.2em 0.5em;
177+ border-bottom: 1px solid; }
178+
179+.reveal table th[align="center"],
180+.reveal table td[align="center"] {
181+ text-align: center; }
182+
183+.reveal table th[align="right"],
184+.reveal table td[align="right"] {
185+ text-align: right; }
186+
187+.reveal table tbody tr:last-child th,
188+.reveal table tbody tr:last-child td {
189+ border-bottom: none; }
190+
191+.reveal sup {
192+ vertical-align: super;
193+ font-size: smaller; }
194+
195+.reveal sub {
196+ vertical-align: sub;
197+ font-size: smaller; }
198+
199+.reveal small {
200+ display: inline-block;
201+ font-size: 0.6em;
202+ line-height: 1.2em;
203+ vertical-align: top; }
204+
205+.reveal small * {
206+ vertical-align: top; }
207+
208+/*********************************************
209+ * LINKS
210+ *********************************************/
211+.reveal a {
212+ color: #42affa;
213+ text-decoration: none;
214+ -webkit-transition: color .15s ease;
215+ -moz-transition: color .15s ease;
216+ transition: color .15s ease; }
217+
218+.reveal a:hover {
219+ color: #8dcffc;
220+ text-shadow: none;
221+ border: none; }
222+
223+.reveal .roll span:after {
224+ color: #fff;
225+ background: #068de9; }
226+
227+/*********************************************
228+ * IMAGES
229+ *********************************************/
230+.reveal section img {
231+ margin: 15px 0px;
232+ background: rgba(255, 255, 255, 0.12);
233+ border: 4px solid #fff;
234+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235+
236+.reveal section img.plain {
237+ border: 0;
238+ box-shadow: none; }
239+
240+.reveal a img {
241+ -webkit-transition: all .15s linear;
242+ -moz-transition: all .15s linear;
243+ transition: all .15s linear; }
244+
245+.reveal a:hover img {
246+ background: rgba(255, 255, 255, 0.2);
247+ border-color: #42affa;
248+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249+
250+/*********************************************
251+ * NAVIGATION CONTROLS
252+ *********************************************/
253+.reveal .controls {
254+ color: #42affa; }
255+
256+/*********************************************
257+ * PROGRESS BAR
258+ *********************************************/
259+.reveal .progress {
260+ background: rgba(0, 0, 0, 0.2);
261+ color: #42affa; }
262+
263+.reveal .progress span {
264+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
265+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
267+
268+/*********************************************
269+ * PRINT BACKGROUND
270+ *********************************************/
271+@media print {
272+ .backgrounds {
273+ background-color: #191919; } }
css/theme/blood.cssnew file+296
@@ -0,0 +1,296 @@
1+/**
2+ * Blood theme for reveal.js
3+ * Author: Walther http://github.com/Walther
4+ *
5+ * Designed to be used with highlight.js theme
6+ * "monokai_sublime.css" available from
7+ * https://github.com/isagalaev/highlight.js/
8+ *
9+ * For other themes, change $codeBackground accordingly.
10+ *
11+ */
12+@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
13+/*********************************************
14+ * GLOBAL STYLES
15+ *********************************************/
16+body {
17+ background: #222;
18+ background-color: #222; }
19+
20+.reveal {
21+ font-family: Ubuntu, "sans-serif";
22+ font-size: 40px;
23+ font-weight: normal;
24+ color: #eee; }
25+
26+::selection {
27+ color: #fff;
28+ background: #a23;
29+ text-shadow: none; }
30+
31+::-moz-selection {
32+ color: #fff;
33+ background: #a23;
34+ text-shadow: none; }
35+
36+.reveal .slides section,
37+.reveal .slides section > section {
38+ line-height: 1.3;
39+ font-weight: inherit; }
40+
41+/*********************************************
42+ * HEADERS
43+ *********************************************/
44+.reveal h1,
45+.reveal h2,
46+.reveal h3,
47+.reveal h4,
48+.reveal h5,
49+.reveal h6 {
50+ margin: 0 0 20px 0;
51+ color: #eee;
52+ font-family: Ubuntu, "sans-serif";
53+ font-weight: normal;
54+ line-height: 1.2;
55+ letter-spacing: normal;
56+ text-transform: uppercase;
57+ text-shadow: 2px 2px 2px #222;
58+ word-wrap: break-word; }
59+
60+.reveal h1 {
61+ font-size: 3.77em; }
62+
63+.reveal h2 {
64+ font-size: 2.11em; }
65+
66+.reveal h3 {
67+ font-size: 1.55em; }
68+
69+.reveal h4 {
70+ font-size: 1em; }
71+
72+.reveal h1 {
73+ text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
74+
75+/*********************************************
76+ * OTHER
77+ *********************************************/
78+.reveal p {
79+ margin: 20px 0;
80+ line-height: 1.3; }
81+
82+/* Ensure certain elements are never larger than the slide itself */
83+.reveal img,
84+.reveal video,
85+.reveal iframe {
86+ max-width: 95%;
87+ max-height: 95%; }
88+
89+.reveal strong,
90+.reveal b {
91+ font-weight: bold; }
92+
93+.reveal em {
94+ font-style: italic; }
95+
96+.reveal ol,
97+.reveal dl,
98+.reveal ul {
99+ display: inline-block;
100+ text-align: left;
101+ margin: 0 0 0 1em; }
102+
103+.reveal ol {
104+ list-style-type: decimal; }
105+
106+.reveal ul {
107+ list-style-type: disc; }
108+
109+.reveal ul ul {
110+ list-style-type: square; }
111+
112+.reveal ul ul ul {
113+ list-style-type: circle; }
114+
115+.reveal ul ul,
116+.reveal ul ol,
117+.reveal ol ol,
118+.reveal ol ul {
119+ display: block;
120+ margin-left: 40px; }
121+
122+.reveal dt {
123+ font-weight: bold; }
124+
125+.reveal dd {
126+ margin-left: 40px; }
127+
128+.reveal blockquote {
129+ display: block;
130+ position: relative;
131+ width: 70%;
132+ margin: 20px auto;
133+ padding: 5px;
134+ font-style: italic;
135+ background: rgba(255, 255, 255, 0.05);
136+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
137+
138+.reveal blockquote p:first-child,
139+.reveal blockquote p:last-child {
140+ display: inline-block; }
141+
142+.reveal q {
143+ font-style: italic; }
144+
145+.reveal pre {
146+ display: block;
147+ position: relative;
148+ width: 90%;
149+ margin: 20px auto;
150+ text-align: left;
151+ font-size: 0.55em;
152+ font-family: monospace;
153+ line-height: 1.2em;
154+ word-wrap: break-word;
155+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
156+
157+.reveal code {
158+ font-family: monospace;
159+ text-transform: none; }
160+
161+.reveal pre code {
162+ display: block;
163+ padding: 5px;
164+ overflow: auto;
165+ max-height: 400px;
166+ word-wrap: normal; }
167+
168+.reveal table {
169+ margin: auto;
170+ border-collapse: collapse;
171+ border-spacing: 0; }
172+
173+.reveal table th {
174+ font-weight: bold; }
175+
176+.reveal table th,
177+.reveal table td {
178+ text-align: left;
179+ padding: 0.2em 0.5em 0.2em 0.5em;
180+ border-bottom: 1px solid; }
181+
182+.reveal table th[align="center"],
183+.reveal table td[align="center"] {
184+ text-align: center; }
185+
186+.reveal table th[align="right"],
187+.reveal table td[align="right"] {
188+ text-align: right; }
189+
190+.reveal table tbody tr:last-child th,
191+.reveal table tbody tr:last-child td {
192+ border-bottom: none; }
193+
194+.reveal sup {
195+ vertical-align: super;
196+ font-size: smaller; }
197+
198+.reveal sub {
199+ vertical-align: sub;
200+ font-size: smaller; }
201+
202+.reveal small {
203+ display: inline-block;
204+ font-size: 0.6em;
205+ line-height: 1.2em;
206+ vertical-align: top; }
207+
208+.reveal small * {
209+ vertical-align: top; }
210+
211+/*********************************************
212+ * LINKS
213+ *********************************************/
214+.reveal a {
215+ color: #a23;
216+ text-decoration: none;
217+ -webkit-transition: color .15s ease;
218+ -moz-transition: color .15s ease;
219+ transition: color .15s ease; }
220+
221+.reveal a:hover {
222+ color: #dd5566;
223+ text-shadow: none;
224+ border: none; }
225+
226+.reveal .roll span:after {
227+ color: #fff;
228+ background: #6a1520; }
229+
230+/*********************************************
231+ * IMAGES
232+ *********************************************/
233+.reveal section img {
234+ margin: 15px 0px;
235+ background: rgba(255, 255, 255, 0.12);
236+ border: 4px solid #eee;
237+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
238+
239+.reveal section img.plain {
240+ border: 0;
241+ box-shadow: none; }
242+
243+.reveal a img {
244+ -webkit-transition: all .15s linear;
245+ -moz-transition: all .15s linear;
246+ transition: all .15s linear; }
247+
248+.reveal a:hover img {
249+ background: rgba(255, 255, 255, 0.2);
250+ border-color: #a23;
251+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
252+
253+/*********************************************
254+ * NAVIGATION CONTROLS
255+ *********************************************/
256+.reveal .controls {
257+ color: #a23; }
258+
259+/*********************************************
260+ * PROGRESS BAR
261+ *********************************************/
262+.reveal .progress {
263+ background: rgba(0, 0, 0, 0.2);
264+ color: #a23; }
265+
266+.reveal .progress span {
267+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
268+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
269+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
270+
271+/*********************************************
272+ * PRINT BACKGROUND
273+ *********************************************/
274+@media print {
275+ .backgrounds {
276+ background-color: #222; } }
277+
278+.reveal p {
279+ font-weight: 300;
280+ text-shadow: 1px 1px #222; }
281+
282+.reveal h1,
283+.reveal h2,
284+.reveal h3,
285+.reveal h4,
286+.reveal h5,
287+.reveal h6 {
288+ font-weight: 700; }
289+
290+.reveal p code {
291+ background-color: #23241f;
292+ display: inline-block;
293+ border-radius: 7px; }
294+
295+.reveal small code {
296+ vertical-align: baseline; }
css/theme/league.cssnew file+279
@@ -0,0 +1,279 @@
1+/**
2+ * League theme for reveal.js.
3+ *
4+ * This was the default theme pre-3.0.0.
5+ *
6+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7+ */
8+@import url(../../lib/font/league-gothic/league-gothic.css);
9+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+body {
14+ background: #1c1e20;
15+ background: -moz-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
16+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #555a5f), color-stop(100%, #1c1e20));
17+ background: -webkit-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
18+ background: -o-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
19+ background: -ms-radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
20+ background: radial-gradient(center, circle cover, #555a5f 0%, #1c1e20 100%);
21+ background-color: #2b2b2b; }
22+
23+.reveal {
24+ font-family: "Lato", sans-serif;
25+ font-size: 40px;
26+ font-weight: normal;
27+ color: #eee; }
28+
29+::selection {
30+ color: #fff;
31+ background: #FF5E99;
32+ text-shadow: none; }
33+
34+::-moz-selection {
35+ color: #fff;
36+ background: #FF5E99;
37+ text-shadow: none; }
38+
39+.reveal .slides section,
40+.reveal .slides section > section {
41+ line-height: 1.3;
42+ font-weight: inherit; }
43+
44+/*********************************************
45+ * HEADERS
46+ *********************************************/
47+.reveal h1,
48+.reveal h2,
49+.reveal h3,
50+.reveal h4,
51+.reveal h5,
52+.reveal h6 {
53+ margin: 0 0 20px 0;
54+ color: #eee;
55+ font-family: "League Gothic", Impact, sans-serif;
56+ font-weight: normal;
57+ line-height: 1.2;
58+ letter-spacing: normal;
59+ text-transform: uppercase;
60+ text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
61+ word-wrap: break-word; }
62+
63+.reveal h1 {
64+ font-size: 3.77em; }
65+
66+.reveal h2 {
67+ font-size: 2.11em; }
68+
69+.reveal h3 {
70+ font-size: 1.55em; }
71+
72+.reveal h4 {
73+ font-size: 1em; }
74+
75+.reveal h1 {
76+ text-shadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 20px 20px rgba(0, 0, 0, 0.15); }
77+
78+/*********************************************
79+ * OTHER
80+ *********************************************/
81+.reveal p {
82+ margin: 20px 0;
83+ line-height: 1.3; }
84+
85+/* Ensure certain elements are never larger than the slide itself */
86+.reveal img,
87+.reveal video,
88+.reveal iframe {
89+ max-width: 95%;
90+ max-height: 95%; }
91+
92+.reveal strong,
93+.reveal b {
94+ font-weight: bold; }
95+
96+.reveal em {
97+ font-style: italic; }
98+
99+.reveal ol,
100+.reveal dl,
101+.reveal ul {
102+ display: inline-block;
103+ text-align: left;
104+ margin: 0 0 0 1em; }
105+
106+.reveal ol {
107+ list-style-type: decimal; }
108+
109+.reveal ul {
110+ list-style-type: disc; }
111+
112+.reveal ul ul {
113+ list-style-type: square; }
114+
115+.reveal ul ul ul {
116+ list-style-type: circle; }
117+
118+.reveal ul ul,
119+.reveal ul ol,
120+.reveal ol ol,
121+.reveal ol ul {
122+ display: block;
123+ margin-left: 40px; }
124+
125+.reveal dt {
126+ font-weight: bold; }
127+
128+.reveal dd {
129+ margin-left: 40px; }
130+
131+.reveal blockquote {
132+ display: block;
133+ position: relative;
134+ width: 70%;
135+ margin: 20px auto;
136+ padding: 5px;
137+ font-style: italic;
138+ background: rgba(255, 255, 255, 0.05);
139+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
140+
141+.reveal blockquote p:first-child,
142+.reveal blockquote p:last-child {
143+ display: inline-block; }
144+
145+.reveal q {
146+ font-style: italic; }
147+
148+.reveal pre {
149+ display: block;
150+ position: relative;
151+ width: 90%;
152+ margin: 20px auto;
153+ text-align: left;
154+ font-size: 0.55em;
155+ font-family: monospace;
156+ line-height: 1.2em;
157+ word-wrap: break-word;
158+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
159+
160+.reveal code {
161+ font-family: monospace;
162+ text-transform: none; }
163+
164+.reveal pre code {
165+ display: block;
166+ padding: 5px;
167+ overflow: auto;
168+ max-height: 400px;
169+ word-wrap: normal; }
170+
171+.reveal table {
172+ margin: auto;
173+ border-collapse: collapse;
174+ border-spacing: 0; }
175+
176+.reveal table th {
177+ font-weight: bold; }
178+
179+.reveal table th,
180+.reveal table td {
181+ text-align: left;
182+ padding: 0.2em 0.5em 0.2em 0.5em;
183+ border-bottom: 1px solid; }
184+
185+.reveal table th[align="center"],
186+.reveal table td[align="center"] {
187+ text-align: center; }
188+
189+.reveal table th[align="right"],
190+.reveal table td[align="right"] {
191+ text-align: right; }
192+
193+.reveal table tbody tr:last-child th,
194+.reveal table tbody tr:last-child td {
195+ border-bottom: none; }
196+
197+.reveal sup {
198+ vertical-align: super;
199+ font-size: smaller; }
200+
201+.reveal sub {
202+ vertical-align: sub;
203+ font-size: smaller; }
204+
205+.reveal small {
206+ display: inline-block;
207+ font-size: 0.6em;
208+ line-height: 1.2em;
209+ vertical-align: top; }
210+
211+.reveal small * {
212+ vertical-align: top; }
213+
214+/*********************************************
215+ * LINKS
216+ *********************************************/
217+.reveal a {
218+ color: #13DAEC;
219+ text-decoration: none;
220+ -webkit-transition: color .15s ease;
221+ -moz-transition: color .15s ease;
222+ transition: color .15s ease; }
223+
224+.reveal a:hover {
225+ color: #71e9f4;
226+ text-shadow: none;
227+ border: none; }
228+
229+.reveal .roll span:after {
230+ color: #fff;
231+ background: #0d99a5; }
232+
233+/*********************************************
234+ * IMAGES
235+ *********************************************/
236+.reveal section img {
237+ margin: 15px 0px;
238+ background: rgba(255, 255, 255, 0.12);
239+ border: 4px solid #eee;
240+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
241+
242+.reveal section img.plain {
243+ border: 0;
244+ box-shadow: none; }
245+
246+.reveal a img {
247+ -webkit-transition: all .15s linear;
248+ -moz-transition: all .15s linear;
249+ transition: all .15s linear; }
250+
251+.reveal a:hover img {
252+ background: rgba(255, 255, 255, 0.2);
253+ border-color: #13DAEC;
254+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
255+
256+/*********************************************
257+ * NAVIGATION CONTROLS
258+ *********************************************/
259+.reveal .controls {
260+ color: #13DAEC; }
261+
262+/*********************************************
263+ * PROGRESS BAR
264+ *********************************************/
265+.reveal .progress {
266+ background: rgba(0, 0, 0, 0.2);
267+ color: #13DAEC; }
268+
269+.reveal .progress span {
270+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
271+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
272+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
273+
274+/*********************************************
275+ * PRINT BACKGROUND
276+ *********************************************/
277+@media print {
278+ .backgrounds {
279+ background-color: #2b2b2b; } }
css/theme/moon.cssnew file+277
@@ -0,0 +1,277 @@
1+/**
2+ * Solarized Dark theme for reveal.js.
3+ * Author: Achim Staebler
4+ */
5+@import url(../../lib/font/league-gothic/league-gothic.css);
6+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
7+/**
8+ * Solarized colors by Ethan Schoonover
9+ */
10+html * {
11+ color-profile: sRGB;
12+ rendering-intent: auto; }
13+
14+/*********************************************
15+ * GLOBAL STYLES
16+ *********************************************/
17+body {
18+ background: #002b36;
19+ background-color: #002b36; }
20+
21+.reveal {
22+ font-family: "Lato", sans-serif;
23+ font-size: 40px;
24+ font-weight: normal;
25+ color: #93a1a1; }
26+
27+::selection {
28+ color: #fff;
29+ background: #d33682;
30+ text-shadow: none; }
31+
32+::-moz-selection {
33+ color: #fff;
34+ background: #d33682;
35+ text-shadow: none; }
36+
37+.reveal .slides section,
38+.reveal .slides section > section {
39+ line-height: 1.3;
40+ font-weight: inherit; }
41+
42+/*********************************************
43+ * HEADERS
44+ *********************************************/
45+.reveal h1,
46+.reveal h2,
47+.reveal h3,
48+.reveal h4,
49+.reveal h5,
50+.reveal h6 {
51+ margin: 0 0 20px 0;
52+ color: #eee8d5;
53+ font-family: "League Gothic", Impact, sans-serif;
54+ font-weight: normal;
55+ line-height: 1.2;
56+ letter-spacing: normal;
57+ text-transform: uppercase;
58+ text-shadow: none;
59+ word-wrap: break-word; }
60+
61+.reveal h1 {
62+ font-size: 3.77em; }
63+
64+.reveal h2 {
65+ font-size: 2.11em; }
66+
67+.reveal h3 {
68+ font-size: 1.55em; }
69+
70+.reveal h4 {
71+ font-size: 1em; }
72+
73+.reveal h1 {
74+ text-shadow: none; }
75+
76+/*********************************************
77+ * OTHER
78+ *********************************************/
79+.reveal p {
80+ margin: 20px 0;
81+ line-height: 1.3; }
82+
83+/* Ensure certain elements are never larger than the slide itself */
84+.reveal img,
85+.reveal video,
86+.reveal iframe {
87+ max-width: 95%;
88+ max-height: 95%; }
89+
90+.reveal strong,
91+.reveal b {
92+ font-weight: bold; }
93+
94+.reveal em {
95+ font-style: italic; }
96+
97+.reveal ol,
98+.reveal dl,
99+.reveal ul {
100+ display: inline-block;
101+ text-align: left;
102+ margin: 0 0 0 1em; }
103+
104+.reveal ol {
105+ list-style-type: decimal; }
106+
107+.reveal ul {
108+ list-style-type: disc; }
109+
110+.reveal ul ul {
111+ list-style-type: square; }
112+
113+.reveal ul ul ul {
114+ list-style-type: circle; }
115+
116+.reveal ul ul,
117+.reveal ul ol,
118+.reveal ol ol,
119+.reveal ol ul {
120+ display: block;
121+ margin-left: 40px; }
122+
123+.reveal dt {
124+ font-weight: bold; }
125+
126+.reveal dd {
127+ margin-left: 40px; }
128+
129+.reveal blockquote {
130+ display: block;
131+ position: relative;
132+ width: 70%;
133+ margin: 20px auto;
134+ padding: 5px;
135+ font-style: italic;
136+ background: rgba(255, 255, 255, 0.05);
137+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
138+
139+.reveal blockquote p:first-child,
140+.reveal blockquote p:last-child {
141+ display: inline-block; }
142+
143+.reveal q {
144+ font-style: italic; }
145+
146+.reveal pre {
147+ display: block;
148+ position: relative;
149+ width: 90%;
150+ margin: 20px auto;
151+ text-align: left;
152+ font-size: 0.55em;
153+ font-family: monospace;
154+ line-height: 1.2em;
155+ word-wrap: break-word;
156+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
157+
158+.reveal code {
159+ font-family: monospace;
160+ text-transform: none; }
161+
162+.reveal pre code {
163+ display: block;
164+ padding: 5px;
165+ overflow: auto;
166+ max-height: 400px;
167+ word-wrap: normal; }
168+
169+.reveal table {
170+ margin: auto;
171+ border-collapse: collapse;
172+ border-spacing: 0; }
173+
174+.reveal table th {
175+ font-weight: bold; }
176+
177+.reveal table th,
178+.reveal table td {
179+ text-align: left;
180+ padding: 0.2em 0.5em 0.2em 0.5em;
181+ border-bottom: 1px solid; }
182+
183+.reveal table th[align="center"],
184+.reveal table td[align="center"] {
185+ text-align: center; }
186+
187+.reveal table th[align="right"],
188+.reveal table td[align="right"] {
189+ text-align: right; }
190+
191+.reveal table tbody tr:last-child th,
192+.reveal table tbody tr:last-child td {
193+ border-bottom: none; }
194+
195+.reveal sup {
196+ vertical-align: super;
197+ font-size: smaller; }
198+
199+.reveal sub {
200+ vertical-align: sub;
201+ font-size: smaller; }
202+
203+.reveal small {
204+ display: inline-block;
205+ font-size: 0.6em;
206+ line-height: 1.2em;
207+ vertical-align: top; }
208+
209+.reveal small * {
210+ vertical-align: top; }
211+
212+/*********************************************
213+ * LINKS
214+ *********************************************/
215+.reveal a {
216+ color: #268bd2;
217+ text-decoration: none;
218+ -webkit-transition: color .15s ease;
219+ -moz-transition: color .15s ease;
220+ transition: color .15s ease; }
221+
222+.reveal a:hover {
223+ color: #78b9e6;
224+ text-shadow: none;
225+ border: none; }
226+
227+.reveal .roll span:after {
228+ color: #fff;
229+ background: #1a6091; }
230+
231+/*********************************************
232+ * IMAGES
233+ *********************************************/
234+.reveal section img {
235+ margin: 15px 0px;
236+ background: rgba(255, 255, 255, 0.12);
237+ border: 4px solid #93a1a1;
238+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
239+
240+.reveal section img.plain {
241+ border: 0;
242+ box-shadow: none; }
243+
244+.reveal a img {
245+ -webkit-transition: all .15s linear;
246+ -moz-transition: all .15s linear;
247+ transition: all .15s linear; }
248+
249+.reveal a:hover img {
250+ background: rgba(255, 255, 255, 0.2);
251+ border-color: #268bd2;
252+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
253+
254+/*********************************************
255+ * NAVIGATION CONTROLS
256+ *********************************************/
257+.reveal .controls {
258+ color: #268bd2; }
259+
260+/*********************************************
261+ * PROGRESS BAR
262+ *********************************************/
263+.reveal .progress {
264+ background: rgba(0, 0, 0, 0.2);
265+ color: #268bd2; }
266+
267+.reveal .progress span {
268+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
269+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
270+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
271+
272+/*********************************************
273+ * PRINT BACKGROUND
274+ *********************************************/
275+@media print {
276+ .backgrounds {
277+ background-color: #002b36; } }
css/theme/night.cssnew file+271
@@ -0,0 +1,271 @@
1+/**
2+ * Black theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
7+@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
8+/*********************************************
9+ * GLOBAL STYLES
10+ *********************************************/
11+body {
12+ background: #111;
13+ background-color: #111; }
14+
15+.reveal {
16+ font-family: "Open Sans", sans-serif;
17+ font-size: 40px;
18+ font-weight: normal;
19+ color: #eee; }
20+
21+::selection {
22+ color: #fff;
23+ background: #e7ad52;
24+ text-shadow: none; }
25+
26+::-moz-selection {
27+ color: #fff;
28+ background: #e7ad52;
29+ text-shadow: none; }
30+
31+.reveal .slides section,
32+.reveal .slides section > section {
33+ line-height: 1.3;
34+ font-weight: inherit; }
35+
36+/*********************************************
37+ * HEADERS
38+ *********************************************/
39+.reveal h1,
40+.reveal h2,
41+.reveal h3,
42+.reveal h4,
43+.reveal h5,
44+.reveal h6 {
45+ margin: 0 0 20px 0;
46+ color: #eee;
47+ font-family: "Montserrat", Impact, sans-serif;
48+ font-weight: normal;
49+ line-height: 1.2;
50+ letter-spacing: -0.03em;
51+ text-transform: none;
52+ text-shadow: none;
53+ word-wrap: break-word; }
54+
55+.reveal h1 {
56+ font-size: 3.77em; }
57+
58+.reveal h2 {
59+ font-size: 2.11em; }
60+
61+.reveal h3 {
62+ font-size: 1.55em; }
63+
64+.reveal h4 {
65+ font-size: 1em; }
66+
67+.reveal h1 {
68+ text-shadow: none; }
69+
70+/*********************************************
71+ * OTHER
72+ *********************************************/
73+.reveal p {
74+ margin: 20px 0;
75+ line-height: 1.3; }
76+
77+/* Ensure certain elements are never larger than the slide itself */
78+.reveal img,
79+.reveal video,
80+.reveal iframe {
81+ max-width: 95%;
82+ max-height: 95%; }
83+
84+.reveal strong,
85+.reveal b {
86+ font-weight: bold; }
87+
88+.reveal em {
89+ font-style: italic; }
90+
91+.reveal ol,
92+.reveal dl,
93+.reveal ul {
94+ display: inline-block;
95+ text-align: left;
96+ margin: 0 0 0 1em; }
97+
98+.reveal ol {
99+ list-style-type: decimal; }
100+
101+.reveal ul {
102+ list-style-type: disc; }
103+
104+.reveal ul ul {
105+ list-style-type: square; }
106+
107+.reveal ul ul ul {
108+ list-style-type: circle; }
109+
110+.reveal ul ul,
111+.reveal ul ol,
112+.reveal ol ol,
113+.reveal ol ul {
114+ display: block;
115+ margin-left: 40px; }
116+
117+.reveal dt {
118+ font-weight: bold; }
119+
120+.reveal dd {
121+ margin-left: 40px; }
122+
123+.reveal blockquote {
124+ display: block;
125+ position: relative;
126+ width: 70%;
127+ margin: 20px auto;
128+ padding: 5px;
129+ font-style: italic;
130+ background: rgba(255, 255, 255, 0.05);
131+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
132+
133+.reveal blockquote p:first-child,
134+.reveal blockquote p:last-child {
135+ display: inline-block; }
136+
137+.reveal q {
138+ font-style: italic; }
139+
140+.reveal pre {
141+ display: block;
142+ position: relative;
143+ width: 90%;
144+ margin: 20px auto;
145+ text-align: left;
146+ font-size: 0.55em;
147+ font-family: monospace;
148+ line-height: 1.2em;
149+ word-wrap: break-word;
150+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
151+
152+.reveal code {
153+ font-family: monospace;
154+ text-transform: none; }
155+
156+.reveal pre code {
157+ display: block;
158+ padding: 5px;
159+ overflow: auto;
160+ max-height: 400px;
161+ word-wrap: normal; }
162+
163+.reveal table {
164+ margin: auto;
165+ border-collapse: collapse;
166+ border-spacing: 0; }
167+
168+.reveal table th {
169+ font-weight: bold; }
170+
171+.reveal table th,
172+.reveal table td {
173+ text-align: left;
174+ padding: 0.2em 0.5em 0.2em 0.5em;
175+ border-bottom: 1px solid; }
176+
177+.reveal table th[align="center"],
178+.reveal table td[align="center"] {
179+ text-align: center; }
180+
181+.reveal table th[align="right"],
182+.reveal table td[align="right"] {
183+ text-align: right; }
184+
185+.reveal table tbody tr:last-child th,
186+.reveal table tbody tr:last-child td {
187+ border-bottom: none; }
188+
189+.reveal sup {
190+ vertical-align: super;
191+ font-size: smaller; }
192+
193+.reveal sub {
194+ vertical-align: sub;
195+ font-size: smaller; }
196+
197+.reveal small {
198+ display: inline-block;
199+ font-size: 0.6em;
200+ line-height: 1.2em;
201+ vertical-align: top; }
202+
203+.reveal small * {
204+ vertical-align: top; }
205+
206+/*********************************************
207+ * LINKS
208+ *********************************************/
209+.reveal a {
210+ color: #e7ad52;
211+ text-decoration: none;
212+ -webkit-transition: color .15s ease;
213+ -moz-transition: color .15s ease;
214+ transition: color .15s ease; }
215+
216+.reveal a:hover {
217+ color: #f3d7ac;
218+ text-shadow: none;
219+ border: none; }
220+
221+.reveal .roll span:after {
222+ color: #fff;
223+ background: #d08a1d; }
224+
225+/*********************************************
226+ * IMAGES
227+ *********************************************/
228+.reveal section img {
229+ margin: 15px 0px;
230+ background: rgba(255, 255, 255, 0.12);
231+ border: 4px solid #eee;
232+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
233+
234+.reveal section img.plain {
235+ border: 0;
236+ box-shadow: none; }
237+
238+.reveal a img {
239+ -webkit-transition: all .15s linear;
240+ -moz-transition: all .15s linear;
241+ transition: all .15s linear; }
242+
243+.reveal a:hover img {
244+ background: rgba(255, 255, 255, 0.2);
245+ border-color: #e7ad52;
246+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
247+
248+/*********************************************
249+ * NAVIGATION CONTROLS
250+ *********************************************/
251+.reveal .controls {
252+ color: #e7ad52; }
253+
254+/*********************************************
255+ * PROGRESS BAR
256+ *********************************************/
257+.reveal .progress {
258+ background: rgba(0, 0, 0, 0.2);
259+ color: #e7ad52; }
260+
261+.reveal .progress span {
262+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
263+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
264+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
265+
266+/*********************************************
267+ * PRINT BACKGROUND
268+ *********************************************/
269+@media print {
270+ .backgrounds {
271+ background-color: #111; } }
css/theme/serif.cssnew file+273
@@ -0,0 +1,273 @@
1+/**
2+ * A simple theme for reveal.js presentations, similar
3+ * to the default theme. The accent color is brown.
4+ *
5+ * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6+ */
7+.reveal a {
8+ line-height: 1.3em; }
9+
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+body {
14+ background: #F0F1EB;
15+ background-color: #F0F1EB; }
16+
17+.reveal {
18+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
19+ font-size: 40px;
20+ font-weight: normal;
21+ color: #000; }
22+
23+::selection {
24+ color: #fff;
25+ background: #26351C;
26+ text-shadow: none; }
27+
28+::-moz-selection {
29+ color: #fff;
30+ background: #26351C;
31+ text-shadow: none; }
32+
33+.reveal .slides section,
34+.reveal .slides section > section {
35+ line-height: 1.3;
36+ font-weight: inherit; }
37+
38+/*********************************************
39+ * HEADERS
40+ *********************************************/
41+.reveal h1,
42+.reveal h2,
43+.reveal h3,
44+.reveal h4,
45+.reveal h5,
46+.reveal h6 {
47+ margin: 0 0 20px 0;
48+ color: #383D3D;
49+ font-family: "Palatino Linotype", "Book Antiqua", Palatino, FreeSerif, serif;
50+ font-weight: normal;
51+ line-height: 1.2;
52+ letter-spacing: normal;
53+ text-transform: none;
54+ text-shadow: none;
55+ word-wrap: break-word; }
56+
57+.reveal h1 {
58+ font-size: 3.77em; }
59+
60+.reveal h2 {
61+ font-size: 2.11em; }
62+
63+.reveal h3 {
64+ font-size: 1.55em; }
65+
66+.reveal h4 {
67+ font-size: 1em; }
68+
69+.reveal h1 {
70+ text-shadow: none; }
71+
72+/*********************************************
73+ * OTHER
74+ *********************************************/
75+.reveal p {
76+ margin: 20px 0;
77+ line-height: 1.3; }
78+
79+/* Ensure certain elements are never larger than the slide itself */
80+.reveal img,
81+.reveal video,
82+.reveal iframe {
83+ max-width: 95%;
84+ max-height: 95%; }
85+
86+.reveal strong,
87+.reveal b {
88+ font-weight: bold; }
89+
90+.reveal em {
91+ font-style: italic; }
92+
93+.reveal ol,
94+.reveal dl,
95+.reveal ul {
96+ display: inline-block;
97+ text-align: left;
98+ margin: 0 0 0 1em; }
99+
100+.reveal ol {
101+ list-style-type: decimal; }
102+
103+.reveal ul {
104+ list-style-type: disc; }
105+
106+.reveal ul ul {
107+ list-style-type: square; }
108+
109+.reveal ul ul ul {
110+ list-style-type: circle; }
111+
112+.reveal ul ul,
113+.reveal ul ol,
114+.reveal ol ol,
115+.reveal ol ul {
116+ display: block;
117+ margin-left: 40px; }
118+
119+.reveal dt {
120+ font-weight: bold; }
121+
122+.reveal dd {
123+ margin-left: 40px; }
124+
125+.reveal blockquote {
126+ display: block;
127+ position: relative;
128+ width: 70%;
129+ margin: 20px auto;
130+ padding: 5px;
131+ font-style: italic;
132+ background: rgba(255, 255, 255, 0.05);
133+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
134+
135+.reveal blockquote p:first-child,
136+.reveal blockquote p:last-child {
137+ display: inline-block; }
138+
139+.reveal q {
140+ font-style: italic; }
141+
142+.reveal pre {
143+ display: block;
144+ position: relative;
145+ width: 90%;
146+ margin: 20px auto;
147+ text-align: left;
148+ font-size: 0.55em;
149+ font-family: monospace;
150+ line-height: 1.2em;
151+ word-wrap: break-word;
152+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
153+
154+.reveal code {
155+ font-family: monospace;
156+ text-transform: none; }
157+
158+.reveal pre code {
159+ display: block;
160+ padding: 5px;
161+ overflow: auto;
162+ max-height: 400px;
163+ word-wrap: normal; }
164+
165+.reveal table {
166+ margin: auto;
167+ border-collapse: collapse;
168+ border-spacing: 0; }
169+
170+.reveal table th {
171+ font-weight: bold; }
172+
173+.reveal table th,
174+.reveal table td {
175+ text-align: left;
176+ padding: 0.2em 0.5em 0.2em 0.5em;
177+ border-bottom: 1px solid; }
178+
179+.reveal table th[align="center"],
180+.reveal table td[align="center"] {
181+ text-align: center; }
182+
183+.reveal table th[align="right"],
184+.reveal table td[align="right"] {
185+ text-align: right; }
186+
187+.reveal table tbody tr:last-child th,
188+.reveal table tbody tr:last-child td {
189+ border-bottom: none; }
190+
191+.reveal sup {
192+ vertical-align: super;
193+ font-size: smaller; }
194+
195+.reveal sub {
196+ vertical-align: sub;
197+ font-size: smaller; }
198+
199+.reveal small {
200+ display: inline-block;
201+ font-size: 0.6em;
202+ line-height: 1.2em;
203+ vertical-align: top; }
204+
205+.reveal small * {
206+ vertical-align: top; }
207+
208+/*********************************************
209+ * LINKS
210+ *********************************************/
211+.reveal a {
212+ color: #51483D;
213+ text-decoration: none;
214+ -webkit-transition: color .15s ease;
215+ -moz-transition: color .15s ease;
216+ transition: color .15s ease; }
217+
218+.reveal a:hover {
219+ color: #8b7c69;
220+ text-shadow: none;
221+ border: none; }
222+
223+.reveal .roll span:after {
224+ color: #fff;
225+ background: #25211c; }
226+
227+/*********************************************
228+ * IMAGES
229+ *********************************************/
230+.reveal section img {
231+ margin: 15px 0px;
232+ background: rgba(255, 255, 255, 0.12);
233+ border: 4px solid #000;
234+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235+
236+.reveal section img.plain {
237+ border: 0;
238+ box-shadow: none; }
239+
240+.reveal a img {
241+ -webkit-transition: all .15s linear;
242+ -moz-transition: all .15s linear;
243+ transition: all .15s linear; }
244+
245+.reveal a:hover img {
246+ background: rgba(255, 255, 255, 0.2);
247+ border-color: #51483D;
248+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249+
250+/*********************************************
251+ * NAVIGATION CONTROLS
252+ *********************************************/
253+.reveal .controls {
254+ color: #51483D; }
255+
256+/*********************************************
257+ * PROGRESS BAR
258+ *********************************************/
259+.reveal .progress {
260+ background: rgba(0, 0, 0, 0.2);
261+ color: #51483D; }
262+
263+.reveal .progress span {
264+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
265+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
267+
268+/*********************************************
269+ * PRINT BACKGROUND
270+ *********************************************/
271+@media print {
272+ .backgrounds {
273+ background-color: #F0F1EB; } }
css/theme/simple.cssnew file+276
@@ -0,0 +1,276 @@
1+/**
2+ * A simple theme for reveal.js presentations, similar
3+ * to the default theme. The accent color is darkblue.
4+ *
5+ * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6+ * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7+ */
8+@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
9+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
10+section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
11+ color: #fff; }
12+
13+/*********************************************
14+ * GLOBAL STYLES
15+ *********************************************/
16+body {
17+ background: #fff;
18+ background-color: #fff; }
19+
20+.reveal {
21+ font-family: "Lato", sans-serif;
22+ font-size: 40px;
23+ font-weight: normal;
24+ color: #000; }
25+
26+::selection {
27+ color: #fff;
28+ background: rgba(0, 0, 0, 0.99);
29+ text-shadow: none; }
30+
31+::-moz-selection {
32+ color: #fff;
33+ background: rgba(0, 0, 0, 0.99);
34+ text-shadow: none; }
35+
36+.reveal .slides section,
37+.reveal .slides section > section {
38+ line-height: 1.3;
39+ font-weight: inherit; }
40+
41+/*********************************************
42+ * HEADERS
43+ *********************************************/
44+.reveal h1,
45+.reveal h2,
46+.reveal h3,
47+.reveal h4,
48+.reveal h5,
49+.reveal h6 {
50+ margin: 0 0 20px 0;
51+ color: #000;
52+ font-family: "News Cycle", Impact, sans-serif;
53+ font-weight: normal;
54+ line-height: 1.2;
55+ letter-spacing: normal;
56+ text-transform: none;
57+ text-shadow: none;
58+ word-wrap: break-word; }
59+
60+.reveal h1 {
61+ font-size: 3.77em; }
62+
63+.reveal h2 {
64+ font-size: 2.11em; }
65+
66+.reveal h3 {
67+ font-size: 1.55em; }
68+
69+.reveal h4 {
70+ font-size: 1em; }
71+
72+.reveal h1 {
73+ text-shadow: none; }
74+
75+/*********************************************
76+ * OTHER
77+ *********************************************/
78+.reveal p {
79+ margin: 20px 0;
80+ line-height: 1.3; }
81+
82+/* Ensure certain elements are never larger than the slide itself */
83+.reveal img,
84+.reveal video,
85+.reveal iframe {
86+ max-width: 95%;
87+ max-height: 95%; }
88+
89+.reveal strong,
90+.reveal b {
91+ font-weight: bold; }
92+
93+.reveal em {
94+ font-style: italic; }
95+
96+.reveal ol,
97+.reveal dl,
98+.reveal ul {
99+ display: inline-block;
100+ text-align: left;
101+ margin: 0 0 0 1em; }
102+
103+.reveal ol {
104+ list-style-type: decimal; }
105+
106+.reveal ul {
107+ list-style-type: disc; }
108+
109+.reveal ul ul {
110+ list-style-type: square; }
111+
112+.reveal ul ul ul {
113+ list-style-type: circle; }
114+
115+.reveal ul ul,
116+.reveal ul ol,
117+.reveal ol ol,
118+.reveal ol ul {
119+ display: block;
120+ margin-left: 40px; }
121+
122+.reveal dt {
123+ font-weight: bold; }
124+
125+.reveal dd {
126+ margin-left: 40px; }
127+
128+.reveal blockquote {
129+ display: block;
130+ position: relative;
131+ width: 70%;
132+ margin: 20px auto;
133+ padding: 5px;
134+ font-style: italic;
135+ background: rgba(255, 255, 255, 0.05);
136+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
137+
138+.reveal blockquote p:first-child,
139+.reveal blockquote p:last-child {
140+ display: inline-block; }
141+
142+.reveal q {
143+ font-style: italic; }
144+
145+.reveal pre {
146+ display: block;
147+ position: relative;
148+ width: 90%;
149+ margin: 20px auto;
150+ text-align: left;
151+ font-size: 0.55em;
152+ font-family: monospace;
153+ line-height: 1.2em;
154+ word-wrap: break-word;
155+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
156+
157+.reveal code {
158+ font-family: monospace;
159+ text-transform: none; }
160+
161+.reveal pre code {
162+ display: block;
163+ padding: 5px;
164+ overflow: auto;
165+ max-height: 400px;
166+ word-wrap: normal; }
167+
168+.reveal table {
169+ margin: auto;
170+ border-collapse: collapse;
171+ border-spacing: 0; }
172+
173+.reveal table th {
174+ font-weight: bold; }
175+
176+.reveal table th,
177+.reveal table td {
178+ text-align: left;
179+ padding: 0.2em 0.5em 0.2em 0.5em;
180+ border-bottom: 1px solid; }
181+
182+.reveal table th[align="center"],
183+.reveal table td[align="center"] {
184+ text-align: center; }
185+
186+.reveal table th[align="right"],
187+.reveal table td[align="right"] {
188+ text-align: right; }
189+
190+.reveal table tbody tr:last-child th,
191+.reveal table tbody tr:last-child td {
192+ border-bottom: none; }
193+
194+.reveal sup {
195+ vertical-align: super;
196+ font-size: smaller; }
197+
198+.reveal sub {
199+ vertical-align: sub;
200+ font-size: smaller; }
201+
202+.reveal small {
203+ display: inline-block;
204+ font-size: 0.6em;
205+ line-height: 1.2em;
206+ vertical-align: top; }
207+
208+.reveal small * {
209+ vertical-align: top; }
210+
211+/*********************************************
212+ * LINKS
213+ *********************************************/
214+.reveal a {
215+ color: #00008B;
216+ text-decoration: none;
217+ -webkit-transition: color .15s ease;
218+ -moz-transition: color .15s ease;
219+ transition: color .15s ease; }
220+
221+.reveal a:hover {
222+ color: #0000f1;
223+ text-shadow: none;
224+ border: none; }
225+
226+.reveal .roll span:after {
227+ color: #fff;
228+ background: #00003f; }
229+
230+/*********************************************
231+ * IMAGES
232+ *********************************************/
233+.reveal section img {
234+ margin: 15px 0px;
235+ background: rgba(255, 255, 255, 0.12);
236+ border: 4px solid #000;
237+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
238+
239+.reveal section img.plain {
240+ border: 0;
241+ box-shadow: none; }
242+
243+.reveal a img {
244+ -webkit-transition: all .15s linear;
245+ -moz-transition: all .15s linear;
246+ transition: all .15s linear; }
247+
248+.reveal a:hover img {
249+ background: rgba(255, 255, 255, 0.2);
250+ border-color: #00008B;
251+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
252+
253+/*********************************************
254+ * NAVIGATION CONTROLS
255+ *********************************************/
256+.reveal .controls {
257+ color: #00008B; }
258+
259+/*********************************************
260+ * PROGRESS BAR
261+ *********************************************/
262+.reveal .progress {
263+ background: rgba(0, 0, 0, 0.2);
264+ color: #00008B; }
265+
266+.reveal .progress span {
267+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
268+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
269+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
270+
271+/*********************************************
272+ * PRINT BACKGROUND
273+ *********************************************/
274+@media print {
275+ .backgrounds {
276+ background-color: #fff; } }
css/theme/sky.cssnew file+280
@@ -0,0 +1,280 @@
1+/**
2+ * Sky theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
7+@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
8+.reveal a {
9+ line-height: 1.3em; }
10+
11+/*********************************************
12+ * GLOBAL STYLES
13+ *********************************************/
14+body {
15+ background: #add9e4;
16+ background: -moz-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
17+ background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #f7fbfc), color-stop(100%, #add9e4));
18+ background: -webkit-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
19+ background: -o-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
20+ background: -ms-radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
21+ background: radial-gradient(center, circle cover, #f7fbfc 0%, #add9e4 100%);
22+ background-color: #f7fbfc; }
23+
24+.reveal {
25+ font-family: "Open Sans", sans-serif;
26+ font-size: 40px;
27+ font-weight: normal;
28+ color: #333; }
29+
30+::selection {
31+ color: #fff;
32+ background: #134674;
33+ text-shadow: none; }
34+
35+::-moz-selection {
36+ color: #fff;
37+ background: #134674;
38+ text-shadow: none; }
39+
40+.reveal .slides section,
41+.reveal .slides section > section {
42+ line-height: 1.3;
43+ font-weight: inherit; }
44+
45+/*********************************************
46+ * HEADERS
47+ *********************************************/
48+.reveal h1,
49+.reveal h2,
50+.reveal h3,
51+.reveal h4,
52+.reveal h5,
53+.reveal h6 {
54+ margin: 0 0 20px 0;
55+ color: #333;
56+ font-family: "Quicksand", sans-serif;
57+ font-weight: normal;
58+ line-height: 1.2;
59+ letter-spacing: -0.08em;
60+ text-transform: uppercase;
61+ text-shadow: none;
62+ word-wrap: break-word; }
63+
64+.reveal h1 {
65+ font-size: 3.77em; }
66+
67+.reveal h2 {
68+ font-size: 2.11em; }
69+
70+.reveal h3 {
71+ font-size: 1.55em; }
72+
73+.reveal h4 {
74+ font-size: 1em; }
75+
76+.reveal h1 {
77+ text-shadow: none; }
78+
79+/*********************************************
80+ * OTHER
81+ *********************************************/
82+.reveal p {
83+ margin: 20px 0;
84+ line-height: 1.3; }
85+
86+/* Ensure certain elements are never larger than the slide itself */
87+.reveal img,
88+.reveal video,
89+.reveal iframe {
90+ max-width: 95%;
91+ max-height: 95%; }
92+
93+.reveal strong,
94+.reveal b {
95+ font-weight: bold; }
96+
97+.reveal em {
98+ font-style: italic; }
99+
100+.reveal ol,
101+.reveal dl,
102+.reveal ul {
103+ display: inline-block;
104+ text-align: left;
105+ margin: 0 0 0 1em; }
106+
107+.reveal ol {
108+ list-style-type: decimal; }
109+
110+.reveal ul {
111+ list-style-type: disc; }
112+
113+.reveal ul ul {
114+ list-style-type: square; }
115+
116+.reveal ul ul ul {
117+ list-style-type: circle; }
118+
119+.reveal ul ul,
120+.reveal ul ol,
121+.reveal ol ol,
122+.reveal ol ul {
123+ display: block;
124+ margin-left: 40px; }
125+
126+.reveal dt {
127+ font-weight: bold; }
128+
129+.reveal dd {
130+ margin-left: 40px; }
131+
132+.reveal blockquote {
133+ display: block;
134+ position: relative;
135+ width: 70%;
136+ margin: 20px auto;
137+ padding: 5px;
138+ font-style: italic;
139+ background: rgba(255, 255, 255, 0.05);
140+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
141+
142+.reveal blockquote p:first-child,
143+.reveal blockquote p:last-child {
144+ display: inline-block; }
145+
146+.reveal q {
147+ font-style: italic; }
148+
149+.reveal pre {
150+ display: block;
151+ position: relative;
152+ width: 90%;
153+ margin: 20px auto;
154+ text-align: left;
155+ font-size: 0.55em;
156+ font-family: monospace;
157+ line-height: 1.2em;
158+ word-wrap: break-word;
159+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
160+
161+.reveal code {
162+ font-family: monospace;
163+ text-transform: none; }
164+
165+.reveal pre code {
166+ display: block;
167+ padding: 5px;
168+ overflow: auto;
169+ max-height: 400px;
170+ word-wrap: normal; }
171+
172+.reveal table {
173+ margin: auto;
174+ border-collapse: collapse;
175+ border-spacing: 0; }
176+
177+.reveal table th {
178+ font-weight: bold; }
179+
180+.reveal table th,
181+.reveal table td {
182+ text-align: left;
183+ padding: 0.2em 0.5em 0.2em 0.5em;
184+ border-bottom: 1px solid; }
185+
186+.reveal table th[align="center"],
187+.reveal table td[align="center"] {
188+ text-align: center; }
189+
190+.reveal table th[align="right"],
191+.reveal table td[align="right"] {
192+ text-align: right; }
193+
194+.reveal table tbody tr:last-child th,
195+.reveal table tbody tr:last-child td {
196+ border-bottom: none; }
197+
198+.reveal sup {
199+ vertical-align: super;
200+ font-size: smaller; }
201+
202+.reveal sub {
203+ vertical-align: sub;
204+ font-size: smaller; }
205+
206+.reveal small {
207+ display: inline-block;
208+ font-size: 0.6em;
209+ line-height: 1.2em;
210+ vertical-align: top; }
211+
212+.reveal small * {
213+ vertical-align: top; }
214+
215+/*********************************************
216+ * LINKS
217+ *********************************************/
218+.reveal a {
219+ color: #3b759e;
220+ text-decoration: none;
221+ -webkit-transition: color .15s ease;
222+ -moz-transition: color .15s ease;
223+ transition: color .15s ease; }
224+
225+.reveal a:hover {
226+ color: #74a7cb;
227+ text-shadow: none;
228+ border: none; }
229+
230+.reveal .roll span:after {
231+ color: #fff;
232+ background: #264c66; }
233+
234+/*********************************************
235+ * IMAGES
236+ *********************************************/
237+.reveal section img {
238+ margin: 15px 0px;
239+ background: rgba(255, 255, 255, 0.12);
240+ border: 4px solid #333;
241+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
242+
243+.reveal section img.plain {
244+ border: 0;
245+ box-shadow: none; }
246+
247+.reveal a img {
248+ -webkit-transition: all .15s linear;
249+ -moz-transition: all .15s linear;
250+ transition: all .15s linear; }
251+
252+.reveal a:hover img {
253+ background: rgba(255, 255, 255, 0.2);
254+ border-color: #3b759e;
255+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
256+
257+/*********************************************
258+ * NAVIGATION CONTROLS
259+ *********************************************/
260+.reveal .controls {
261+ color: #3b759e; }
262+
263+/*********************************************
264+ * PROGRESS BAR
265+ *********************************************/
266+.reveal .progress {
267+ background: rgba(0, 0, 0, 0.2);
268+ color: #3b759e; }
269+
270+.reveal .progress span {
271+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
272+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
273+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
274+
275+/*********************************************
276+ * PRINT BACKGROUND
277+ *********************************************/
278+@media print {
279+ .backgrounds {
280+ background-color: #f7fbfc; } }
css/theme/solarized.cssnew file+277
@@ -0,0 +1,277 @@
1+/**
2+ * Solarized Light theme for reveal.js.
3+ * Author: Achim Staebler
4+ */
5+@import url(../../lib/font/league-gothic/league-gothic.css);
6+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
7+/**
8+ * Solarized colors by Ethan Schoonover
9+ */
10+html * {
11+ color-profile: sRGB;
12+ rendering-intent: auto; }
13+
14+/*********************************************
15+ * GLOBAL STYLES
16+ *********************************************/
17+body {
18+ background: #fdf6e3;
19+ background-color: #fdf6e3; }
20+
21+.reveal {
22+ font-family: "Lato", sans-serif;
23+ font-size: 40px;
24+ font-weight: normal;
25+ color: #657b83; }
26+
27+::selection {
28+ color: #fff;
29+ background: #d33682;
30+ text-shadow: none; }
31+
32+::-moz-selection {
33+ color: #fff;
34+ background: #d33682;
35+ text-shadow: none; }
36+
37+.reveal .slides section,
38+.reveal .slides section > section {
39+ line-height: 1.3;
40+ font-weight: inherit; }
41+
42+/*********************************************
43+ * HEADERS
44+ *********************************************/
45+.reveal h1,
46+.reveal h2,
47+.reveal h3,
48+.reveal h4,
49+.reveal h5,
50+.reveal h6 {
51+ margin: 0 0 20px 0;
52+ color: #586e75;
53+ font-family: "League Gothic", Impact, sans-serif;
54+ font-weight: normal;
55+ line-height: 1.2;
56+ letter-spacing: normal;
57+ text-transform: uppercase;
58+ text-shadow: none;
59+ word-wrap: break-word; }
60+
61+.reveal h1 {
62+ font-size: 3.77em; }
63+
64+.reveal h2 {
65+ font-size: 2.11em; }
66+
67+.reveal h3 {
68+ font-size: 1.55em; }
69+
70+.reveal h4 {
71+ font-size: 1em; }
72+
73+.reveal h1 {
74+ text-shadow: none; }
75+
76+/*********************************************
77+ * OTHER
78+ *********************************************/
79+.reveal p {
80+ margin: 20px 0;
81+ line-height: 1.3; }
82+
83+/* Ensure certain elements are never larger than the slide itself */
84+.reveal img,
85+.reveal video,
86+.reveal iframe {
87+ max-width: 95%;
88+ max-height: 95%; }
89+
90+.reveal strong,
91+.reveal b {
92+ font-weight: bold; }
93+
94+.reveal em {
95+ font-style: italic; }
96+
97+.reveal ol,
98+.reveal dl,
99+.reveal ul {
100+ display: inline-block;
101+ text-align: left;
102+ margin: 0 0 0 1em; }
103+
104+.reveal ol {
105+ list-style-type: decimal; }
106+
107+.reveal ul {
108+ list-style-type: disc; }
109+
110+.reveal ul ul {
111+ list-style-type: square; }
112+
113+.reveal ul ul ul {
114+ list-style-type: circle; }
115+
116+.reveal ul ul,
117+.reveal ul ol,
118+.reveal ol ol,
119+.reveal ol ul {
120+ display: block;
121+ margin-left: 40px; }
122+
123+.reveal dt {
124+ font-weight: bold; }
125+
126+.reveal dd {
127+ margin-left: 40px; }
128+
129+.reveal blockquote {
130+ display: block;
131+ position: relative;
132+ width: 70%;
133+ margin: 20px auto;
134+ padding: 5px;
135+ font-style: italic;
136+ background: rgba(255, 255, 255, 0.05);
137+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
138+
139+.reveal blockquote p:first-child,
140+.reveal blockquote p:last-child {
141+ display: inline-block; }
142+
143+.reveal q {
144+ font-style: italic; }
145+
146+.reveal pre {
147+ display: block;
148+ position: relative;
149+ width: 90%;
150+ margin: 20px auto;
151+ text-align: left;
152+ font-size: 0.55em;
153+ font-family: monospace;
154+ line-height: 1.2em;
155+ word-wrap: break-word;
156+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
157+
158+.reveal code {
159+ font-family: monospace;
160+ text-transform: none; }
161+
162+.reveal pre code {
163+ display: block;
164+ padding: 5px;
165+ overflow: auto;
166+ max-height: 400px;
167+ word-wrap: normal; }
168+
169+.reveal table {
170+ margin: auto;
171+ border-collapse: collapse;
172+ border-spacing: 0; }
173+
174+.reveal table th {
175+ font-weight: bold; }
176+
177+.reveal table th,
178+.reveal table td {
179+ text-align: left;
180+ padding: 0.2em 0.5em 0.2em 0.5em;
181+ border-bottom: 1px solid; }
182+
183+.reveal table th[align="center"],
184+.reveal table td[align="center"] {
185+ text-align: center; }
186+
187+.reveal table th[align="right"],
188+.reveal table td[align="right"] {
189+ text-align: right; }
190+
191+.reveal table tbody tr:last-child th,
192+.reveal table tbody tr:last-child td {
193+ border-bottom: none; }
194+
195+.reveal sup {
196+ vertical-align: super;
197+ font-size: smaller; }
198+
199+.reveal sub {
200+ vertical-align: sub;
201+ font-size: smaller; }
202+
203+.reveal small {
204+ display: inline-block;
205+ font-size: 0.6em;
206+ line-height: 1.2em;
207+ vertical-align: top; }
208+
209+.reveal small * {
210+ vertical-align: top; }
211+
212+/*********************************************
213+ * LINKS
214+ *********************************************/
215+.reveal a {
216+ color: #268bd2;
217+ text-decoration: none;
218+ -webkit-transition: color .15s ease;
219+ -moz-transition: color .15s ease;
220+ transition: color .15s ease; }
221+
222+.reveal a:hover {
223+ color: #78b9e6;
224+ text-shadow: none;
225+ border: none; }
226+
227+.reveal .roll span:after {
228+ color: #fff;
229+ background: #1a6091; }
230+
231+/*********************************************
232+ * IMAGES
233+ *********************************************/
234+.reveal section img {
235+ margin: 15px 0px;
236+ background: rgba(255, 255, 255, 0.12);
237+ border: 4px solid #657b83;
238+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
239+
240+.reveal section img.plain {
241+ border: 0;
242+ box-shadow: none; }
243+
244+.reveal a img {
245+ -webkit-transition: all .15s linear;
246+ -moz-transition: all .15s linear;
247+ transition: all .15s linear; }
248+
249+.reveal a:hover img {
250+ background: rgba(255, 255, 255, 0.2);
251+ border-color: #268bd2;
252+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
253+
254+/*********************************************
255+ * NAVIGATION CONTROLS
256+ *********************************************/
257+.reveal .controls {
258+ color: #268bd2; }
259+
260+/*********************************************
261+ * PROGRESS BAR
262+ *********************************************/
263+.reveal .progress {
264+ background: rgba(0, 0, 0, 0.2);
265+ color: #268bd2; }
266+
267+.reveal .progress span {
268+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
269+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
270+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
271+
272+/*********************************************
273+ * PRINT BACKGROUND
274+ *********************************************/
275+@media print {
276+ .backgrounds {
277+ background-color: #fdf6e3; } }
css/theme/source/beige.scssnew file+39
@@ -0,0 +1,39 @@
1+/**
2+ * Beige theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+
15+// Include theme-specific fonts
16+@import url(../../lib/font/league-gothic/league-gothic.css);
17+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
18+
19+
20+// Override theme settings (see ../template/settings.scss)
21+$mainColor: #333;
22+$headingColor: #333;
23+$headingTextShadow: none;
24+$backgroundColor: #f7f3de;
25+$linkColor: #8b743d;
26+$linkColorHover: lighten( $linkColor, 20% );
27+$selectionBackgroundColor: rgba(79, 64, 28, 0.99);
28+$heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
29+
30+// Background generator
31+@mixin bodyBackground() {
32+ @include radial-gradient( rgba(247,242,211,1), rgba(255,255,255,1) );
33+}
34+
35+
36+
37+// Theme template ------------------------------
38+@import "../template/theme";
39+// ---------------------------------------------
css/theme/source/black.scssnew file+49
@@ -0,0 +1,49 @@
1+/**
2+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+// Include theme-specific fonts
15+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16+
17+
18+// Override theme settings (see ../template/settings.scss)
19+$backgroundColor: #191919;
20+
21+$mainColor: #fff;
22+$headingColor: #fff;
23+
24+$mainFontSize: 42px;
25+$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26+$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27+$headingTextShadow: none;
28+$headingLetterSpacing: normal;
29+$headingTextTransform: uppercase;
30+$headingFontWeight: 600;
31+$linkColor: #42affa;
32+$linkColorHover: lighten( $linkColor, 15% );
33+$selectionBackgroundColor: lighten( $linkColor, 25% );
34+
35+$heading1Size: 2.5em;
36+$heading2Size: 1.6em;
37+$heading3Size: 1.3em;
38+$heading4Size: 1.0em;
39+
40+section.has-light-background {
41+ &, h1, h2, h3, h4, h5, h6 {
42+ color: #222;
43+ }
44+}
45+
46+
47+// Theme template ------------------------------
48+@import "../template/theme";
49+// ---------------------------------------------
css/theme/source/blood.scssnew file+78
@@ -0,0 +1,78 @@
1+/**
2+ * Blood theme for reveal.js
3+ * Author: Walther http://github.com/Walther
4+ *
5+ * Designed to be used with highlight.js theme
6+ * "monokai_sublime.css" available from
7+ * https://github.com/isagalaev/highlight.js/
8+ *
9+ * For other themes, change $codeBackground accordingly.
10+ *
11+ */
12+
13+ // Default mixins and settings -----------------
14+@import "../template/mixins";
15+@import "../template/settings";
16+// ---------------------------------------------
17+
18+// Include theme-specific fonts
19+
20+@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,700,300italic,700italic);
21+
22+// Colors used in the theme
23+$blood: #a23;
24+$coal: #222;
25+$codeBackground: #23241f;
26+
27+$backgroundColor: $coal;
28+
29+// Main text
30+$mainFont: Ubuntu, 'sans-serif';
31+$mainColor: #eee;
32+
33+// Headings
34+$headingFont: Ubuntu, 'sans-serif';
35+$headingTextShadow: 2px 2px 2px $coal;
36+
37+// h1 shadow, borrowed humbly from
38+// (c) Default theme by Hakim El Hattab
39+$heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
40+
41+// Links
42+$linkColor: $blood;
43+$linkColorHover: lighten( $linkColor, 20% );
44+
45+// Text selection
46+$selectionBackgroundColor: $blood;
47+$selectionColor: #fff;
48+
49+
50+// Theme template ------------------------------
51+@import "../template/theme";
52+// ---------------------------------------------
53+
54+// some overrides after theme template import
55+
56+.reveal p {
57+ font-weight: 300;
58+ text-shadow: 1px 1px $coal;
59+}
60+
61+.reveal h1,
62+.reveal h2,
63+.reveal h3,
64+.reveal h4,
65+.reveal h5,
66+.reveal h6 {
67+ font-weight: 700;
68+}
69+
70+.reveal p code {
71+ background-color: $codeBackground;
72+ display: inline-block;
73+ border-radius: 7px;
74+}
75+
76+.reveal small code {
77+ vertical-align: baseline;
78+}
css/theme/source/league.scssnew file+34
@@ -0,0 +1,34 @@
1+/**
2+ * League theme for reveal.js.
3+ *
4+ * This was the default theme pre-3.0.0.
5+ *
6+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7+ */
8+
9+
10+// Default mixins and settings -----------------
11+@import "../template/mixins";
12+@import "../template/settings";
13+// ---------------------------------------------
14+
15+
16+
17+// Include theme-specific fonts
18+@import url(../../lib/font/league-gothic/league-gothic.css);
19+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20+
21+// Override theme settings (see ../template/settings.scss)
22+$headingTextShadow: 0px 0px 6px rgba(0,0,0,0.2);
23+$heading1TextShadow: 0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25), 0 20px 20px rgba(0,0,0,.15);
24+
25+// Background generator
26+@mixin bodyBackground() {
27+ @include radial-gradient( rgba(28,30,32,1), rgba(85,90,95,1) );
28+}
29+
30+
31+
32+// Theme template ------------------------------
33+@import "../template/theme";
34+// ---------------------------------------------
css/theme/source/moon.scssnew file+57
@@ -0,0 +1,57 @@
1+/**
2+ * Solarized Dark theme for reveal.js.
3+ * Author: Achim Staebler
4+ */
5+
6+
7+// Default mixins and settings -----------------
8+@import "../template/mixins";
9+@import "../template/settings";
10+// ---------------------------------------------
11+
12+
13+
14+// Include theme-specific fonts
15+@import url(../../lib/font/league-gothic/league-gothic.css);
16+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17+
18+/**
19+ * Solarized colors by Ethan Schoonover
20+ */
21+html * {
22+ color-profile: sRGB;
23+ rendering-intent: auto;
24+}
25+
26+// Solarized colors
27+$base03: #002b36;
28+$base02: #073642;
29+$base01: #586e75;
30+$base00: #657b83;
31+$base0: #839496;
32+$base1: #93a1a1;
33+$base2: #eee8d5;
34+$base3: #fdf6e3;
35+$yellow: #b58900;
36+$orange: #cb4b16;
37+$red: #dc322f;
38+$magenta: #d33682;
39+$violet: #6c71c4;
40+$blue: #268bd2;
41+$cyan: #2aa198;
42+$green: #859900;
43+
44+// Override theme settings (see ../template/settings.scss)
45+$mainColor: $base1;
46+$headingColor: $base2;
47+$headingTextShadow: none;
48+$backgroundColor: $base03;
49+$linkColor: $blue;
50+$linkColorHover: lighten( $linkColor, 20% );
51+$selectionBackgroundColor: $magenta;
52+
53+
54+
55+// Theme template ------------------------------
56+@import "../template/theme";
57+// ---------------------------------------------
css/theme/source/night.scssnew file+34
@@ -0,0 +1,34 @@
1+/**
2+ * Black theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+// Include theme-specific fonts
15+@import url(https://fonts.googleapis.com/css?family=Montserrat:700);
16+@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17+
18+
19+// Override theme settings (see ../template/settings.scss)
20+$backgroundColor: #111;
21+
22+$mainFont: 'Open Sans', sans-serif;
23+$linkColor: #e7ad52;
24+$linkColorHover: lighten( $linkColor, 20% );
25+$headingFont: 'Montserrat', Impact, sans-serif;
26+$headingTextShadow: none;
27+$headingLetterSpacing: -0.03em;
28+$headingTextTransform: none;
29+$selectionBackgroundColor: #e7ad52;
30+
31+
32+// Theme template ------------------------------
33+@import "../template/theme";
34+// ---------------------------------------------
css/theme/source/serif.scssnew file+35
@@ -0,0 +1,35 @@
1+/**
2+ * A simple theme for reveal.js presentations, similar
3+ * to the default theme. The accent color is brown.
4+ *
5+ * This theme is Copyright (C) 2012-2013 Owen Versteeg, http://owenversteeg.com - it is MIT licensed.
6+ */
7+
8+
9+// Default mixins and settings -----------------
10+@import "../template/mixins";
11+@import "../template/settings";
12+// ---------------------------------------------
13+
14+
15+
16+// Override theme settings (see ../template/settings.scss)
17+$mainFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
18+$mainColor: #000;
19+$headingFont: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
20+$headingColor: #383D3D;
21+$headingTextShadow: none;
22+$headingTextTransform: none;
23+$backgroundColor: #F0F1EB;
24+$linkColor: #51483D;
25+$linkColorHover: lighten( $linkColor, 20% );
26+$selectionBackgroundColor: #26351C;
27+
28+.reveal a {
29+ line-height: 1.3em;
30+}
31+
32+
33+// Theme template ------------------------------
34+@import "../template/theme";
35+// ---------------------------------------------
css/theme/source/simple.scssnew file+43
@@ -0,0 +1,43 @@
1+/**
2+ * A simple theme for reveal.js presentations, similar
3+ * to the default theme. The accent color is darkblue.
4+ *
5+ * This theme is Copyright (C) 2012 Owen Versteeg, https://github.com/StereotypicalApps. It is MIT licensed.
6+ * reveal.js is Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7+ */
8+
9+
10+// Default mixins and settings -----------------
11+@import "../template/mixins";
12+@import "../template/settings";
13+// ---------------------------------------------
14+
15+
16+
17+// Include theme-specific fonts
18+@import url(https://fonts.googleapis.com/css?family=News+Cycle:400,700);
19+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
20+
21+
22+// Override theme settings (see ../template/settings.scss)
23+$mainFont: 'Lato', sans-serif;
24+$mainColor: #000;
25+$headingFont: 'News Cycle', Impact, sans-serif;
26+$headingColor: #000;
27+$headingTextShadow: none;
28+$headingTextTransform: none;
29+$backgroundColor: #fff;
30+$linkColor: #00008B;
31+$linkColorHover: lighten( $linkColor, 20% );
32+$selectionBackgroundColor: rgba(0, 0, 0, 0.99);
33+
34+section.has-dark-background {
35+ &, h1, h2, h3, h4, h5, h6 {
36+ color: #fff;
37+ }
38+}
39+
40+
41+// Theme template ------------------------------
42+@import "../template/theme";
43+// ---------------------------------------------
css/theme/source/sky.scssnew file+46
@@ -0,0 +1,46 @@
1+/**
2+ * Sky theme for reveal.js.
3+ *
4+ * Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+
15+// Include theme-specific fonts
16+@import url(https://fonts.googleapis.com/css?family=Quicksand:400,700,400italic,700italic);
17+@import url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700);
18+
19+
20+// Override theme settings (see ../template/settings.scss)
21+$mainFont: 'Open Sans', sans-serif;
22+$mainColor: #333;
23+$headingFont: 'Quicksand', sans-serif;
24+$headingColor: #333;
25+$headingLetterSpacing: -0.08em;
26+$headingTextShadow: none;
27+$backgroundColor: #f7fbfc;
28+$linkColor: #3b759e;
29+$linkColorHover: lighten( $linkColor, 20% );
30+$selectionBackgroundColor: #134674;
31+
32+// Fix links so they are not cut off
33+.reveal a {
34+ line-height: 1.3em;
35+}
36+
37+// Background generator
38+@mixin bodyBackground() {
39+ @include radial-gradient( #add9e4, #f7fbfc );
40+}
41+
42+
43+
44+// Theme template ------------------------------
45+@import "../template/theme";
46+// ---------------------------------------------
css/theme/source/solarized.scssnew file+63
@@ -0,0 +1,63 @@
1+/**
2+ * Solarized Light theme for reveal.js.
3+ * Author: Achim Staebler
4+ */
5+
6+
7+// Default mixins and settings -----------------
8+@import "../template/mixins";
9+@import "../template/settings";
10+// ---------------------------------------------
11+
12+
13+
14+// Include theme-specific fonts
15+@import url(../../lib/font/league-gothic/league-gothic.css);
16+@import url(https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic);
17+
18+
19+/**
20+ * Solarized colors by Ethan Schoonover
21+ */
22+html * {
23+ color-profile: sRGB;
24+ rendering-intent: auto;
25+}
26+
27+// Solarized colors
28+$base03: #002b36;
29+$base02: #073642;
30+$base01: #586e75;
31+$base00: #657b83;
32+$base0: #839496;
33+$base1: #93a1a1;
34+$base2: #eee8d5;
35+$base3: #fdf6e3;
36+$yellow: #b58900;
37+$orange: #cb4b16;
38+$red: #dc322f;
39+$magenta: #d33682;
40+$violet: #6c71c4;
41+$blue: #268bd2;
42+$cyan: #2aa198;
43+$green: #859900;
44+
45+// Override theme settings (see ../template/settings.scss)
46+$mainColor: $base00;
47+$headingColor: $base01;
48+$headingTextShadow: none;
49+$backgroundColor: $base3;
50+$linkColor: $blue;
51+$linkColorHover: lighten( $linkColor, 20% );
52+$selectionBackgroundColor: $magenta;
53+
54+// Background generator
55+// @mixin bodyBackground() {
56+// @include radial-gradient( rgba($base3,1), rgba(lighten($base3, 20%),1) );
57+// }
58+
59+
60+
61+// Theme template ------------------------------
62+@import "../template/theme";
63+// ---------------------------------------------
css/theme/source/superblack.scssnew file+65
@@ -0,0 +1,65 @@
1+/**
2+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+// Include theme-specific fonts
15+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16+@import url(../../lib/font/hasklig/hasklig.css);
17+
18+
19+// Override theme settings (see ../template/settings.scss)
20+// $backgroundColor: #191919;
21+$backgroundColor: #000;
22+
23+$mainColor: #fff;
24+$headingColor: #fff;
25+
26+$mainFontSize: 42px;
27+$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
28+$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
29+$codeFont: Hasklig, Helvetica, monospace;
30+$headingTextShadow: none;
31+$headingLetterSpacing: normal;
32+$headingTextTransform: uppercase;
33+$headingFontWeight: 600;
34+$linkColor: #42affa;
35+$linkColorHover: lighten( $linkColor, 15% );
36+$selectionBackgroundColor: lighten( $linkColor, 25% );
37+
38+$heading1Size: 2.5em;
39+$heading2Size: 1.6em;
40+$heading3Size: 1.3em;
41+$heading4Size: 1.0em;
42+
43+section.has-light-background {
44+ &, h1, h2, h3, h4, h5, h6 {
45+ color: #222;
46+ }
47+}
48+
49+
50+// Theme template ------------------------------
51+@import "../template/theme";
52+// ---------------------------------------------
53+
54+.reveal blockquote {
55+ background-color: #222;
56+}
57+
58+.reveal code {
59+ background-color: #333;
60+ border-radius: 13px;
61+ padding: 0px 4px 0px 4px;
62+ border-width: 2px;
63+ border-style: solid;
64+ border-color: #777;
65+}
css/theme/source/white.scssnew file+49
@@ -0,0 +1,49 @@
1+/**
2+ * White theme for reveal.js. This is the opposite of the 'black' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+
7+
8+// Default mixins and settings -----------------
9+@import "../template/mixins";
10+@import "../template/settings";
11+// ---------------------------------------------
12+
13+
14+// Include theme-specific fonts
15+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
16+
17+
18+// Override theme settings (see ../template/settings.scss)
19+$backgroundColor: #fff;
20+
21+$mainColor: #222;
22+$headingColor: #222;
23+
24+$mainFontSize: 42px;
25+$mainFont: 'Source Sans Pro', Helvetica, sans-serif;
26+$headingFont: 'Source Sans Pro', Helvetica, sans-serif;
27+$headingTextShadow: none;
28+$headingLetterSpacing: normal;
29+$headingTextTransform: uppercase;
30+$headingFontWeight: 600;
31+$linkColor: #2a76dd;
32+$linkColorHover: lighten( $linkColor, 15% );
33+$selectionBackgroundColor: lighten( $linkColor, 25% );
34+
35+$heading1Size: 2.5em;
36+$heading2Size: 1.6em;
37+$heading3Size: 1.3em;
38+$heading4Size: 1.0em;
39+
40+section.has-dark-background {
41+ &, h1, h2, h3, h4, h5, h6 {
42+ color: #fff;
43+ }
44+}
45+
46+
47+// Theme template ------------------------------
48+@import "../template/theme";
49+// ---------------------------------------------
css/theme/superblack.cssnew file+285
@@ -0,0 +1,285 @@
1+/**
2+ * Black theme for reveal.js. This is the opposite of the 'white' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7+@import url(../../lib/font/hasklig/hasklig.css);
8+section.has-light-background, section.has-light-background h1, section.has-light-background h2, section.has-light-background h3, section.has-light-background h4, section.has-light-background h5, section.has-light-background h6 {
9+ color: #222; }
10+
11+/*********************************************
12+ * GLOBAL STYLES
13+ *********************************************/
14+body {
15+ background: #000;
16+ background-color: #000; }
17+
18+.reveal {
19+ font-family: "Source Sans Pro", Helvetica, sans-serif;
20+ font-size: 42px;
21+ font-weight: normal;
22+ color: #fff; }
23+
24+::selection {
25+ color: #fff;
26+ background: #bee4fd;
27+ text-shadow: none; }
28+
29+::-moz-selection {
30+ color: #fff;
31+ background: #bee4fd;
32+ text-shadow: none; }
33+
34+.reveal .slides section,
35+.reveal .slides section > section {
36+ line-height: 1.3;
37+ font-weight: inherit; }
38+
39+/*********************************************
40+ * HEADERS
41+ *********************************************/
42+.reveal h1,
43+.reveal h2,
44+.reveal h3,
45+.reveal h4,
46+.reveal h5,
47+.reveal h6 {
48+ margin: 0 0 20px 0;
49+ color: #fff;
50+ font-family: "Source Sans Pro", Helvetica, sans-serif;
51+ font-weight: 600;
52+ line-height: 1.2;
53+ letter-spacing: normal;
54+ text-transform: uppercase;
55+ text-shadow: none;
56+ word-wrap: break-word; }
57+
58+.reveal h1 {
59+ font-size: 2.5em; }
60+
61+.reveal h2 {
62+ font-size: 1.6em; }
63+
64+.reveal h3 {
65+ font-size: 1.3em; }
66+
67+.reveal h4 {
68+ font-size: 1em; }
69+
70+.reveal h1 {
71+ text-shadow: none; }
72+
73+/*********************************************
74+ * OTHER
75+ *********************************************/
76+.reveal p {
77+ margin: 20px 0;
78+ line-height: 1.3; }
79+
80+/* Ensure certain elements are never larger than the slide itself */
81+.reveal img,
82+.reveal video,
83+.reveal iframe {
84+ max-width: 95%;
85+ max-height: 95%; }
86+
87+.reveal strong,
88+.reveal b {
89+ font-weight: bold; }
90+
91+.reveal em {
92+ font-style: italic; }
93+
94+.reveal ol,
95+.reveal dl,
96+.reveal ul {
97+ display: inline-block;
98+ text-align: left;
99+ margin: 0 0 0 1em; }
100+
101+.reveal ol {
102+ list-style-type: decimal; }
103+
104+.reveal ul {
105+ list-style-type: disc; }
106+
107+.reveal ul ul {
108+ list-style-type: square; }
109+
110+.reveal ul ul ul {
111+ list-style-type: circle; }
112+
113+.reveal ul ul,
114+.reveal ul ol,
115+.reveal ol ol,
116+.reveal ol ul {
117+ display: block;
118+ margin-left: 40px; }
119+
120+.reveal dt {
121+ font-weight: bold; }
122+
123+.reveal dd {
124+ margin-left: 40px; }
125+
126+.reveal blockquote {
127+ display: block;
128+ position: relative;
129+ width: 70%;
130+ margin: 20px auto;
131+ padding: 5px;
132+ font-style: italic;
133+ background: rgba(255, 255, 255, 0.05);
134+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
135+
136+.reveal blockquote p:first-child,
137+.reveal blockquote p:last-child {
138+ display: inline-block; }
139+
140+.reveal q {
141+ font-style: italic; }
142+
143+.reveal pre {
144+ display: block;
145+ position: relative;
146+ width: 90%;
147+ margin: 20px auto;
148+ text-align: left;
149+ font-size: 0.55em;
150+ font-family: Hasklig, Helvetica, monospace;
151+ line-height: 1.2em;
152+ word-wrap: break-word;
153+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
154+
155+.reveal code {
156+ font-family: Hasklig, Helvetica, monospace;
157+ text-transform: none; }
158+
159+.reveal pre code {
160+ display: block;
161+ padding: 5px;
162+ overflow: auto;
163+ max-height: 400px;
164+ word-wrap: normal; }
165+
166+.reveal table {
167+ margin: auto;
168+ border-collapse: collapse;
169+ border-spacing: 0; }
170+
171+.reveal table th {
172+ font-weight: bold; }
173+
174+.reveal table th,
175+.reveal table td {
176+ text-align: left;
177+ padding: 0.2em 0.5em 0.2em 0.5em;
178+ border-bottom: 1px solid; }
179+
180+.reveal table th[align="center"],
181+.reveal table td[align="center"] {
182+ text-align: center; }
183+
184+.reveal table th[align="right"],
185+.reveal table td[align="right"] {
186+ text-align: right; }
187+
188+.reveal table tbody tr:last-child th,
189+.reveal table tbody tr:last-child td {
190+ border-bottom: none; }
191+
192+.reveal sup {
193+ vertical-align: super;
194+ font-size: smaller; }
195+
196+.reveal sub {
197+ vertical-align: sub;
198+ font-size: smaller; }
199+
200+.reveal small {
201+ display: inline-block;
202+ font-size: 0.6em;
203+ line-height: 1.2em;
204+ vertical-align: top; }
205+
206+.reveal small * {
207+ vertical-align: top; }
208+
209+/*********************************************
210+ * LINKS
211+ *********************************************/
212+.reveal a {
213+ color: #42affa;
214+ text-decoration: none;
215+ -webkit-transition: color .15s ease;
216+ -moz-transition: color .15s ease;
217+ transition: color .15s ease; }
218+
219+.reveal a:hover {
220+ color: #8dcffc;
221+ text-shadow: none;
222+ border: none; }
223+
224+.reveal .roll span:after {
225+ color: #fff;
226+ background: #068de9; }
227+
228+/*********************************************
229+ * IMAGES
230+ *********************************************/
231+.reveal section img {
232+ margin: 15px 0px;
233+ background: rgba(255, 255, 255, 0.12);
234+ border: 4px solid #fff;
235+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
236+
237+.reveal section img.plain {
238+ border: 0;
239+ box-shadow: none; }
240+
241+.reveal a img {
242+ -webkit-transition: all .15s linear;
243+ -moz-transition: all .15s linear;
244+ transition: all .15s linear; }
245+
246+.reveal a:hover img {
247+ background: rgba(255, 255, 255, 0.2);
248+ border-color: #42affa;
249+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
250+
251+/*********************************************
252+ * NAVIGATION CONTROLS
253+ *********************************************/
254+.reveal .controls {
255+ color: #42affa; }
256+
257+/*********************************************
258+ * PROGRESS BAR
259+ *********************************************/
260+.reveal .progress {
261+ background: rgba(0, 0, 0, 0.2);
262+ color: #42affa; }
263+
264+.reveal .progress span {
265+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
267+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
268+
269+/*********************************************
270+ * PRINT BACKGROUND
271+ *********************************************/
272+@media print {
273+ .backgrounds {
274+ background-color: #000; } }
275+
276+.reveal blockquote {
277+ background-color: #222; }
278+
279+.reveal code {
280+ background-color: #333;
281+ border-radius: 13px;
282+ padding: 0px 4px 0px 4px;
283+ border-width: 2px;
284+ border-style: solid;
285+ border-color: #777; }
css/theme/template/mixins.scssnew file+29
@@ -0,0 +1,29 @@
1+@mixin vertical-gradient( $top, $bottom ) {
2+ background: $top;
3+ background: -moz-linear-gradient( top, $top 0%, $bottom 100% );
4+ background: -webkit-gradient( linear, left top, left bottom, color-stop(0%,$top), color-stop(100%,$bottom) );
5+ background: -webkit-linear-gradient( top, $top 0%, $bottom 100% );
6+ background: -o-linear-gradient( top, $top 0%, $bottom 100% );
7+ background: -ms-linear-gradient( top, $top 0%, $bottom 100% );
8+ background: linear-gradient( top, $top 0%, $bottom 100% );
9+}
10+
11+@mixin horizontal-gradient( $top, $bottom ) {
12+ background: $top;
13+ background: -moz-linear-gradient( left, $top 0%, $bottom 100% );
14+ background: -webkit-gradient( linear, left top, right top, color-stop(0%,$top), color-stop(100%,$bottom) );
15+ background: -webkit-linear-gradient( left, $top 0%, $bottom 100% );
16+ background: -o-linear-gradient( left, $top 0%, $bottom 100% );
17+ background: -ms-linear-gradient( left, $top 0%, $bottom 100% );
18+ background: linear-gradient( left, $top 0%, $bottom 100% );
19+}
20+
21+@mixin radial-gradient( $outer, $inner, $type: circle ) {
22+ background: $outer;
23+ background: -moz-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
24+ background: -webkit-gradient( radial, center center, 0px, center center, 100%, color-stop(0%,$inner), color-stop(100%,$outer) );
25+ background: -webkit-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
26+ background: -o-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
27+ background: -ms-radial-gradient( center, $type cover, $inner 0%, $outer 100% );
28+ background: radial-gradient( center, $type cover, $inner 0%, $outer 100% );
29+}
css/theme/template/settings.scssnew file+45
@@ -0,0 +1,45 @@
1+// Base settings for all themes that can optionally be
2+// overridden by the super-theme
3+
4+// Background of the presentation
5+$backgroundColor: #2b2b2b;
6+
7+// Primary/body text
8+$mainFont: 'Lato', sans-serif;
9+$mainFontSize: 40px;
10+$mainColor: #eee;
11+
12+// Vertical spacing between blocks of text
13+$blockMargin: 20px;
14+
15+// Headings
16+$headingMargin: 0 0 $blockMargin 0;
17+$headingFont: 'League Gothic', Impact, sans-serif;
18+$headingColor: #eee;
19+$headingLineHeight: 1.2;
20+$headingLetterSpacing: normal;
21+$headingTextTransform: uppercase;
22+$headingTextShadow: none;
23+$headingFontWeight: normal;
24+$heading1TextShadow: $headingTextShadow;
25+
26+$heading1Size: 3.77em;
27+$heading2Size: 2.11em;
28+$heading3Size: 1.55em;
29+$heading4Size: 1.00em;
30+
31+$codeFont: monospace;
32+
33+// Links and actions
34+$linkColor: #13DAEC;
35+$linkColorHover: lighten( $linkColor, 20% );
36+
37+// Text selection
38+$selectionBackgroundColor: #FF5E99;
39+$selectionColor: #fff;
40+
41+// Generates the presentation background, can be overridden
42+// to return a background image or gradient
43+@mixin bodyBackground() {
44+ background: $backgroundColor;
45+}
css/theme/template/theme.scssnew file+325
@@ -0,0 +1,325 @@
1+// Base theme template for reveal.js
2+
3+/*********************************************
4+ * GLOBAL STYLES
5+ *********************************************/
6+
7+body {
8+ @include bodyBackground();
9+ background-color: $backgroundColor;
10+}
11+
12+.reveal {
13+ font-family: $mainFont;
14+ font-size: $mainFontSize;
15+ font-weight: normal;
16+ color: $mainColor;
17+}
18+
19+::selection {
20+ color: $selectionColor;
21+ background: $selectionBackgroundColor;
22+ text-shadow: none;
23+}
24+
25+::-moz-selection {
26+ color: $selectionColor;
27+ background: $selectionBackgroundColor;
28+ text-shadow: none;
29+}
30+
31+.reveal .slides section,
32+.reveal .slides section>section {
33+ line-height: 1.3;
34+ font-weight: inherit;
35+}
36+
37+/*********************************************
38+ * HEADERS
39+ *********************************************/
40+
41+.reveal h1,
42+.reveal h2,
43+.reveal h3,
44+.reveal h4,
45+.reveal h5,
46+.reveal h6 {
47+ margin: $headingMargin;
48+ color: $headingColor;
49+
50+ font-family: $headingFont;
51+ font-weight: $headingFontWeight;
52+ line-height: $headingLineHeight;
53+ letter-spacing: $headingLetterSpacing;
54+
55+ text-transform: $headingTextTransform;
56+ text-shadow: $headingTextShadow;
57+
58+ word-wrap: break-word;
59+}
60+
61+.reveal h1 {font-size: $heading1Size; }
62+.reveal h2 {font-size: $heading2Size; }
63+.reveal h3 {font-size: $heading3Size; }
64+.reveal h4 {font-size: $heading4Size; }
65+
66+.reveal h1 {
67+ text-shadow: $heading1TextShadow;
68+}
69+
70+
71+/*********************************************
72+ * OTHER
73+ *********************************************/
74+
75+.reveal p {
76+ margin: $blockMargin 0;
77+ line-height: 1.3;
78+}
79+
80+/* Ensure certain elements are never larger than the slide itself */
81+.reveal img,
82+.reveal video,
83+.reveal iframe {
84+ max-width: 95%;
85+ max-height: 95%;
86+}
87+.reveal strong,
88+.reveal b {
89+ font-weight: bold;
90+}
91+
92+.reveal em {
93+ font-style: italic;
94+}
95+
96+.reveal ol,
97+.reveal dl,
98+.reveal ul {
99+ display: inline-block;
100+
101+ text-align: left;
102+ margin: 0 0 0 1em;
103+}
104+
105+.reveal ol {
106+ list-style-type: decimal;
107+}
108+
109+.reveal ul {
110+ list-style-type: disc;
111+}
112+
113+.reveal ul ul {
114+ list-style-type: square;
115+}
116+
117+.reveal ul ul ul {
118+ list-style-type: circle;
119+}
120+
121+.reveal ul ul,
122+.reveal ul ol,
123+.reveal ol ol,
124+.reveal ol ul {
125+ display: block;
126+ margin-left: 40px;
127+}
128+
129+.reveal dt {
130+ font-weight: bold;
131+}
132+
133+.reveal dd {
134+ margin-left: 40px;
135+}
136+
137+.reveal blockquote {
138+ display: block;
139+ position: relative;
140+ width: 70%;
141+ margin: $blockMargin auto;
142+ padding: 5px;
143+
144+ font-style: italic;
145+ background: rgba(255, 255, 255, 0.05);
146+ box-shadow: 0px 0px 2px rgba(0,0,0,0.2);
147+}
148+ .reveal blockquote p:first-child,
149+ .reveal blockquote p:last-child {
150+ display: inline-block;
151+ }
152+
153+.reveal q {
154+ font-style: italic;
155+}
156+
157+.reveal pre {
158+ display: block;
159+ position: relative;
160+ width: 90%;
161+ margin: $blockMargin auto;
162+
163+ text-align: left;
164+ font-size: 0.55em;
165+ font-family: $codeFont;
166+ line-height: 1.2em;
167+
168+ word-wrap: break-word;
169+
170+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
171+}
172+
173+.reveal code {
174+ font-family: $codeFont;
175+ text-transform: none;
176+}
177+
178+.reveal pre code {
179+ display: block;
180+ padding: 5px;
181+ overflow: auto;
182+ max-height: 400px;
183+ word-wrap: normal;
184+}
185+
186+.reveal table {
187+ margin: auto;
188+ border-collapse: collapse;
189+ border-spacing: 0;
190+}
191+
192+.reveal table th {
193+ font-weight: bold;
194+}
195+
196+.reveal table th,
197+.reveal table td {
198+ text-align: left;
199+ padding: 0.2em 0.5em 0.2em 0.5em;
200+ border-bottom: 1px solid;
201+}
202+
203+.reveal table th[align="center"],
204+.reveal table td[align="center"] {
205+ text-align: center;
206+}
207+
208+.reveal table th[align="right"],
209+.reveal table td[align="right"] {
210+ text-align: right;
211+}
212+
213+.reveal table tbody tr:last-child th,
214+.reveal table tbody tr:last-child td {
215+ border-bottom: none;
216+}
217+
218+.reveal sup {
219+ vertical-align: super;
220+ font-size: smaller;
221+}
222+.reveal sub {
223+ vertical-align: sub;
224+ font-size: smaller;
225+}
226+
227+.reveal small {
228+ display: inline-block;
229+ font-size: 0.6em;
230+ line-height: 1.2em;
231+ vertical-align: top;
232+}
233+
234+.reveal small * {
235+ vertical-align: top;
236+}
237+
238+
239+/*********************************************
240+ * LINKS
241+ *********************************************/
242+
243+.reveal a {
244+ color: $linkColor;
245+ text-decoration: none;
246+
247+ -webkit-transition: color .15s ease;
248+ -moz-transition: color .15s ease;
249+ transition: color .15s ease;
250+}
251+ .reveal a:hover {
252+ color: $linkColorHover;
253+
254+ text-shadow: none;
255+ border: none;
256+ }
257+
258+.reveal .roll span:after {
259+ color: #fff;
260+ background: darken( $linkColor, 15% );
261+}
262+
263+
264+/*********************************************
265+ * IMAGES
266+ *********************************************/
267+
268+.reveal section img {
269+ margin: 15px 0px;
270+ background: rgba(255,255,255,0.12);
271+ border: 4px solid $mainColor;
272+
273+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
274+}
275+
276+ .reveal section img.plain {
277+ border: 0;
278+ box-shadow: none;
279+ }
280+
281+ .reveal a img {
282+ -webkit-transition: all .15s linear;
283+ -moz-transition: all .15s linear;
284+ transition: all .15s linear;
285+ }
286+
287+ .reveal a:hover img {
288+ background: rgba(255,255,255,0.2);
289+ border-color: $linkColor;
290+
291+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
292+ }
293+
294+
295+/*********************************************
296+ * NAVIGATION CONTROLS
297+ *********************************************/
298+
299+.reveal .controls {
300+ color: $linkColor;
301+}
302+
303+
304+/*********************************************
305+ * PROGRESS BAR
306+ *********************************************/
307+
308+.reveal .progress {
309+ background: rgba(0,0,0,0.2);
310+ color: $linkColor;
311+}
312+ .reveal .progress span {
313+ -webkit-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
314+ -moz-transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
315+ transition: width 800ms cubic-bezier(0.260, 0.860, 0.440, 0.985);
316+ }
317+
318+/*********************************************
319+ * PRINT BACKGROUND
320+ *********************************************/
321+ @media print {
322+ .backgrounds {
323+ background-color: $backgroundColor;
324+ }
325+}
css/theme/white.cssnew file+273
@@ -0,0 +1,273 @@
1+/**
2+ * White theme for reveal.js. This is the opposite of the 'black' theme.
3+ *
4+ * By Hakim El Hattab, http://hakim.se
5+ */
6+@import url(../../lib/font/source-sans-pro/source-sans-pro.css);
7+section.has-dark-background, section.has-dark-background h1, section.has-dark-background h2, section.has-dark-background h3, section.has-dark-background h4, section.has-dark-background h5, section.has-dark-background h6 {
8+ color: #fff; }
9+
10+/*********************************************
11+ * GLOBAL STYLES
12+ *********************************************/
13+body {
14+ background: #fff;
15+ background-color: #fff; }
16+
17+.reveal {
18+ font-family: "Source Sans Pro", Helvetica, sans-serif;
19+ font-size: 42px;
20+ font-weight: normal;
21+ color: #222; }
22+
23+::selection {
24+ color: #fff;
25+ background: #98bdef;
26+ text-shadow: none; }
27+
28+::-moz-selection {
29+ color: #fff;
30+ background: #98bdef;
31+ text-shadow: none; }
32+
33+.reveal .slides section,
34+.reveal .slides section > section {
35+ line-height: 1.3;
36+ font-weight: inherit; }
37+
38+/*********************************************
39+ * HEADERS
40+ *********************************************/
41+.reveal h1,
42+.reveal h2,
43+.reveal h3,
44+.reveal h4,
45+.reveal h5,
46+.reveal h6 {
47+ margin: 0 0 20px 0;
48+ color: #222;
49+ font-family: "Source Sans Pro", Helvetica, sans-serif;
50+ font-weight: 600;
51+ line-height: 1.2;
52+ letter-spacing: normal;
53+ text-transform: uppercase;
54+ text-shadow: none;
55+ word-wrap: break-word; }
56+
57+.reveal h1 {
58+ font-size: 2.5em; }
59+
60+.reveal h2 {
61+ font-size: 1.6em; }
62+
63+.reveal h3 {
64+ font-size: 1.3em; }
65+
66+.reveal h4 {
67+ font-size: 1em; }
68+
69+.reveal h1 {
70+ text-shadow: none; }
71+
72+/*********************************************
73+ * OTHER
74+ *********************************************/
75+.reveal p {
76+ margin: 20px 0;
77+ line-height: 1.3; }
78+
79+/* Ensure certain elements are never larger than the slide itself */
80+.reveal img,
81+.reveal video,
82+.reveal iframe {
83+ max-width: 95%;
84+ max-height: 95%; }
85+
86+.reveal strong,
87+.reveal b {
88+ font-weight: bold; }
89+
90+.reveal em {
91+ font-style: italic; }
92+
93+.reveal ol,
94+.reveal dl,
95+.reveal ul {
96+ display: inline-block;
97+ text-align: left;
98+ margin: 0 0 0 1em; }
99+
100+.reveal ol {
101+ list-style-type: decimal; }
102+
103+.reveal ul {
104+ list-style-type: disc; }
105+
106+.reveal ul ul {
107+ list-style-type: square; }
108+
109+.reveal ul ul ul {
110+ list-style-type: circle; }
111+
112+.reveal ul ul,
113+.reveal ul ol,
114+.reveal ol ol,
115+.reveal ol ul {
116+ display: block;
117+ margin-left: 40px; }
118+
119+.reveal dt {
120+ font-weight: bold; }
121+
122+.reveal dd {
123+ margin-left: 40px; }
124+
125+.reveal blockquote {
126+ display: block;
127+ position: relative;
128+ width: 70%;
129+ margin: 20px auto;
130+ padding: 5px;
131+ font-style: italic;
132+ background: rgba(255, 255, 255, 0.05);
133+ box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
134+
135+.reveal blockquote p:first-child,
136+.reveal blockquote p:last-child {
137+ display: inline-block; }
138+
139+.reveal q {
140+ font-style: italic; }
141+
142+.reveal pre {
143+ display: block;
144+ position: relative;
145+ width: 90%;
146+ margin: 20px auto;
147+ text-align: left;
148+ font-size: 0.55em;
149+ font-family: monospace;
150+ line-height: 1.2em;
151+ word-wrap: break-word;
152+ box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15); }
153+
154+.reveal code {
155+ font-family: monospace;
156+ text-transform: none; }
157+
158+.reveal pre code {
159+ display: block;
160+ padding: 5px;
161+ overflow: auto;
162+ max-height: 400px;
163+ word-wrap: normal; }
164+
165+.reveal table {
166+ margin: auto;
167+ border-collapse: collapse;
168+ border-spacing: 0; }
169+
170+.reveal table th {
171+ font-weight: bold; }
172+
173+.reveal table th,
174+.reveal table td {
175+ text-align: left;
176+ padding: 0.2em 0.5em 0.2em 0.5em;
177+ border-bottom: 1px solid; }
178+
179+.reveal table th[align="center"],
180+.reveal table td[align="center"] {
181+ text-align: center; }
182+
183+.reveal table th[align="right"],
184+.reveal table td[align="right"] {
185+ text-align: right; }
186+
187+.reveal table tbody tr:last-child th,
188+.reveal table tbody tr:last-child td {
189+ border-bottom: none; }
190+
191+.reveal sup {
192+ vertical-align: super;
193+ font-size: smaller; }
194+
195+.reveal sub {
196+ vertical-align: sub;
197+ font-size: smaller; }
198+
199+.reveal small {
200+ display: inline-block;
201+ font-size: 0.6em;
202+ line-height: 1.2em;
203+ vertical-align: top; }
204+
205+.reveal small * {
206+ vertical-align: top; }
207+
208+/*********************************************
209+ * LINKS
210+ *********************************************/
211+.reveal a {
212+ color: #2a76dd;
213+ text-decoration: none;
214+ -webkit-transition: color .15s ease;
215+ -moz-transition: color .15s ease;
216+ transition: color .15s ease; }
217+
218+.reveal a:hover {
219+ color: #6ca0e8;
220+ text-shadow: none;
221+ border: none; }
222+
223+.reveal .roll span:after {
224+ color: #fff;
225+ background: #1a53a1; }
226+
227+/*********************************************
228+ * IMAGES
229+ *********************************************/
230+.reveal section img {
231+ margin: 15px 0px;
232+ background: rgba(255, 255, 255, 0.12);
233+ border: 4px solid #222;
234+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
235+
236+.reveal section img.plain {
237+ border: 0;
238+ box-shadow: none; }
239+
240+.reveal a img {
241+ -webkit-transition: all .15s linear;
242+ -moz-transition: all .15s linear;
243+ transition: all .15s linear; }
244+
245+.reveal a:hover img {
246+ background: rgba(255, 255, 255, 0.2);
247+ border-color: #2a76dd;
248+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
249+
250+/*********************************************
251+ * NAVIGATION CONTROLS
252+ *********************************************/
253+.reveal .controls {
254+ color: #2a76dd; }
255+
256+/*********************************************
257+ * PROGRESS BAR
258+ *********************************************/
259+.reveal .progress {
260+ background: rgba(0, 0, 0, 0.2);
261+ color: #2a76dd; }
262+
263+.reveal .progress span {
264+ -webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
265+ -moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
266+ transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
267+
268+/*********************************************
269+ * PRINT BACKGROUND
270+ *********************************************/
271+@media print {
272+ .backgrounds {
273+ background-color: #fff; } }
gruntfile.jsnew file+189
@@ -0,0 +1,189 @@
1+const sass = require('node-sass');
2+
3+module.exports = grunt => {
4+
5+ require('load-grunt-tasks')(grunt);
6+
7+ let port = grunt.option('port') || 8000;
8+ let root = grunt.option('root') || '.';
9+
10+ if (!Array.isArray(root)) root = [root];
11+
12+ // Project configuration
13+ grunt.initConfig({
14+ pkg: grunt.file.readJSON('package.json'),
15+ meta: {
16+ banner:
17+ '/*!\n' +
18+ ' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
19+ ' * http://revealjs.com\n' +
20+ ' * MIT licensed\n' +
21+ ' *\n' +
22+ ' * Copyright (C) 2019 Hakim El Hattab, http://hakim.se\n' +
23+ ' */'
24+ },
25+
26+ qunit: {
27+ files: [ 'test/*.html' ]
28+ },
29+
30+ uglify: {
31+ options: {
32+ banner: '<%= meta.banner %>\n',
33+ ie8: true
34+ },
35+ build: {
36+ src: 'js/reveal.js',
37+ dest: 'js/reveal.min.js'
38+ }
39+ },
40+
41+ sass: {
42+ options: {
43+ implementation: sass,
44+ sourceMap: false
45+ },
46+ core: {
47+ src: 'css/reveal.scss',
48+ dest: 'css/reveal.css'
49+ },
50+ themes: {
51+ expand: true,
52+ cwd: 'css/theme/source',
53+ src: ['*.sass', '*.scss'],
54+ dest: 'css/theme',
55+ ext: '.css'
56+ }
57+ },
58+
59+ autoprefixer: {
60+ core: {
61+ src: 'css/reveal.css'
62+ }
63+ },
64+
65+ cssmin: {
66+ options: {
67+ compatibility: 'ie9'
68+ },
69+ compress: {
70+ src: 'css/reveal.css',
71+ dest: 'css/reveal.min.css'
72+ }
73+ },
74+
75+ jshint: {
76+ options: {
77+ curly: false,
78+ eqeqeq: true,
79+ immed: true,
80+ esnext: true,
81+ latedef: 'nofunc',
82+ newcap: true,
83+ noarg: true,
84+ sub: true,
85+ undef: true,
86+ eqnull: true,
87+ browser: true,
88+ expr: true,
89+ loopfunc: true,
90+ globals: {
91+ head: false,
92+ module: false,
93+ console: false,
94+ unescape: false,
95+ define: false,
96+ exports: false,
97+ require: false
98+ }
99+ },
100+ files: [ 'gruntfile.js', 'js/reveal.js' ]
101+ },
102+
103+ connect: {
104+ server: {
105+ options: {
106+ port: port,
107+ base: root,
108+ livereload: true,
109+ open: true,
110+ useAvailablePort: true
111+ }
112+ }
113+ },
114+
115+ zip: {
116+ bundle: {
117+ src: [
118+ 'index.html',
119+ 'css/**',
120+ 'js/**',
121+ 'lib/**',
122+ 'images/**',
123+ 'plugin/**',
124+ '**.md'
125+ ],
126+ dest: 'reveal-js-presentation.zip'
127+ }
128+ },
129+
130+ watch: {
131+ js: {
132+ files: [ 'gruntfile.js', 'js/reveal.js' ],
133+ tasks: 'js'
134+ },
135+ theme: {
136+ files: [
137+ 'css/theme/source/*.sass',
138+ 'css/theme/source/*.scss',
139+ 'css/theme/template/*.sass',
140+ 'css/theme/template/*.scss'
141+ ],
142+ tasks: 'css-themes'
143+ },
144+ css: {
145+ files: [ 'css/reveal.scss' ],
146+ tasks: 'css-core'
147+ },
148+ test: {
149+ files: [ 'test/*.html' ],
150+ tasks: 'test'
151+ },
152+ html: {
153+ files: root.map(path => path + '/*.html')
154+ },
155+ markdown: {
156+ files: root.map(path => path + '/*.md')
157+ },
158+ options: {
159+ livereload: true
160+ }
161+ }
162+
163+ });
164+
165+ // Default task
166+ grunt.registerTask( 'default', [ 'css', 'js' ] );
167+
168+ // JS task
169+ grunt.registerTask( 'js', [ 'jshint', 'uglify', 'qunit' ] );
170+
171+ // Theme CSS
172+ grunt.registerTask( 'css-themes', [ 'sass:themes' ] );
173+
174+ // Core framework CSS
175+ grunt.registerTask( 'css-core', [ 'sass:core', 'autoprefixer', 'cssmin' ] );
176+
177+ // All CSS
178+ grunt.registerTask( 'css', [ 'sass', 'autoprefixer', 'cssmin' ] );
179+
180+ // Package presentation to archive
181+ grunt.registerTask( 'package', [ 'default', 'zip' ] );
182+
183+ // Serve presentation locally
184+ grunt.registerTask( 'serve', [ 'connect', 'watch' ] );
185+
186+ // Run tests
187+ grunt.registerTask( 'test', [ 'jshint', 'qunit' ] );
188+
189+};
js/reveal.jsnew file+6155
@@ -0,0 +1,6155 @@
1+/*!
2+ * reveal.js
3+ * http://revealjs.com
4+ * MIT licensed
5+ *
6+ * Copyright (C) 2019 Hakim El Hattab, http://hakim.se
7+ */
8+(function( root, factory ) {
9+ if( typeof define === 'function' && define.amd ) {
10+ // AMD. Register as an anonymous module.
11+ define( function() {
12+ root.Reveal = factory();
13+ return root.Reveal;
14+ } );
15+ } else if( typeof exports === 'object' ) {
16+ // Node. Does not work with strict CommonJS.
17+ module.exports = factory();
18+ } else {
19+ // Browser globals.
20+ root.Reveal = factory();
21+ }
22+}( this, function() {
23+
24+ 'use strict';
25+
26+ var Reveal;
27+
28+ // The reveal.js version
29+ var VERSION = '3.8.0';
30+
31+ var SLIDES_SELECTOR = '.slides section',
32+ HORIZONTAL_SLIDES_SELECTOR = '.slides>section',
33+ VERTICAL_SLIDES_SELECTOR = '.slides>section.present>section',
34+ HOME_SLIDE_SELECTOR = '.slides>section:first-of-type',
35+ UA = navigator.userAgent,
36+
37+ // Configuration defaults, can be overridden at initialization time
38+ config = {
39+
40+ // The "normal" size of the presentation, aspect ratio will be preserved
41+ // when the presentation is scaled to fit different resolutions
42+ width: 960,
43+ height: 700,
44+
45+ // Factor of the display size that should remain empty around the content
46+ margin: 0.04,
47+
48+ // Bounds for smallest/largest possible scale to apply to content
49+ minScale: 0.2,
50+ maxScale: 2.0,
51+
52+ // Display presentation control arrows
53+ controls: true,
54+
55+ // Help the user learn the controls by providing hints, for example by
56+ // bouncing the down arrow when they first encounter a vertical slide
57+ controlsTutorial: true,
58+
59+ // Determines where controls appear, "edges" or "bottom-right"
60+ controlsLayout: 'bottom-right',
61+
62+ // Visibility rule for backwards navigation arrows; "faded", "hidden"
63+ // or "visible"
64+ controlsBackArrows: 'faded',
65+
66+ // Display a presentation progress bar
67+ progress: true,
68+
69+ // Display the page number of the current slide
70+ // - true: Show slide number
71+ // - false: Hide slide number
72+ //
73+ // Can optionally be set as a string that specifies the number formatting:
74+ // - "h.v": Horizontal . vertical slide number (default)
75+ // - "h/v": Horizontal / vertical slide number
76+ // - "c": Flattened slide number
77+ // - "c/t": Flattened slide number / total slides
78+ //
79+ // Alternatively, you can provide a function that returns the slide
80+ // number for the current slide. The function needs to return an array
81+ // with one string [slideNumber] or three strings [n1,delimiter,n2].
82+ // See #formatSlideNumber().
83+ slideNumber: false,
84+
85+ // Can be used to limit the contexts in which the slide number appears
86+ // - "all": Always show the slide number
87+ // - "print": Only when printing to PDF
88+ // - "speaker": Only in the speaker view
89+ showSlideNumber: 'all',
90+
91+ // Use 1 based indexing for # links to match slide number (default is zero
92+ // based)
93+ hashOneBasedIndex: false,
94+
95+ // Add the current slide number to the URL hash so that reloading the
96+ // page/copying the URL will return you to the same slide
97+ hash: false,
98+
99+ // Push each slide change to the browser history. Implies `hash: true`
100+ history: false,
101+
102+ // Enable keyboard shortcuts for navigation
103+ keyboard: true,
104+
105+ // Optional function that blocks keyboard events when retuning false
106+ keyboardCondition: null,
107+
108+ // Enable the slide overview mode
109+ overview: true,
110+
111+ // Disables the default reveal.js slide layout so that you can use
112+ // custom CSS layout
113+ disableLayout: false,
114+
115+ // Vertical centering of slides
116+ center: true,
117+
118+ // Enables touch navigation on devices with touch input
119+ touch: true,
120+
121+ // Loop the presentation
122+ loop: false,
123+
124+ // Change the presentation direction to be RTL
125+ rtl: false,
126+
127+ // Changes the behavior of our navigation directions.
128+ //
129+ // "default"
130+ // Left/right arrow keys step between horizontal slides, up/down
131+ // arrow keys step between vertical slides. Space key steps through
132+ // all slides (both horizontal and vertical).
133+ //
134+ // "linear"
135+ // Removes the up/down arrows. Left/right arrows step through all
136+ // slides (both horizontal and vertical).
137+ //
138+ // "grid"
139+ // When this is enabled, stepping left/right from a vertical stack
140+ // to an adjacent vertical stack will land you at the same vertical
141+ // index.
142+ //
143+ // Consider a deck with six slides ordered in two vertical stacks:
144+ // 1.1 2.1
145+ // 1.2 2.2
146+ // 1.3 2.3
147+ //
148+ // If you're on slide 1.3 and navigate right, you will normally move
149+ // from 1.3 -> 2.1. If "grid" is used, the same navigation takes you
150+ // from 1.3 -> 2.3.
151+ navigationMode: 'default',
152+
153+ // Randomizes the order of slides each time the presentation loads
154+ shuffle: false,
155+
156+ // Turns fragments on and off globally
157+ fragments: true,
158+
159+ // Flags whether to include the current fragment in the URL,
160+ // so that reloading brings you to the same fragment position
161+ fragmentInURL: false,
162+
163+ // Flags if the presentation is running in an embedded mode,
164+ // i.e. contained within a limited portion of the screen
165+ embedded: false,
166+
167+ // Flags if we should show a help overlay when the question-mark
168+ // key is pressed
169+ help: true,
170+
171+ // Flags if it should be possible to pause the presentation (blackout)
172+ pause: true,
173+
174+ // Flags if speaker notes should be visible to all viewers
175+ showNotes: false,
176+
177+ // Global override for autolaying embedded media (video/audio/iframe)
178+ // - null: Media will only autoplay if data-autoplay is present
179+ // - true: All media will autoplay, regardless of individual setting
180+ // - false: No media will autoplay, regardless of individual setting
181+ autoPlayMedia: null,
182+
183+ // Global override for preloading lazy-loaded iframes
184+ // - null: Iframes with data-src AND data-preload will be loaded when within
185+ // the viewDistance, iframes with only data-src will be loaded when visible
186+ // - true: All iframes with data-src will be loaded when within the viewDistance
187+ // - false: All iframes with data-src will be loaded only when visible
188+ preloadIframes: null,
189+
190+ // Controls automatic progression to the next slide
191+ // - 0: Auto-sliding only happens if the data-autoslide HTML attribute
192+ // is present on the current slide or fragment
193+ // - 1+: All slides will progress automatically at the given interval
194+ // - false: No auto-sliding, even if data-autoslide is present
195+ autoSlide: 0,
196+
197+ // Stop auto-sliding after user input
198+ autoSlideStoppable: true,
199+
200+ // Use this method for navigation when auto-sliding (defaults to navigateNext)
201+ autoSlideMethod: null,
202+
203+ // Specify the average time in seconds that you think you will spend
204+ // presenting each slide. This is used to show a pacing timer in the
205+ // speaker view
206+ defaultTiming: null,
207+
208+ // Enable slide navigation via mouse wheel
209+ mouseWheel: false,
210+
211+ // Apply a 3D roll to links on hover
212+ rollingLinks: false,
213+
214+ // Hides the address bar on mobile devices
215+ hideAddressBar: true,
216+
217+ // Opens links in an iframe preview overlay
218+ // Add `data-preview-link` and `data-preview-link="false"` to customise each link
219+ // individually
220+ previewLinks: false,
221+
222+ // Exposes the reveal.js API through window.postMessage
223+ postMessage: true,
224+
225+ // Dispatches all reveal.js events to the parent window through postMessage
226+ postMessageEvents: false,
227+
228+ // Focuses body when page changes visibility to ensure keyboard shortcuts work
229+ focusBodyOnPageVisibilityChange: true,
230+
231+ // Transition style
232+ transition: 'slide', // none/fade/slide/convex/concave/zoom
233+
234+ // Transition speed
235+ transitionSpeed: 'default', // default/fast/slow
236+
237+ // Transition style for full page slide backgrounds
238+ backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
239+
240+ // Parallax background image
241+ parallaxBackgroundImage: '', // CSS syntax, e.g. "a.jpg"
242+
243+ // Parallax background size
244+ parallaxBackgroundSize: '', // CSS syntax, e.g. "3000px 2000px"
245+
246+ // Parallax background repeat
247+ parallaxBackgroundRepeat: '', // repeat/repeat-x/repeat-y/no-repeat/initial/inherit
248+
249+ // Parallax background position
250+ parallaxBackgroundPosition: '', // CSS syntax, e.g. "top left"
251+
252+ // Amount of pixels to move the parallax background per slide step
253+ parallaxBackgroundHorizontal: null,
254+ parallaxBackgroundVertical: null,
255+
256+ // The maximum number of pages a single slide can expand onto when printing
257+ // to PDF, unlimited by default
258+ pdfMaxPagesPerSlide: Number.POSITIVE_INFINITY,
259+
260+ // Prints each fragment on a separate slide
261+ pdfSeparateFragments: true,
262+
263+ // Offset used to reduce the height of content within exported PDF pages.
264+ // This exists to account for environment differences based on how you
265+ // print to PDF. CLI printing options, like phantomjs and wkpdf, can end
266+ // on precisely the total height of the document whereas in-browser
267+ // printing has to end one pixel before.
268+ pdfPageHeightOffset: -1,
269+
270+ // Number of slides away from the current that are visible
271+ viewDistance: 3,
272+
273+ // Number of slides away from the current that are visible on mobile
274+ // devices. It is advisable to set this to a lower number than
275+ // viewDistance in order to save resources.
276+ mobileViewDistance: 2,
277+
278+ // The display mode that will be used to show slides
279+ display: 'block',
280+
281+ // Hide cursor if inactive
282+ hideInactiveCursor: true,
283+
284+ // Time before the cursor is hidden (in ms)
285+ hideCursorTime: 5000,
286+
287+ // Script dependencies to load
288+ dependencies: []
289+
290+ },
291+
292+ // Flags if Reveal.initialize() has been called
293+ initialized = false,
294+
295+ // Flags if reveal.js is loaded (has dispatched the 'ready' event)
296+ loaded = false,
297+
298+ // Flags if the overview mode is currently active
299+ overview = false,
300+
301+ // Holds the dimensions of our overview slides, including margins
302+ overviewSlideWidth = null,
303+ overviewSlideHeight = null,
304+
305+ // The horizontal and vertical index of the currently active slide
306+ indexh,
307+ indexv,
308+
309+ // The previous and current slide HTML elements
310+ previousSlide,
311+ currentSlide,
312+
313+ previousBackground,
314+
315+ // Remember which directions that the user has navigated towards
316+ hasNavigatedRight = false,
317+ hasNavigatedDown = false,
318+
319+ // Slides may hold a data-state attribute which we pick up and apply
320+ // as a class to the body. This list contains the combined state of
321+ // all current slides.
322+ state = [],
323+
324+ // The current scale of the presentation (see width/height config)
325+ scale = 1,
326+
327+ // CSS transform that is currently applied to the slides container,
328+ // split into two groups
329+ slidesTransform = { layout: '', overview: '' },
330+
331+ // Cached references to DOM elements
332+ dom = {},
333+
334+ // A list of registered reveal.js plugins
335+ plugins = {},
336+
337+ // List of asynchronously loaded reveal.js dependencies
338+ asyncDependencies = [],
339+
340+ // Features supported by the browser, see #checkCapabilities()
341+ features = {},
342+
343+ // Client is a mobile device, see #checkCapabilities()
344+ isMobileDevice,
345+
346+ // Client is a desktop Chrome, see #checkCapabilities()
347+ isChrome,
348+
349+ // Throttles mouse wheel navigation
350+ lastMouseWheelStep = 0,
351+
352+ // Delays updates to the URL due to a Chrome thumbnailer bug
353+ writeURLTimeout = 0,
354+
355+ // Is the mouse pointer currently hidden from view
356+ cursorHidden = false,
357+
358+ // Timeout used to determine when the cursor is inactive
359+ cursorInactiveTimeout = 0,
360+
361+ // Flags if the interaction event listeners are bound
362+ eventsAreBound = false,
363+
364+ // The current auto-slide duration
365+ autoSlide = 0,
366+
367+ // Auto slide properties
368+ autoSlidePlayer,
369+ autoSlideTimeout = 0,
370+ autoSlideStartTime = -1,
371+ autoSlidePaused = false,
372+
373+ // Holds information about the currently ongoing touch input
374+ touch = {
375+ startX: 0,
376+ startY: 0,
377+ startCount: 0,
378+ captured: false,
379+ threshold: 40
380+ },
381+
382+ // A key:value map of shortcut keyboard keys and descriptions of
383+ // the actions they trigger, generated in #configure()
384+ keyboardShortcuts = {},
385+
386+ // Holds custom key code mappings
387+ registeredKeyBindings = {};
388+
389+ /**
390+ * Starts up the presentation if the client is capable.
391+ */
392+ function initialize( options ) {
393+
394+ // Make sure we only initialize once
395+ if( initialized === true ) return;
396+
397+ initialized = true;
398+
399+ checkCapabilities();
400+
401+ if( !features.transforms2d && !features.transforms3d ) {
402+ document.body.setAttribute( 'class', 'no-transforms' );
403+
404+ // Since JS won't be running any further, we load all lazy
405+ // loading elements upfront
406+ var images = toArray( document.getElementsByTagName( 'img' ) ),
407+ iframes = toArray( document.getElementsByTagName( 'iframe' ) );
408+
409+ var lazyLoadable = images.concat( iframes );
410+
411+ for( var i = 0, len = lazyLoadable.length; i < len; i++ ) {
412+ var element = lazyLoadable[i];
413+ if( element.getAttribute( 'data-src' ) ) {
414+ element.setAttribute( 'src', element.getAttribute( 'data-src' ) );
415+ element.removeAttribute( 'data-src' );
416+ }
417+ }
418+
419+ // If the browser doesn't support core features we won't be
420+ // using JavaScript to control the presentation
421+ return;
422+ }
423+
424+ // Cache references to key DOM elements
425+ dom.wrapper = document.querySelector( '.reveal' );
426+ dom.slides = document.querySelector( '.reveal .slides' );
427+
428+ // Force a layout when the whole page, incl fonts, has loaded
429+ window.addEventListener( 'load', layout, false );
430+
431+ var query = Reveal.getQueryHash();
432+
433+ // Do not accept new dependencies via query config to avoid
434+ // the potential of malicious script injection
435+ if( typeof query['dependencies'] !== 'undefined' ) delete query['dependencies'];
436+
437+ // Copy options over to our config object
438+ extend( config, options );
439+ extend( config, query );
440+
441+ // Hide the address bar in mobile browsers
442+ hideAddressBar();
443+
444+ // Loads dependencies and continues to #start() once done
445+ load();
446+
447+ }
448+
449+ /**
450+ * Inspect the client to see what it's capable of, this
451+ * should only happens once per runtime.
452+ */
453+ function checkCapabilities() {
454+
455+ isMobileDevice = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
456+ ( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
457+ isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
458+
459+ var testElement = document.createElement( 'div' );
460+
461+ features.transforms3d = 'WebkitPerspective' in testElement.style ||
462+ 'MozPerspective' in testElement.style ||
463+ 'msPerspective' in testElement.style ||
464+ 'OPerspective' in testElement.style ||
465+ 'perspective' in testElement.style;
466+
467+ features.transforms2d = 'WebkitTransform' in testElement.style ||
468+ 'MozTransform' in testElement.style ||
469+ 'msTransform' in testElement.style ||
470+ 'OTransform' in testElement.style ||
471+ 'transform' in testElement.style;
472+
473+ features.requestAnimationFrameMethod = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
474+ features.requestAnimationFrame = typeof features.requestAnimationFrameMethod === 'function';
475+
476+ features.canvas = !!document.createElement( 'canvas' ).getContext;
477+
478+ // Transitions in the overview are disabled in desktop and
479+ // Safari due to lag
480+ features.overviewTransitions = !/Version\/[\d\.]+.*Safari/.test( UA );
481+
482+ // Flags if we should use zoom instead of transform to scale
483+ // up slides. Zoom produces crisper results but has a lot of
484+ // xbrowser quirks so we only use it in whitelsited browsers.
485+ features.zoom = 'zoom' in testElement.style && !isMobileDevice &&
486+ ( isChrome || /Version\/[\d\.]+.*Safari/.test( UA ) );
487+
488+ }
489+
490+ /**
491+ * Loads the dependencies of reveal.js. Dependencies are
492+ * defined via the configuration option 'dependencies'
493+ * and will be loaded prior to starting/binding reveal.js.
494+ * Some dependencies may have an 'async' flag, if so they
495+ * will load after reveal.js has been started up.
496+ */
497+ function load() {
498+
499+ var scripts = [],
500+ scriptsToLoad = 0;
501+
502+ config.dependencies.forEach( function( s ) {
503+ // Load if there's no condition or the condition is truthy
504+ if( !s.condition || s.condition() ) {
505+ if( s.async ) {
506+ asyncDependencies.push( s );
507+ }
508+ else {
509+ scripts.push( s );
510+ }
511+ }
512+ } );
513+
514+ if( scripts.length ) {
515+ scriptsToLoad = scripts.length;
516+
517+ // Load synchronous scripts
518+ scripts.forEach( function( s ) {
519+ loadScript( s.src, function() {
520+
521+ if( typeof s.callback === 'function' ) s.callback();
522+
523+ if( --scriptsToLoad === 0 ) {
524+ initPlugins();
525+ }
526+
527+ } );
528+ } );
529+ }
530+ else {
531+ initPlugins();
532+ }
533+
534+ }
535+
536+ /**
537+ * Initializes our plugins and waits for them to be ready
538+ * before proceeding.
539+ */
540+ function initPlugins() {
541+
542+ var pluginsToInitialize = Object.keys( plugins ).length;
543+
544+ // If there are no plugins, skip this step
545+ if( pluginsToInitialize === 0 ) {
546+ loadAsyncDependencies();
547+ }
548+ // ... otherwise initialize plugins
549+ else {
550+
551+ var afterPlugInitialized = function() {
552+ if( --pluginsToInitialize === 0 ) {
553+ loadAsyncDependencies();
554+ }
555+ };
556+
557+ for( var i in plugins ) {
558+
559+ var plugin = plugins[i];
560+
561+ // If the plugin has an 'init' method, invoke it
562+ if( typeof plugin.init === 'function' ) {
563+ var callback = plugin.init();
564+
565+ // If the plugin returned a Promise, wait for it
566+ if( callback && typeof callback.then === 'function' ) {
567+ callback.then( afterPlugInitialized );
568+ }
569+ else {
570+ afterPlugInitialized();
571+ }
572+ }
573+ else {
574+ afterPlugInitialized();
575+ }
576+
577+ }
578+
579+ }
580+
581+ }
582+
583+ /**
584+ * Loads all async reveal.js dependencies.
585+ */
586+ function loadAsyncDependencies() {
587+
588+ if( asyncDependencies.length ) {
589+ asyncDependencies.forEach( function( s ) {
590+ loadScript( s.src, s.callback );
591+ } );
592+ }
593+
594+ start();
595+
596+ }
597+
598+ /**
599+ * Loads a JavaScript file from the given URL and executes it.
600+ *
601+ * @param {string} url Address of the .js file to load
602+ * @param {function} callback Method to invoke when the script
603+ * has loaded and executed
604+ */
605+ function loadScript( url, callback ) {
606+
607+ var script = document.createElement( 'script' );
608+ script.type = 'text/javascript';
609+ script.async = false;
610+ script.defer = false;
611+ script.src = url;
612+
613+ if( callback ) {
614+
615+ // Success callback
616+ script.onload = script.onreadystatechange = function( event ) {
617+ if( event.type === "load" || (/loaded|complete/.test( script.readyState ) ) ) {
618+
619+ // Kill event listeners
620+ script.onload = script.onreadystatechange = script.onerror = null;
621+
622+ callback();
623+
624+ }
625+ };
626+
627+ // Error callback
628+ script.onerror = function( err ) {
629+
630+ // Kill event listeners
631+ script.onload = script.onreadystatechange = script.onerror = null;
632+
633+ callback( new Error( 'Failed loading script: ' + script.src + '\n' + err) );
634+
635+ };
636+
637+ }
638+
639+ // Append the script at the end of <head>
640+ var head = document.querySelector( 'head' );
641+ head.insertBefore( script, head.lastChild );
642+
643+ }
644+
645+ /**
646+ * Starts up reveal.js by binding input events and navigating
647+ * to the current URL deeplink if there is one.
648+ */
649+ function start() {
650+
651+ loaded = true;
652+
653+ // Make sure we've got all the DOM elements we need
654+ setupDOM();
655+
656+ // Listen to messages posted to this window
657+ setupPostMessage();
658+
659+ // Prevent the slides from being scrolled out of view
660+ setupScrollPrevention();
661+
662+ // Resets all vertical slides so that only the first is visible
663+ resetVerticalSlides();
664+
665+ // Updates the presentation to match the current configuration values
666+ configure();
667+
668+ // Read the initial hash
669+ readURL();
670+
671+ // Update all backgrounds
672+ updateBackground( true );
673+
674+ // Notify listeners that the presentation is ready but use a 1ms
675+ // timeout to ensure it's not fired synchronously after #initialize()
676+ setTimeout( function() {
677+ // Enable transitions now that we're loaded
678+ dom.slides.classList.remove( 'no-transition' );
679+
680+ dom.wrapper.classList.add( 'ready' );
681+
682+ dispatchEvent( 'ready', {
683+ 'indexh': indexh,
684+ 'indexv': indexv,
685+ 'currentSlide': currentSlide
686+ } );
687+ }, 1 );
688+
689+ // Special setup and config is required when printing to PDF
690+ if( isPrintingPDF() ) {
691+ removeEventListeners();
692+
693+ // The document needs to have loaded for the PDF layout
694+ // measurements to be accurate
695+ if( document.readyState === 'complete' ) {
696+ setupPDF();
697+ }
698+ else {
699+ window.addEventListener( 'load', setupPDF );
700+ }
701+ }
702+
703+ }
704+
705+ /**
706+ * Finds and stores references to DOM elements which are
707+ * required by the presentation. If a required element is
708+ * not found, it is created.
709+ */
710+ function setupDOM() {
711+
712+ // Prevent transitions while we're loading
713+ dom.slides.classList.add( 'no-transition' );
714+
715+ if( isMobileDevice ) {
716+ dom.wrapper.classList.add( 'no-hover' );
717+ }
718+ else {
719+ dom.wrapper.classList.remove( 'no-hover' );
720+ }
721+
722+ if( /iphone/gi.test( UA ) ) {
723+ dom.wrapper.classList.add( 'ua-iphone' );
724+ }
725+ else {
726+ dom.wrapper.classList.remove( 'ua-iphone' );
727+ }
728+
729+ // Background element
730+ dom.background = createSingletonNode( dom.wrapper, 'div', 'backgrounds', null );
731+
732+ // Progress bar
733+ dom.progress = createSingletonNode( dom.wrapper, 'div', 'progress', '<span></span>' );
734+ dom.progressbar = dom.progress.querySelector( 'span' );
735+
736+ // Arrow controls
737+ dom.controls = createSingletonNode( dom.wrapper, 'aside', 'controls',
738+ '<button class="navigate-left" aria-label="previous slide"><div class="controls-arrow"></div></button>' +
739+ '<button class="navigate-right" aria-label="next slide"><div class="controls-arrow"></div></button>' +
740+ '<button class="navigate-up" aria-label="above slide"><div class="controls-arrow"></div></button>' +
741+ '<button class="navigate-down" aria-label="below slide"><div class="controls-arrow"></div></button>' );
742+
743+ // Slide number
744+ dom.slideNumber = createSingletonNode( dom.wrapper, 'div', 'slide-number', '' );
745+
746+ // Element containing notes that are visible to the audience
747+ dom.speakerNotes = createSingletonNode( dom.wrapper, 'div', 'speaker-notes', null );
748+ dom.speakerNotes.setAttribute( 'data-prevent-swipe', '' );
749+ dom.speakerNotes.setAttribute( 'tabindex', '0' );
750+
751+ // Overlay graphic which is displayed during the paused mode
752+ dom.pauseOverlay = createSingletonNode( dom.wrapper, 'div', 'pause-overlay', config.controls ? '<button class="resume-button">Resume presentation</button>' : null );
753+
754+ dom.wrapper.setAttribute( 'role', 'application' );
755+
756+ // There can be multiple instances of controls throughout the page
757+ dom.controlsLeft = toArray( document.querySelectorAll( '.navigate-left' ) );
758+ dom.controlsRight = toArray( document.querySelectorAll( '.navigate-right' ) );
759+ dom.controlsUp = toArray( document.querySelectorAll( '.navigate-up' ) );
760+ dom.controlsDown = toArray( document.querySelectorAll( '.navigate-down' ) );
761+ dom.controlsPrev = toArray( document.querySelectorAll( '.navigate-prev' ) );
762+ dom.controlsNext = toArray( document.querySelectorAll( '.navigate-next' ) );
763+
764+ // The right and down arrows in the standard reveal.js controls
765+ dom.controlsRightArrow = dom.controls.querySelector( '.navigate-right' );
766+ dom.controlsDownArrow = dom.controls.querySelector( '.navigate-down' );
767+
768+ dom.statusDiv = createStatusDiv();
769+ }
770+
771+ /**
772+ * Creates a hidden div with role aria-live to announce the
773+ * current slide content. Hide the div off-screen to make it
774+ * available only to Assistive Technologies.
775+ *
776+ * @return {HTMLElement}
777+ */
778+ function createStatusDiv() {
779+
780+ var statusDiv = document.getElementById( 'aria-status-div' );
781+ if( !statusDiv ) {
782+ statusDiv = document.createElement( 'div' );
783+ statusDiv.style.position = 'absolute';
784+ statusDiv.style.height = '1px';
785+ statusDiv.style.width = '1px';
786+ statusDiv.style.overflow = 'hidden';
787+ statusDiv.style.clip = 'rect( 1px, 1px, 1px, 1px )';
788+ statusDiv.setAttribute( 'id', 'aria-status-div' );
789+ statusDiv.setAttribute( 'aria-live', 'polite' );
790+ statusDiv.setAttribute( 'aria-atomic','true' );
791+ dom.wrapper.appendChild( statusDiv );
792+ }
793+ return statusDiv;
794+
795+ }
796+
797+ /**
798+ * Converts the given HTML element into a string of text
799+ * that can be announced to a screen reader. Hidden
800+ * elements are excluded.
801+ */
802+ function getStatusText( node ) {
803+
804+ var text = '';
805+
806+ // Text node
807+ if( node.nodeType === 3 ) {
808+ text += node.textContent;
809+ }
810+ // Element node
811+ else if( node.nodeType === 1 ) {
812+
813+ var isAriaHidden = node.getAttribute( 'aria-hidden' );
814+ var isDisplayHidden = window.getComputedStyle( node )['display'] === 'none';
815+ if( isAriaHidden !== 'true' && !isDisplayHidden ) {
816+
817+ toArray( node.childNodes ).forEach( function( child ) {
818+ text += getStatusText( child );
819+ } );
820+
821+ }
822+
823+ }
824+
825+ return text;
826+
827+ }
828+
829+ /**
830+ * Configures the presentation for printing to a static
831+ * PDF.
832+ */
833+ function setupPDF() {
834+
835+ var slideSize = getComputedSlideSize( window.innerWidth, window.innerHeight );
836+
837+ // Dimensions of the PDF pages
838+ var pageWidth = Math.floor( slideSize.width * ( 1 + config.margin ) ),
839+ pageHeight = Math.floor( slideSize.height * ( 1 + config.margin ) );
840+
841+ // Dimensions of slides within the pages
842+ var slideWidth = slideSize.width,
843+ slideHeight = slideSize.height;
844+
845+ // Let the browser know what page size we want to print
846+ injectStyleSheet( '@page{size:'+ pageWidth +'px '+ pageHeight +'px; margin: 0px;}' );
847+
848+ // Limit the size of certain elements to the dimensions of the slide
849+ injectStyleSheet( '.reveal section>img, .reveal section>video, .reveal section>iframe{max-width: '+ slideWidth +'px; max-height:'+ slideHeight +'px}' );
850+
851+ document.body.classList.add( 'print-pdf' );
852+ document.body.style.width = pageWidth + 'px';
853+ document.body.style.height = pageHeight + 'px';
854+
855+ // Make sure stretch elements fit on slide
856+ layoutSlideContents( slideWidth, slideHeight );
857+
858+ // Add each slide's index as attributes on itself, we need these
859+ // indices to generate slide numbers below
860+ toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( hslide, h ) {
861+ hslide.setAttribute( 'data-index-h', h );
862+
863+ if( hslide.classList.contains( 'stack' ) ) {
864+ toArray( hslide.querySelectorAll( 'section' ) ).forEach( function( vslide, v ) {
865+ vslide.setAttribute( 'data-index-h', h );
866+ vslide.setAttribute( 'data-index-v', v );
867+ } );
868+ }
869+ } );
870+
871+ // Slide and slide background layout
872+ toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) {
873+
874+ // Vertical stacks are not centred since their section
875+ // children will be
876+ if( slide.classList.contains( 'stack' ) === false ) {
877+ // Center the slide inside of the page, giving the slide some margin
878+ var left = ( pageWidth - slideWidth ) / 2,
879+ top = ( pageHeight - slideHeight ) / 2;
880+
881+ var contentHeight = slide.scrollHeight;
882+ var numberOfPages = Math.max( Math.ceil( contentHeight / pageHeight ), 1 );
883+
884+ // Adhere to configured pages per slide limit
885+ numberOfPages = Math.min( numberOfPages, config.pdfMaxPagesPerSlide );
886+
887+ // Center slides vertically
888+ if( numberOfPages === 1 && config.center || slide.classList.contains( 'center' ) ) {
889+ top = Math.max( ( pageHeight - contentHeight ) / 2, 0 );
890+ }
891+
892+ // Wrap the slide in a page element and hide its overflow
893+ // so that no page ever flows onto another
894+ var page = document.createElement( 'div' );
895+ page.className = 'pdf-page';
896+ page.style.height = ( ( pageHeight + config.pdfPageHeightOffset ) * numberOfPages ) + 'px';
897+ slide.parentNode.insertBefore( page, slide );
898+ page.appendChild( slide );
899+
900+ // Position the slide inside of the page
901+ slide.style.left = left + 'px';
902+ slide.style.top = top + 'px';
903+ slide.style.width = slideWidth + 'px';
904+
905+ if( slide.slideBackgroundElement ) {
906+ page.insertBefore( slide.slideBackgroundElement, slide );
907+ }
908+
909+ // Inject notes if `showNotes` is enabled
910+ if( config.showNotes ) {
911+
912+ // Are there notes for this slide?
913+ var notes = getSlideNotes( slide );
914+ if( notes ) {
915+
916+ var notesSpacing = 8;
917+ var notesLayout = typeof config.showNotes === 'string' ? config.showNotes : 'inline';
918+ var notesElement = document.createElement( 'div' );
919+ notesElement.classList.add( 'speaker-notes' );
920+ notesElement.classList.add( 'speaker-notes-pdf' );
921+ notesElement.setAttribute( 'data-layout', notesLayout );
922+ notesElement.innerHTML = notes;
923+
924+ if( notesLayout === 'separate-page' ) {
925+ page.parentNode.insertBefore( notesElement, page.nextSibling );
926+ }
927+ else {
928+ notesElement.style.left = notesSpacing + 'px';
929+ notesElement.style.bottom = notesSpacing + 'px';
930+ notesElement.style.width = ( pageWidth - notesSpacing*2 ) + 'px';
931+ page.appendChild( notesElement );
932+ }
933+
934+ }
935+
936+ }
937+
938+ // Inject slide numbers if `slideNumbers` are enabled
939+ if( config.slideNumber && /all|print/i.test( config.showSlideNumber ) ) {
940+ var slideNumberH = parseInt( slide.getAttribute( 'data-index-h' ), 10 ) + 1,
941+ slideNumberV = parseInt( slide.getAttribute( 'data-index-v' ), 10 ) + 1;
942+
943+ var numberElement = document.createElement( 'div' );
944+ numberElement.classList.add( 'slide-number' );
945+ numberElement.classList.add( 'slide-number-pdf' );
946+ numberElement.innerHTML = formatSlideNumber( slideNumberH, '.', slideNumberV );
947+ page.appendChild( numberElement );
948+ }
949+
950+ // Copy page and show fragments one after another
951+ if( config.pdfSeparateFragments ) {
952+
953+ // Each fragment 'group' is an array containing one or more
954+ // fragments. Multiple fragments that appear at the same time
955+ // are part of the same group.
956+ var fragmentGroups = sortFragments( page.querySelectorAll( '.fragment' ), true );
957+
958+ var previousFragmentStep;
959+ var previousPage;
960+
961+ fragmentGroups.forEach( function( fragments ) {
962+
963+ // Remove 'current-fragment' from the previous group
964+ if( previousFragmentStep ) {
965+ previousFragmentStep.forEach( function( fragment ) {
966+ fragment.classList.remove( 'current-fragment' );
967+ } );
968+ }
969+
970+ // Show the fragments for the current index
971+ fragments.forEach( function( fragment ) {
972+ fragment.classList.add( 'visible', 'current-fragment' );
973+ } );
974+
975+ // Create a separate page for the current fragment state
976+ var clonedPage = page.cloneNode( true );
977+ page.parentNode.insertBefore( clonedPage, ( previousPage || page ).nextSibling );
978+
979+ previousFragmentStep = fragments;
980+ previousPage = clonedPage;
981+
982+ } );
983+
984+ // Reset the first/original page so that all fragments are hidden
985+ fragmentGroups.forEach( function( fragments ) {
986+ fragments.forEach( function( fragment ) {
987+ fragment.classList.remove( 'visible', 'current-fragment' );
988+ } );
989+ } );
990+
991+ }
992+ // Show all fragments
993+ else {
994+ toArray( page.querySelectorAll( '.fragment:not(.fade-out)' ) ).forEach( function( fragment ) {
995+ fragment.classList.add( 'visible' );
996+ } );
997+ }
998+
999+ }
1000+
1001+ } );
1002+
1003+ // Notify subscribers that the PDF layout is good to go
1004+ dispatchEvent( 'pdf-ready' );
1005+
1006+ }
1007+
1008+ /**
1009+ * This is an unfortunate necessity. Some actions – such as
1010+ * an input field being focused in an iframe or using the
1011+ * keyboard to expand text selection beyond the bounds of
1012+ * a slide – can trigger our content to be pushed out of view.
1013+ * This scrolling can not be prevented by hiding overflow in
1014+ * CSS (we already do) so we have to resort to repeatedly
1015+ * checking if the slides have been offset :(
1016+ */
1017+ function setupScrollPrevention() {
1018+
1019+ setInterval( function() {
1020+ if( dom.wrapper.scrollTop !== 0 || dom.wrapper.scrollLeft !== 0 ) {
1021+ dom.wrapper.scrollTop = 0;
1022+ dom.wrapper.scrollLeft = 0;
1023+ }
1024+ }, 1000 );
1025+
1026+ }
1027+
1028+ /**
1029+ * Creates an HTML element and returns a reference to it.
1030+ * If the element already exists the existing instance will
1031+ * be returned.
1032+ *
1033+ * @param {HTMLElement} container
1034+ * @param {string} tagname
1035+ * @param {string} classname
1036+ * @param {string} innerHTML
1037+ *
1038+ * @return {HTMLElement}
1039+ */
1040+ function createSingletonNode( container, tagname, classname, innerHTML ) {
1041+
1042+ // Find all nodes matching the description
1043+ var nodes = container.querySelectorAll( '.' + classname );
1044+
1045+ // Check all matches to find one which is a direct child of
1046+ // the specified container
1047+ for( var i = 0; i < nodes.length; i++ ) {
1048+ var testNode = nodes[i];
1049+ if( testNode.parentNode === container ) {
1050+ return testNode;
1051+ }
1052+ }
1053+
1054+ // If no node was found, create it now
1055+ var node = document.createElement( tagname );
1056+ node.className = classname;
1057+ if( typeof innerHTML === 'string' ) {
1058+ node.innerHTML = innerHTML;
1059+ }
1060+ container.appendChild( node );
1061+
1062+ return node;
1063+
1064+ }
1065+
1066+ /**
1067+ * Creates the slide background elements and appends them
1068+ * to the background container. One element is created per
1069+ * slide no matter if the given slide has visible background.
1070+ */
1071+ function createBackgrounds() {
1072+
1073+ var printMode = isPrintingPDF();
1074+
1075+ // Clear prior backgrounds
1076+ dom.background.innerHTML = '';
1077+ dom.background.classList.add( 'no-transition' );
1078+
1079+ // Iterate over all horizontal slides
1080+ toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( slideh ) {
1081+
1082+ var backgroundStack = createBackground( slideh, dom.background );
1083+
1084+ // Iterate over all vertical slides
1085+ toArray( slideh.querySelectorAll( 'section' ) ).forEach( function( slidev ) {
1086+
1087+ createBackground( slidev, backgroundStack );
1088+
1089+ backgroundStack.classList.add( 'stack' );
1090+
1091+ } );
1092+
1093+ } );
1094+
1095+ // Add parallax background if specified
1096+ if( config.parallaxBackgroundImage ) {
1097+
1098+ dom.background.style.backgroundImage = 'url("' + config.parallaxBackgroundImage + '")';
1099+ dom.background.style.backgroundSize = config.parallaxBackgroundSize;
1100+ dom.background.style.backgroundRepeat = config.parallaxBackgroundRepeat;
1101+ dom.background.style.backgroundPosition = config.parallaxBackgroundPosition;
1102+
1103+ // Make sure the below properties are set on the element - these properties are
1104+ // needed for proper transitions to be set on the element via CSS. To remove
1105+ // annoying background slide-in effect when the presentation starts, apply
1106+ // these properties after short time delay
1107+ setTimeout( function() {
1108+ dom.wrapper.classList.add( 'has-parallax-background' );
1109+ }, 1 );
1110+
1111+ }
1112+ else {
1113+
1114+ dom.background.style.backgroundImage = '';
1115+ dom.wrapper.classList.remove( 'has-parallax-background' );
1116+
1117+ }
1118+
1119+ }
1120+
1121+ /**
1122+ * Creates a background for the given slide.
1123+ *
1124+ * @param {HTMLElement} slide
1125+ * @param {HTMLElement} container The element that the background
1126+ * should be appended to
1127+ * @return {HTMLElement} New background div
1128+ */
1129+ function createBackground( slide, container ) {
1130+
1131+
1132+ // Main slide background element
1133+ var element = document.createElement( 'div' );
1134+ element.className = 'slide-background ' + slide.className.replace( /present|past|future/, '' );
1135+
1136+ // Inner background element that wraps images/videos/iframes
1137+ var contentElement = document.createElement( 'div' );
1138+ contentElement.className = 'slide-background-content';
1139+
1140+ element.appendChild( contentElement );
1141+ container.appendChild( element );
1142+
1143+ slide.slideBackgroundElement = element;
1144+ slide.slideBackgroundContentElement = contentElement;
1145+
1146+ // Syncs the background to reflect all current background settings
1147+ syncBackground( slide );
1148+
1149+ return element;
1150+
1151+ }
1152+
1153+ /**
1154+ * Renders all of the visual properties of a slide background
1155+ * based on the various background attributes.
1156+ *
1157+ * @param {HTMLElement} slide
1158+ */
1159+ function syncBackground( slide ) {
1160+
1161+ var element = slide.slideBackgroundElement,
1162+ contentElement = slide.slideBackgroundContentElement;
1163+
1164+ // Reset the prior background state in case this is not the
1165+ // initial sync
1166+ slide.classList.remove( 'has-dark-background' );
1167+ slide.classList.remove( 'has-light-background' );
1168+
1169+ element.removeAttribute( 'data-loaded' );
1170+ element.removeAttribute( 'data-background-hash' );
1171+ element.removeAttribute( 'data-background-size' );
1172+ element.removeAttribute( 'data-background-transition' );
1173+ element.style.backgroundColor = '';
1174+
1175+ contentElement.style.backgroundSize = '';
1176+ contentElement.style.backgroundRepeat = '';
1177+ contentElement.style.backgroundPosition = '';
1178+ contentElement.style.backgroundImage = '';
1179+ contentElement.style.opacity = '';
1180+ contentElement.innerHTML = '';
1181+
1182+ var data = {
1183+ background: slide.getAttribute( 'data-background' ),
1184+ backgroundSize: slide.getAttribute( 'data-background-size' ),
1185+ backgroundImage: slide.getAttribute( 'data-background-image' ),
1186+ backgroundVideo: slide.getAttribute( 'data-background-video' ),
1187+ backgroundIframe: slide.getAttribute( 'data-background-iframe' ),
1188+ backgroundColor: slide.getAttribute( 'data-background-color' ),
1189+ backgroundRepeat: slide.getAttribute( 'data-background-repeat' ),
1190+ backgroundPosition: slide.getAttribute( 'data-background-position' ),
1191+ backgroundTransition: slide.getAttribute( 'data-background-transition' ),
1192+ backgroundOpacity: slide.getAttribute( 'data-background-opacity' )
1193+ };
1194+
1195+ if( data.background ) {
1196+ // Auto-wrap image urls in url(...)
1197+ if( /^(http|file|\/\/)/gi.test( data.background ) || /\.(svg|png|jpg|jpeg|gif|bmp)([?#\s]|$)/gi.test( data.background ) ) {
1198+ slide.setAttribute( 'data-background-image', data.background );
1199+ }
1200+ else {
1201+ element.style.background = data.background;
1202+ }
1203+ }
1204+
1205+ // Create a hash for this combination of background settings.
1206+ // This is used to determine when two slide backgrounds are
1207+ // the same.
1208+ if( data.background || data.backgroundColor || data.backgroundImage || data.backgroundVideo || data.backgroundIframe ) {
1209+ element.setAttribute( 'data-background-hash', data.background +
1210+ data.backgroundSize +
1211+ data.backgroundImage +
1212+ data.backgroundVideo +
1213+ data.backgroundIframe +
1214+ data.backgroundColor +
1215+ data.backgroundRepeat +
1216+ data.backgroundPosition +
1217+ data.backgroundTransition +
1218+ data.backgroundOpacity );
1219+ }
1220+
1221+ // Additional and optional background properties
1222+ if( data.backgroundSize ) element.setAttribute( 'data-background-size', data.backgroundSize );
1223+ if( data.backgroundColor ) element.style.backgroundColor = data.backgroundColor;
1224+ if( data.backgroundTransition ) element.setAttribute( 'data-background-transition', data.backgroundTransition );
1225+
1226+ if( slide.hasAttribute( 'data-preload' ) ) element.setAttribute( 'data-preload', '' );
1227+
1228+ // Background image options are set on the content wrapper
1229+ if( data.backgroundSize ) contentElement.style.backgroundSize = data.backgroundSize;
1230+ if( data.backgroundRepeat ) contentElement.style.backgroundRepeat = data.backgroundRepeat;
1231+ if( data.backgroundPosition ) contentElement.style.backgroundPosition = data.backgroundPosition;
1232+ if( data.backgroundOpacity ) contentElement.style.opacity = data.backgroundOpacity;
1233+
1234+ // If this slide has a background color, we add a class that
1235+ // signals if it is light or dark. If the slide has no background
1236+ // color, no class will be added
1237+ var contrastColor = data.backgroundColor;
1238+
1239+ // If no bg color was found, check the computed background
1240+ if( !contrastColor ) {
1241+ var computedBackgroundStyle = window.getComputedStyle( element );
1242+ if( computedBackgroundStyle && computedBackgroundStyle.backgroundColor ) {
1243+ contrastColor = computedBackgroundStyle.backgroundColor;
1244+ }
1245+ }
1246+
1247+ if( contrastColor ) {
1248+ var rgb = colorToRgb( contrastColor );
1249+
1250+ // Ignore fully transparent backgrounds. Some browsers return
1251+ // rgba(0,0,0,0) when reading the computed background color of
1252+ // an element with no background
1253+ if( rgb && rgb.a !== 0 ) {
1254+ if( colorBrightness( contrastColor ) < 128 ) {
1255+ slide.classList.add( 'has-dark-background' );
1256+ }
1257+ else {
1258+ slide.classList.add( 'has-light-background' );
1259+ }
1260+ }
1261+ }
1262+
1263+ }
1264+
1265+ /**
1266+ * Registers a listener to postMessage events, this makes it
1267+ * possible to call all reveal.js API methods from another
1268+ * window. For example:
1269+ *
1270+ * revealWindow.postMessage( JSON.stringify({
1271+ * method: 'slide',
1272+ * args: [ 2 ]
1273+ * }), '*' );
1274+ */
1275+ function setupPostMessage() {
1276+
1277+ if( config.postMessage ) {
1278+ window.addEventListener( 'message', function ( event ) {
1279+ var data = event.data;
1280+
1281+ // Make sure we're dealing with JSON
1282+ if( typeof data === 'string' && data.charAt( 0 ) === '{' && data.charAt( data.length - 1 ) === '}' ) {
1283+ data = JSON.parse( data );
1284+
1285+ // Check if the requested method can be found
1286+ if( data.method && typeof Reveal[data.method] === 'function' ) {
1287+ var result = Reveal[data.method].apply( Reveal, data.args );
1288+
1289+ // Dispatch a postMessage event with the returned value from
1290+ // our method invocation for getter functions
1291+ dispatchPostMessage( 'callback', { method: data.method, result: result } );
1292+ }
1293+ }
1294+ }, false );
1295+ }
1296+
1297+ }
1298+
1299+ /**
1300+ * Applies the configuration settings from the config
1301+ * object. May be called multiple times.
1302+ *
1303+ * @param {object} options
1304+ */
1305+ function configure( options ) {
1306+
1307+ var oldTransition = config.transition;
1308+
1309+ // New config options may be passed when this method
1310+ // is invoked through the API after initialization
1311+ if( typeof options === 'object' ) extend( config, options );
1312+
1313+ // Abort if reveal.js hasn't finished loading, config
1314+ // changes will be applied automatically once loading
1315+ // finishes
1316+ if( loaded === false ) return;
1317+
1318+ var numberOfSlides = dom.wrapper.querySelectorAll( SLIDES_SELECTOR ).length;
1319+
1320+ // Remove the previously configured transition class
1321+ dom.wrapper.classList.remove( oldTransition );
1322+
1323+ // Force linear transition based on browser capabilities
1324+ if( features.transforms3d === false ) config.transition = 'linear';
1325+
1326+ dom.wrapper.classList.add( config.transition );
1327+
1328+ dom.wrapper.setAttribute( 'data-transition-speed', config.transitionSpeed );
1329+ dom.wrapper.setAttribute( 'data-background-transition', config.backgroundTransition );
1330+
1331+ dom.controls.style.display = config.controls ? 'block' : 'none';
1332+ dom.progress.style.display = config.progress ? 'block' : 'none';
1333+
1334+ dom.controls.setAttribute( 'data-controls-layout', config.controlsLayout );
1335+ dom.controls.setAttribute( 'data-controls-back-arrows', config.controlsBackArrows );
1336+
1337+ if( config.shuffle ) {
1338+ shuffle();
1339+ }
1340+
1341+ if( config.rtl ) {
1342+ dom.wrapper.classList.add( 'rtl' );
1343+ }
1344+ else {
1345+ dom.wrapper.classList.remove( 'rtl' );
1346+ }
1347+
1348+ if( config.center ) {
1349+ dom.wrapper.classList.add( 'center' );
1350+ }
1351+ else {
1352+ dom.wrapper.classList.remove( 'center' );
1353+ }
1354+
1355+ // Exit the paused mode if it was configured off
1356+ if( config.pause === false ) {
1357+ resume();
1358+ }
1359+
1360+ if( config.showNotes ) {
1361+ dom.speakerNotes.setAttribute( 'data-layout', typeof config.showNotes === 'string' ? config.showNotes : 'inline' );
1362+ }
1363+
1364+ if( config.mouseWheel ) {
1365+ document.addEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF
1366+ document.addEventListener( 'mousewheel', onDocumentMouseScroll, false );
1367+ }
1368+ else {
1369+ document.removeEventListener( 'DOMMouseScroll', onDocumentMouseScroll, false ); // FF
1370+ document.removeEventListener( 'mousewheel', onDocumentMouseScroll, false );
1371+ }
1372+
1373+ // Rolling 3D links
1374+ if( config.rollingLinks ) {
1375+ enableRollingLinks();
1376+ }
1377+ else {
1378+ disableRollingLinks();
1379+ }
1380+
1381+ // Auto-hide the mouse pointer when its inactive
1382+ if( config.hideInactiveCursor ) {
1383+ document.addEventListener( 'mousemove', onDocumentCursorActive, false );
1384+ document.addEventListener( 'mousedown', onDocumentCursorActive, false );
1385+ }
1386+ else {
1387+ showCursor();
1388+
1389+ document.removeEventListener( 'mousemove', onDocumentCursorActive, false );
1390+ document.removeEventListener( 'mousedown', onDocumentCursorActive, false );
1391+ }
1392+
1393+ // Iframe link previews
1394+ if( config.previewLinks ) {
1395+ enablePreviewLinks();
1396+ disablePreviewLinks( '[data-preview-link=false]' );
1397+ }
1398+ else {
1399+ disablePreviewLinks();
1400+ enablePreviewLinks( '[data-preview-link]:not([data-preview-link=false])' );
1401+ }
1402+
1403+ // Remove existing auto-slide controls
1404+ if( autoSlidePlayer ) {
1405+ autoSlidePlayer.destroy();
1406+ autoSlidePlayer = null;
1407+ }
1408+
1409+ // Generate auto-slide controls if needed
1410+ if( numberOfSlides > 1 && config.autoSlide && config.autoSlideStoppable && features.canvas && features.requestAnimationFrame ) {
1411+ autoSlidePlayer = new Playback( dom.wrapper, function() {
1412+ return Math.min( Math.max( ( Date.now() - autoSlideStartTime ) / autoSlide, 0 ), 1 );
1413+ } );
1414+
1415+ autoSlidePlayer.on( 'click', onAutoSlidePlayerClick );
1416+ autoSlidePaused = false;
1417+ }
1418+
1419+ // When fragments are turned off they should be visible
1420+ if( config.fragments === false ) {
1421+ toArray( dom.slides.querySelectorAll( '.fragment' ) ).forEach( function( element ) {
1422+ element.classList.add( 'visible' );
1423+ element.classList.remove( 'current-fragment' );
1424+ } );
1425+ }
1426+
1427+ // Slide numbers
1428+ var slideNumberDisplay = 'none';
1429+ if( config.slideNumber && !isPrintingPDF() ) {
1430+ if( config.showSlideNumber === 'all' ) {
1431+ slideNumberDisplay = 'block';
1432+ }
1433+ else if( config.showSlideNumber === 'speaker' && isSpeakerNotes() ) {
1434+ slideNumberDisplay = 'block';
1435+ }
1436+ }
1437+
1438+ dom.slideNumber.style.display = slideNumberDisplay;
1439+
1440+ // Add the navigation mode to the DOM so we can adjust styling
1441+ if( config.navigationMode !== 'default' ) {
1442+ dom.wrapper.setAttribute( 'data-navigation-mode', config.navigationMode );
1443+ }
1444+ else {
1445+ dom.wrapper.removeAttribute( 'data-navigation-mode' );
1446+ }
1447+
1448+ // Define our contextual list of keyboard shortcuts
1449+ if( config.navigationMode === 'linear' ) {
1450+ keyboardShortcuts['&#8594; , &#8595; , SPACE , N , L , J'] = 'Next slide';
1451+ keyboardShortcuts['&#8592; , &#8593; , P , H , K'] = 'Previous slide';
1452+ }
1453+ else {
1454+ keyboardShortcuts['N , SPACE'] = 'Next slide';
1455+ keyboardShortcuts['P'] = 'Previous slide';
1456+ keyboardShortcuts['&#8592; , H'] = 'Navigate left';
1457+ keyboardShortcuts['&#8594; , L'] = 'Navigate right';
1458+ keyboardShortcuts['&#8593; , K'] = 'Navigate up';
1459+ keyboardShortcuts['&#8595; , J'] = 'Navigate down';
1460+ }
1461+
1462+ keyboardShortcuts['Home , Shift &#8592;'] = 'First slide';
1463+ keyboardShortcuts['End , Shift &#8594;'] = 'Last slide';
1464+ keyboardShortcuts['B , .'] = 'Pause';
1465+ keyboardShortcuts['F'] = 'Fullscreen';
1466+ keyboardShortcuts['ESC, O'] = 'Slide overview';
1467+
1468+ sync();
1469+
1470+ }
1471+
1472+ /**
1473+ * Binds all event listeners.
1474+ */
1475+ function addEventListeners() {
1476+
1477+ eventsAreBound = true;
1478+
1479+ window.addEventListener( 'hashchange', onWindowHashChange, false );
1480+ window.addEventListener( 'resize', onWindowResize, false );
1481+
1482+ if( config.touch ) {
1483+ if( 'onpointerdown' in window ) {
1484+ // Use W3C pointer events
1485+ dom.wrapper.addEventListener( 'pointerdown', onPointerDown, false );
1486+ dom.wrapper.addEventListener( 'pointermove', onPointerMove, false );
1487+ dom.wrapper.addEventListener( 'pointerup', onPointerUp, false );
1488+ }
1489+ else if( window.navigator.msPointerEnabled ) {
1490+ // IE 10 uses prefixed version of pointer events
1491+ dom.wrapper.addEventListener( 'MSPointerDown', onPointerDown, false );
1492+ dom.wrapper.addEventListener( 'MSPointerMove', onPointerMove, false );
1493+ dom.wrapper.addEventListener( 'MSPointerUp', onPointerUp, false );
1494+ }
1495+ else {
1496+ // Fall back to touch events
1497+ dom.wrapper.addEventListener( 'touchstart', onTouchStart, false );
1498+ dom.wrapper.addEventListener( 'touchmove', onTouchMove, false );
1499+ dom.wrapper.addEventListener( 'touchend', onTouchEnd, false );
1500+ }
1501+ }
1502+
1503+ if( config.keyboard ) {
1504+ document.addEventListener( 'keydown', onDocumentKeyDown, false );
1505+ document.addEventListener( 'keypress', onDocumentKeyPress, false );
1506+ }
1507+
1508+ if( config.progress && dom.progress ) {
1509+ dom.progress.addEventListener( 'click', onProgressClicked, false );
1510+ }
1511+
1512+ dom.pauseOverlay.addEventListener( 'click', resume, false );
1513+
1514+ if( config.focusBodyOnPageVisibilityChange ) {
1515+ var visibilityChange;
1516+
1517+ if( 'hidden' in document ) {
1518+ visibilityChange = 'visibilitychange';
1519+ }
1520+ else if( 'msHidden' in document ) {
1521+ visibilityChange = 'msvisibilitychange';
1522+ }
1523+ else if( 'webkitHidden' in document ) {
1524+ visibilityChange = 'webkitvisibilitychange';
1525+ }
1526+
1527+ if( visibilityChange ) {
1528+ document.addEventListener( visibilityChange, onPageVisibilityChange, false );
1529+ }
1530+ }
1531+
1532+ // Listen to both touch and click events, in case the device
1533+ // supports both
1534+ var pointerEvents = [ 'touchstart', 'click' ];
1535+
1536+ // Only support touch for Android, fixes double navigations in
1537+ // stock browser
1538+ if( UA.match( /android/gi ) ) {
1539+ pointerEvents = [ 'touchstart' ];
1540+ }
1541+
1542+ pointerEvents.forEach( function( eventName ) {
1543+ dom.controlsLeft.forEach( function( el ) { el.addEventListener( eventName, onNavigateLeftClicked, false ); } );
1544+ dom.controlsRight.forEach( function( el ) { el.addEventListener( eventName, onNavigateRightClicked, false ); } );
1545+ dom.controlsUp.forEach( function( el ) { el.addEventListener( eventName, onNavigateUpClicked, false ); } );
1546+ dom.controlsDown.forEach( function( el ) { el.addEventListener( eventName, onNavigateDownClicked, false ); } );
1547+ dom.controlsPrev.forEach( function( el ) { el.addEventListener( eventName, onNavigatePrevClicked, false ); } );
1548+ dom.controlsNext.forEach( function( el ) { el.addEventListener( eventName, onNavigateNextClicked, false ); } );
1549+ } );
1550+
1551+ }
1552+
1553+ /**
1554+ * Unbinds all event listeners.
1555+ */
1556+ function removeEventListeners() {
1557+
1558+ eventsAreBound = false;
1559+
1560+ document.removeEventListener( 'keydown', onDocumentKeyDown, false );
1561+ document.removeEventListener( 'keypress', onDocumentKeyPress, false );
1562+ window.removeEventListener( 'hashchange', onWindowHashChange, false );
1563+ window.removeEventListener( 'resize', onWindowResize, false );
1564+
1565+ dom.wrapper.removeEventListener( 'pointerdown', onPointerDown, false );
1566+ dom.wrapper.removeEventListener( 'pointermove', onPointerMove, false );
1567+ dom.wrapper.removeEventListener( 'pointerup', onPointerUp, false );
1568+
1569+ dom.wrapper.removeEventListener( 'MSPointerDown', onPointerDown, false );
1570+ dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, false );
1571+ dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false );
1572+
1573+ dom.wrapper.removeEventListener( 'touchstart', onTouchStart, false );
1574+ dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
1575+ dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
1576+
1577+ dom.pauseOverlay.removeEventListener( 'click', resume, false );
1578+
1579+ if ( config.progress && dom.progress ) {
1580+ dom.progress.removeEventListener( 'click', onProgressClicked, false );
1581+ }
1582+
1583+ [ 'touchstart', 'click' ].forEach( function( eventName ) {
1584+ dom.controlsLeft.forEach( function( el ) { el.removeEventListener( eventName, onNavigateLeftClicked, false ); } );
1585+ dom.controlsRight.forEach( function( el ) { el.removeEventListener( eventName, onNavigateRightClicked, false ); } );
1586+ dom.controlsUp.forEach( function( el ) { el.removeEventListener( eventName, onNavigateUpClicked, false ); } );
1587+ dom.controlsDown.forEach( function( el ) { el.removeEventListener( eventName, onNavigateDownClicked, false ); } );
1588+ dom.controlsPrev.forEach( function( el ) { el.removeEventListener( eventName, onNavigatePrevClicked, false ); } );
1589+ dom.controlsNext.forEach( function( el ) { el.removeEventListener( eventName, onNavigateNextClicked, false ); } );
1590+ } );
1591+
1592+ }
1593+
1594+ /**
1595+ * Registers a new plugin with this reveal.js instance.
1596+ *
1597+ * reveal.js waits for all regisered plugins to initialize
1598+ * before considering itself ready, as long as the plugin
1599+ * is registered before calling `Reveal.initialize()`.
1600+ */
1601+ function registerPlugin( id, plugin ) {
1602+
1603+ if( plugins[id] === undefined ) {
1604+ plugins[id] = plugin;
1605+
1606+ // If a plugin is registered after reveal.js is loaded,
1607+ // initialize it right away
1608+ if( loaded && typeof plugin.init === 'function' ) {
1609+ plugin.init();
1610+ }
1611+ }
1612+ else {
1613+ console.warn( 'reveal.js: "'+ id +'" plugin has already been registered' );
1614+ }
1615+
1616+ }
1617+
1618+ /**
1619+ * Checks if a specific plugin has been registered.
1620+ *
1621+ * @param {String} id Unique plugin identifier
1622+ */
1623+ function hasPlugin( id ) {
1624+
1625+ return !!plugins[id];
1626+
1627+ }
1628+
1629+ /**
1630+ * Returns the specific plugin instance, if a plugin
1631+ * with the given ID has been registered.
1632+ *
1633+ * @param {String} id Unique plugin identifier
1634+ */
1635+ function getPlugin( id ) {
1636+
1637+ return plugins[id];
1638+
1639+ }
1640+
1641+ /**
1642+ * Add a custom key binding with optional description to
1643+ * be added to the help screen.
1644+ */
1645+ function addKeyBinding( binding, callback ) {
1646+
1647+ if( typeof binding === 'object' && binding.keyCode ) {
1648+ registeredKeyBindings[binding.keyCode] = {
1649+ callback: callback,
1650+ key: binding.key,
1651+ description: binding.description
1652+ };
1653+ }
1654+ else {
1655+ registeredKeyBindings[binding] = {
1656+ callback: callback,
1657+ key: null,
1658+ description: null
1659+ };
1660+ }
1661+
1662+ }
1663+
1664+ /**
1665+ * Removes the specified custom key binding.
1666+ */
1667+ function removeKeyBinding( keyCode ) {
1668+
1669+ delete registeredKeyBindings[keyCode];
1670+
1671+ }
1672+
1673+ /**
1674+ * Extend object a with the properties of object b.
1675+ * If there's a conflict, object b takes precedence.
1676+ *
1677+ * @param {object} a
1678+ * @param {object} b
1679+ */
1680+ function extend( a, b ) {
1681+
1682+ for( var i in b ) {
1683+ a[ i ] = b[ i ];
1684+ }
1685+
1686+ return a;
1687+
1688+ }
1689+
1690+ /**
1691+ * Converts the target object to an array.
1692+ *
1693+ * @param {object} o
1694+ * @return {object[]}
1695+ */
1696+ function toArray( o ) {
1697+
1698+ return Array.prototype.slice.call( o );
1699+
1700+ }
1701+
1702+ /**
1703+ * Utility for deserializing a value.
1704+ *
1705+ * @param {*} value
1706+ * @return {*}
1707+ */
1708+ function deserialize( value ) {
1709+
1710+ if( typeof value === 'string' ) {
1711+ if( value === 'null' ) return null;
1712+ else if( value === 'true' ) return true;
1713+ else if( value === 'false' ) return false;
1714+ else if( value.match( /^-?[\d\.]+$/ ) ) return parseFloat( value );
1715+ }
1716+
1717+ return value;
1718+
1719+ }
1720+
1721+ /**
1722+ * Measures the distance in pixels between point a
1723+ * and point b.
1724+ *
1725+ * @param {object} a point with x/y properties
1726+ * @param {object} b point with x/y properties
1727+ *
1728+ * @return {number}
1729+ */
1730+ function distanceBetween( a, b ) {
1731+
1732+ var dx = a.x - b.x,
1733+ dy = a.y - b.y;
1734+
1735+ return Math.sqrt( dx*dx + dy*dy );
1736+
1737+ }
1738+
1739+ /**
1740+ * Applies a CSS transform to the target element.
1741+ *
1742+ * @param {HTMLElement} element
1743+ * @param {string} transform
1744+ */
1745+ function transformElement( element, transform ) {
1746+
1747+ element.style.WebkitTransform = transform;
1748+ element.style.MozTransform = transform;
1749+ element.style.msTransform = transform;
1750+ element.style.transform = transform;
1751+
1752+ }
1753+
1754+ /**
1755+ * Applies CSS transforms to the slides container. The container
1756+ * is transformed from two separate sources: layout and the overview
1757+ * mode.
1758+ *
1759+ * @param {object} transforms
1760+ */
1761+ function transformSlides( transforms ) {
1762+
1763+ // Pick up new transforms from arguments
1764+ if( typeof transforms.layout === 'string' ) slidesTransform.layout = transforms.layout;
1765+ if( typeof transforms.overview === 'string' ) slidesTransform.overview = transforms.overview;
1766+
1767+ // Apply the transforms to the slides container
1768+ if( slidesTransform.layout ) {
1769+ transformElement( dom.slides, slidesTransform.layout + ' ' + slidesTransform.overview );
1770+ }
1771+ else {
1772+ transformElement( dom.slides, slidesTransform.overview );
1773+ }
1774+
1775+ }
1776+
1777+ /**
1778+ * Injects the given CSS styles into the DOM.
1779+ *
1780+ * @param {string} value
1781+ */
1782+ function injectStyleSheet( value ) {
1783+
1784+ var tag = document.createElement( 'style' );
1785+ tag.type = 'text/css';
1786+ if( tag.styleSheet ) {
1787+ tag.styleSheet.cssText = value;
1788+ }
1789+ else {
1790+ tag.appendChild( document.createTextNode( value ) );
1791+ }
1792+ document.getElementsByTagName( 'head' )[0].appendChild( tag );
1793+
1794+ }
1795+
1796+ /**
1797+ * Find the closest parent that matches the given
1798+ * selector.
1799+ *
1800+ * @param {HTMLElement} target The child element
1801+ * @param {String} selector The CSS selector to match
1802+ * the parents against
1803+ *
1804+ * @return {HTMLElement} The matched parent or null
1805+ * if no matching parent was found
1806+ */
1807+ function closestParent( target, selector ) {
1808+
1809+ var parent = target.parentNode;
1810+
1811+ while( parent ) {
1812+
1813+ // There's some overhead doing this each time, we don't
1814+ // want to rewrite the element prototype but should still
1815+ // be enough to feature detect once at startup...
1816+ var matchesMethod = parent.matches || parent.matchesSelector || parent.msMatchesSelector;
1817+
1818+ // If we find a match, we're all set
1819+ if( matchesMethod && matchesMethod.call( parent, selector ) ) {
1820+ return parent;
1821+ }
1822+
1823+ // Keep searching
1824+ parent = parent.parentNode;
1825+
1826+ }
1827+
1828+ return null;
1829+
1830+ }
1831+
1832+ /**
1833+ * Converts various color input formats to an {r:0,g:0,b:0} object.
1834+ *
1835+ * @param {string} color The string representation of a color
1836+ * @example
1837+ * colorToRgb('#000');
1838+ * @example
1839+ * colorToRgb('#000000');
1840+ * @example
1841+ * colorToRgb('rgb(0,0,0)');
1842+ * @example
1843+ * colorToRgb('rgba(0,0,0)');
1844+ *
1845+ * @return {{r: number, g: number, b: number, [a]: number}|null}
1846+ */
1847+ function colorToRgb( color ) {
1848+
1849+ var hex3 = color.match( /^#([0-9a-f]{3})$/i );
1850+ if( hex3 && hex3[1] ) {
1851+ hex3 = hex3[1];
1852+ return {
1853+ r: parseInt( hex3.charAt( 0 ), 16 ) * 0x11,
1854+ g: parseInt( hex3.charAt( 1 ), 16 ) * 0x11,
1855+ b: parseInt( hex3.charAt( 2 ), 16 ) * 0x11
1856+ };
1857+ }
1858+
1859+ var hex6 = color.match( /^#([0-9a-f]{6})$/i );
1860+ if( hex6 && hex6[1] ) {
1861+ hex6 = hex6[1];
1862+ return {
1863+ r: parseInt( hex6.substr( 0, 2 ), 16 ),
1864+ g: parseInt( hex6.substr( 2, 2 ), 16 ),
1865+ b: parseInt( hex6.substr( 4, 2 ), 16 )
1866+ };
1867+ }
1868+
1869+ var rgb = color.match( /^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i );
1870+ if( rgb ) {
1871+ return {
1872+ r: parseInt( rgb[1], 10 ),
1873+ g: parseInt( rgb[2], 10 ),
1874+ b: parseInt( rgb[3], 10 )
1875+ };
1876+ }
1877+
1878+ var rgba = color.match( /^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i );
1879+ if( rgba ) {
1880+ return {
1881+ r: parseInt( rgba[1], 10 ),
1882+ g: parseInt( rgba[2], 10 ),
1883+ b: parseInt( rgba[3], 10 ),
1884+ a: parseFloat( rgba[4] )
1885+ };
1886+ }
1887+
1888+ return null;
1889+
1890+ }
1891+
1892+ /**
1893+ * Calculates brightness on a scale of 0-255.
1894+ *
1895+ * @param {string} color See colorToRgb for supported formats.
1896+ * @see {@link colorToRgb}
1897+ */
1898+ function colorBrightness( color ) {
1899+
1900+ if( typeof color === 'string' ) color = colorToRgb( color );
1901+
1902+ if( color ) {
1903+ return ( color.r * 299 + color.g * 587 + color.b * 114 ) / 1000;
1904+ }
1905+
1906+ return null;
1907+
1908+ }
1909+
1910+ /**
1911+ * Returns the remaining height within the parent of the
1912+ * target element.
1913+ *
1914+ * remaining height = [ configured parent height ] - [ current parent height ]
1915+ *
1916+ * @param {HTMLElement} element
1917+ * @param {number} [height]
1918+ */
1919+ function getRemainingHeight( element, height ) {
1920+
1921+ height = height || 0;
1922+
1923+ if( element ) {
1924+ var newHeight, oldHeight = element.style.height;
1925+
1926+ // Change the .stretch element height to 0 in order find the height of all
1927+ // the other elements
1928+ element.style.height = '0px';
1929+
1930+ // In Overview mode, the parent (.slide) height is set of 700px.
1931+ // Restore it temporarily to its natural height.
1932+ element.parentNode.style.height = 'auto';
1933+
1934+ newHeight = height - element.parentNode.offsetHeight;
1935+
1936+ // Restore the old height, just in case
1937+ element.style.height = oldHeight + 'px';
1938+
1939+ // Clear the parent (.slide) height. .removeProperty works in IE9+
1940+ element.parentNode.style.removeProperty('height');
1941+
1942+ return newHeight;
1943+ }
1944+
1945+ return height;
1946+
1947+ }
1948+
1949+ /**
1950+ * Checks if this instance is being used to print a PDF.
1951+ */
1952+ function isPrintingPDF() {
1953+
1954+ return ( /print-pdf/gi ).test( window.location.search );
1955+
1956+ }
1957+
1958+ /**
1959+ * Hides the address bar if we're on a mobile device.
1960+ */
1961+ function hideAddressBar() {
1962+
1963+ if( config.hideAddressBar && isMobileDevice ) {
1964+ // Events that should trigger the address bar to hide
1965+ window.addEventListener( 'load', removeAddressBar, false );
1966+ window.addEventListener( 'orientationchange', removeAddressBar, false );
1967+ }
1968+
1969+ }
1970+
1971+ /**
1972+ * Causes the address bar to hide on mobile devices,
1973+ * more vertical space ftw.
1974+ */
1975+ function removeAddressBar() {
1976+
1977+ setTimeout( function() {
1978+ window.scrollTo( 0, 1 );
1979+ }, 10 );
1980+
1981+ }
1982+
1983+ /**
1984+ * Dispatches an event of the specified type from the
1985+ * reveal DOM element.
1986+ */
1987+ function dispatchEvent( type, args ) {
1988+
1989+ var event = document.createEvent( 'HTMLEvents', 1, 2 );
1990+ event.initEvent( type, true, true );
1991+ extend( event, args );
1992+ dom.wrapper.dispatchEvent( event );
1993+
1994+ // If we're in an iframe, post each reveal.js event to the
1995+ // parent window. Used by the notes plugin
1996+ dispatchPostMessage( type );
1997+
1998+ }
1999+
2000+ /**
2001+ * Dispatched a postMessage of the given type from our window.
2002+ */
2003+ function dispatchPostMessage( type, data ) {
2004+
2005+ if( config.postMessageEvents && window.parent !== window.self ) {
2006+ var message = {
2007+ namespace: 'reveal',
2008+ eventName: type,
2009+ state: getState()
2010+ };
2011+
2012+ extend( message, data );
2013+
2014+ window.parent.postMessage( JSON.stringify( message ), '*' );
2015+ }
2016+
2017+ }
2018+
2019+ /**
2020+ * Wrap all links in 3D goodness.
2021+ */
2022+ function enableRollingLinks() {
2023+
2024+ if( features.transforms3d && !( 'msPerspective' in document.body.style ) ) {
2025+ var anchors = dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ' a' );
2026+
2027+ for( var i = 0, len = anchors.length; i < len; i++ ) {
2028+ var anchor = anchors[i];
2029+
2030+ if( anchor.textContent && !anchor.querySelector( '*' ) && ( !anchor.className || !anchor.classList.contains( anchor, 'roll' ) ) ) {
2031+ var span = document.createElement('span');
2032+ span.setAttribute('data-title', anchor.text);
2033+ span.innerHTML = anchor.innerHTML;
2034+
2035+ anchor.classList.add( 'roll' );
2036+ anchor.innerHTML = '';
2037+ anchor.appendChild(span);
2038+ }
2039+ }
2040+ }
2041+
2042+ }
2043+
2044+ /**
2045+ * Unwrap all 3D links.
2046+ */
2047+ function disableRollingLinks() {
2048+
2049+ var anchors = dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ' a.roll' );
2050+
2051+ for( var i = 0, len = anchors.length; i < len; i++ ) {
2052+ var anchor = anchors[i];
2053+ var span = anchor.querySelector( 'span' );
2054+
2055+ if( span ) {
2056+ anchor.classList.remove( 'roll' );
2057+ anchor.innerHTML = span.innerHTML;
2058+ }
2059+ }
2060+
2061+ }
2062+
2063+ /**
2064+ * Bind preview frame links.
2065+ *
2066+ * @param {string} [selector=a] - selector for anchors
2067+ */
2068+ function enablePreviewLinks( selector ) {
2069+
2070+ var anchors = toArray( document.querySelectorAll( selector ? selector : 'a' ) );
2071+
2072+ anchors.forEach( function( element ) {
2073+ if( /^(http|www)/gi.test( element.getAttribute( 'href' ) ) ) {
2074+ element.addEventListener( 'click', onPreviewLinkClicked, false );
2075+ }
2076+ } );
2077+
2078+ }
2079+
2080+ /**
2081+ * Unbind preview frame links.
2082+ */
2083+ function disablePreviewLinks( selector ) {
2084+
2085+ var anchors = toArray( document.querySelectorAll( selector ? selector : 'a' ) );
2086+
2087+ anchors.forEach( function( element ) {
2088+ if( /^(http|www)/gi.test( element.getAttribute( 'href' ) ) ) {
2089+ element.removeEventListener( 'click', onPreviewLinkClicked, false );
2090+ }
2091+ } );
2092+
2093+ }
2094+
2095+ /**
2096+ * Opens a preview window for the target URL.
2097+ *
2098+ * @param {string} url - url for preview iframe src
2099+ */
2100+ function showPreview( url ) {
2101+
2102+ closeOverlay();
2103+
2104+ dom.overlay = document.createElement( 'div' );
2105+ dom.overlay.classList.add( 'overlay' );
2106+ dom.overlay.classList.add( 'overlay-preview' );
2107+ dom.wrapper.appendChild( dom.overlay );
2108+
2109+ dom.overlay.innerHTML = [
2110+ '<header>',
2111+ '<a class="close" href="#"><span class="icon"></span></a>',
2112+ '<a class="external" href="'+ url +'" target="_blank"><span class="icon"></span></a>',
2113+ '</header>',
2114+ '<div class="spinner"></div>',
2115+ '<div class="viewport">',
2116+ '<iframe src="'+ url +'"></iframe>',
2117+ '<small class="viewport-inner">',
2118+ '<span class="x-frame-error">Unable to load iframe. This is likely due to the site\'s policy (x-frame-options).</span>',
2119+ '</small>',
2120+ '</div>'
2121+ ].join('');
2122+
2123+ dom.overlay.querySelector( 'iframe' ).addEventListener( 'load', function( event ) {
2124+ dom.overlay.classList.add( 'loaded' );
2125+ }, false );
2126+
2127+ dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
2128+ closeOverlay();
2129+ event.preventDefault();
2130+ }, false );
2131+
2132+ dom.overlay.querySelector( '.external' ).addEventListener( 'click', function( event ) {
2133+ closeOverlay();
2134+ }, false );
2135+
2136+ setTimeout( function() {
2137+ dom.overlay.classList.add( 'visible' );
2138+ }, 1 );
2139+
2140+ }
2141+
2142+ /**
2143+ * Open or close help overlay window.
2144+ *
2145+ * @param {Boolean} [override] Flag which overrides the
2146+ * toggle logic and forcibly sets the desired state. True means
2147+ * help is open, false means it's closed.
2148+ */
2149+ function toggleHelp( override ){
2150+
2151+ if( typeof override === 'boolean' ) {
2152+ override ? showHelp() : closeOverlay();
2153+ }
2154+ else {
2155+ if( dom.overlay ) {
2156+ closeOverlay();
2157+ }
2158+ else {
2159+ showHelp();
2160+ }
2161+ }
2162+ }
2163+
2164+ /**
2165+ * Opens an overlay window with help material.
2166+ */
2167+ function showHelp() {
2168+
2169+ if( config.help ) {
2170+
2171+ closeOverlay();
2172+
2173+ dom.overlay = document.createElement( 'div' );
2174+ dom.overlay.classList.add( 'overlay' );
2175+ dom.overlay.classList.add( 'overlay-help' );
2176+ dom.wrapper.appendChild( dom.overlay );
2177+
2178+ var html = '<p class="title">Keyboard Shortcuts</p><br/>';
2179+
2180+ html += '<table><th>KEY</th><th>ACTION</th>';
2181+ for( var key in keyboardShortcuts ) {
2182+ html += '<tr><td>' + key + '</td><td>' + keyboardShortcuts[ key ] + '</td></tr>';
2183+ }
2184+
2185+ // Add custom key bindings that have associated descriptions
2186+ for( var binding in registeredKeyBindings ) {
2187+ if( registeredKeyBindings[binding].key && registeredKeyBindings[binding].description ) {
2188+ html += '<tr><td>' + registeredKeyBindings[binding].key + '</td><td>' + registeredKeyBindings[binding].description + '</td></tr>';
2189+ }
2190+ }
2191+
2192+ html += '</table>';
2193+
2194+ dom.overlay.innerHTML = [
2195+ '<header>',
2196+ '<a class="close" href="#"><span class="icon"></span></a>',
2197+ '</header>',
2198+ '<div class="viewport">',
2199+ '<div class="viewport-inner">'+ html +'</div>',
2200+ '</div>'
2201+ ].join('');
2202+
2203+ dom.overlay.querySelector( '.close' ).addEventListener( 'click', function( event ) {
2204+ closeOverlay();
2205+ event.preventDefault();
2206+ }, false );
2207+
2208+ setTimeout( function() {
2209+ dom.overlay.classList.add( 'visible' );
2210+ }, 1 );
2211+
2212+ }
2213+
2214+ }
2215+
2216+ /**
2217+ * Closes any currently open overlay.
2218+ */
2219+ function closeOverlay() {
2220+
2221+ if( dom.overlay ) {
2222+ dom.overlay.parentNode.removeChild( dom.overlay );
2223+ dom.overlay = null;
2224+ }
2225+
2226+ }
2227+
2228+ /**
2229+ * Applies JavaScript-controlled layout rules to the
2230+ * presentation.
2231+ */
2232+ function layout() {
2233+
2234+ if( dom.wrapper && !isPrintingPDF() ) {
2235+
2236+ if( !config.disableLayout ) {
2237+
2238+ // On some mobile devices '100vh' is taller than the visible
2239+ // viewport which leads to part of the presentation being
2240+ // cut off. To work around this we define our own '--vh' custom
2241+ // property where 100x adds up to the correct height.
2242+ //
2243+ // https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
2244+ if( isMobileDevice ) {
2245+ document.documentElement.style.setProperty( '--vh', ( window.innerHeight * 0.01 ) + 'px' );
2246+ }
2247+
2248+ var size = getComputedSlideSize();
2249+
2250+ var oldScale = scale;
2251+
2252+ // Layout the contents of the slides
2253+ layoutSlideContents( config.width, config.height );
2254+
2255+ dom.slides.style.width = size.width + 'px';
2256+ dom.slides.style.height = size.height + 'px';
2257+
2258+ // Determine scale of content to fit within available space
2259+ scale = Math.min( size.presentationWidth / size.width, size.presentationHeight / size.height );
2260+
2261+ // Respect max/min scale settings
2262+ scale = Math.max( scale, config.minScale );
2263+ scale = Math.min( scale, config.maxScale );
2264+
2265+ // Don't apply any scaling styles if scale is 1
2266+ if( scale === 1 ) {
2267+ dom.slides.style.zoom = '';
2268+ dom.slides.style.left = '';
2269+ dom.slides.style.top = '';
2270+ dom.slides.style.bottom = '';
2271+ dom.slides.style.right = '';
2272+ transformSlides( { layout: '' } );
2273+ }
2274+ else {
2275+ // Zoom Scaling
2276+ // Content remains crisp no matter how much we scale. Side
2277+ // effects are minor differences in text layout and iframe
2278+ // viewports changing size. A 200x200 iframe viewport in a
2279+ // 2x zoomed presentation ends up having a 400x400 viewport.
2280+ if( scale > 1 && features.zoom && window.devicePixelRatio < 2 ) {
2281+ dom.slides.style.zoom = scale;
2282+ dom.slides.style.left = '';
2283+ dom.slides.style.top = '';
2284+ dom.slides.style.bottom = '';
2285+ dom.slides.style.right = '';
2286+ transformSlides( { layout: '' } );
2287+ }
2288+ // Transform Scaling
2289+ // Content layout remains the exact same when scaled up.
2290+ // Side effect is content becoming blurred, especially with
2291+ // high scale values on ldpi screens.
2292+ else {
2293+ dom.slides.style.zoom = '';
2294+ dom.slides.style.left = '50%';
2295+ dom.slides.style.top = '50%';
2296+ dom.slides.style.bottom = 'auto';
2297+ dom.slides.style.right = 'auto';
2298+ transformSlides( { layout: 'translate(-50%, -50%) scale('+ scale +')' } );
2299+ }
2300+ }
2301+
2302+ // Select all slides, vertical and horizontal
2303+ var slides = toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) );
2304+
2305+ for( var i = 0, len = slides.length; i < len; i++ ) {
2306+ var slide = slides[ i ];
2307+
2308+ // Don't bother updating invisible slides
2309+ if( slide.style.display === 'none' ) {
2310+ continue;
2311+ }
2312+
2313+ if( config.center || slide.classList.contains( 'center' ) ) {
2314+ // Vertical stacks are not centred since their section
2315+ // children will be
2316+ if( slide.classList.contains( 'stack' ) ) {
2317+ slide.style.top = 0;
2318+ }
2319+ else {
2320+ slide.style.top = Math.max( ( size.height - slide.scrollHeight ) / 2, 0 ) + 'px';
2321+ }
2322+ }
2323+ else {
2324+ slide.style.top = '';
2325+ }
2326+
2327+ }
2328+
2329+ if( oldScale !== scale ) {
2330+ dispatchEvent( 'resize', {
2331+ 'oldScale': oldScale,
2332+ 'scale': scale,
2333+ 'size': size
2334+ } );
2335+ }
2336+ }
2337+
2338+ updateProgress();
2339+ updateParallax();
2340+
2341+ if( isOverview() ) {
2342+ updateOverview();
2343+ }
2344+
2345+ }
2346+
2347+ }
2348+
2349+ /**
2350+ * Applies layout logic to the contents of all slides in
2351+ * the presentation.
2352+ *
2353+ * @param {string|number} width
2354+ * @param {string|number} height
2355+ */
2356+ function layoutSlideContents( width, height ) {
2357+
2358+ // Handle sizing of elements with the 'stretch' class
2359+ toArray( dom.slides.querySelectorAll( 'section > .stretch' ) ).forEach( function( element ) {
2360+
2361+ // Determine how much vertical space we can use
2362+ var remainingHeight = getRemainingHeight( element, height );
2363+
2364+ // Consider the aspect ratio of media elements
2365+ if( /(img|video)/gi.test( element.nodeName ) ) {
2366+ var nw = element.naturalWidth || element.videoWidth,
2367+ nh = element.naturalHeight || element.videoHeight;
2368+
2369+ var es = Math.min( width / nw, remainingHeight / nh );
2370+
2371+ element.style.width = ( nw * es ) + 'px';
2372+ element.style.height = ( nh * es ) + 'px';
2373+
2374+ }
2375+ else {
2376+ element.style.width = width + 'px';
2377+ element.style.height = remainingHeight + 'px';
2378+ }
2379+
2380+ } );
2381+
2382+ }
2383+
2384+ /**
2385+ * Calculates the computed pixel size of our slides. These
2386+ * values are based on the width and height configuration
2387+ * options.
2388+ *
2389+ * @param {number} [presentationWidth=dom.wrapper.offsetWidth]
2390+ * @param {number} [presentationHeight=dom.wrapper.offsetHeight]
2391+ */
2392+ function getComputedSlideSize( presentationWidth, presentationHeight ) {
2393+
2394+ var size = {
2395+ // Slide size
2396+ width: config.width,
2397+ height: config.height,
2398+
2399+ // Presentation size
2400+ presentationWidth: presentationWidth || dom.wrapper.offsetWidth,
2401+ presentationHeight: presentationHeight || dom.wrapper.offsetHeight
2402+ };
2403+
2404+ // Reduce available space by margin
2405+ size.presentationWidth -= ( size.presentationWidth * config.margin );
2406+ size.presentationHeight -= ( size.presentationHeight * config.margin );
2407+
2408+ // Slide width may be a percentage of available width
2409+ if( typeof size.width === 'string' && /%$/.test( size.width ) ) {
2410+ size.width = parseInt( size.width, 10 ) / 100 * size.presentationWidth;
2411+ }
2412+
2413+ // Slide height may be a percentage of available height
2414+ if( typeof size.height === 'string' && /%$/.test( size.height ) ) {
2415+ size.height = parseInt( size.height, 10 ) / 100 * size.presentationHeight;
2416+ }
2417+
2418+ return size;
2419+
2420+ }
2421+
2422+ /**
2423+ * Stores the vertical index of a stack so that the same
2424+ * vertical slide can be selected when navigating to and
2425+ * from the stack.
2426+ *
2427+ * @param {HTMLElement} stack The vertical stack element
2428+ * @param {string|number} [v=0] Index to memorize
2429+ */
2430+ function setPreviousVerticalIndex( stack, v ) {
2431+
2432+ if( typeof stack === 'object' && typeof stack.setAttribute === 'function' ) {
2433+ stack.setAttribute( 'data-previous-indexv', v || 0 );
2434+ }
2435+
2436+ }
2437+
2438+ /**
2439+ * Retrieves the vertical index which was stored using
2440+ * #setPreviousVerticalIndex() or 0 if no previous index
2441+ * exists.
2442+ *
2443+ * @param {HTMLElement} stack The vertical stack element
2444+ */
2445+ function getPreviousVerticalIndex( stack ) {
2446+
2447+ if( typeof stack === 'object' && typeof stack.setAttribute === 'function' && stack.classList.contains( 'stack' ) ) {
2448+ // Prefer manually defined start-indexv
2449+ var attributeName = stack.hasAttribute( 'data-start-indexv' ) ? 'data-start-indexv' : 'data-previous-indexv';
2450+
2451+ return parseInt( stack.getAttribute( attributeName ) || 0, 10 );
2452+ }
2453+
2454+ return 0;
2455+
2456+ }
2457+
2458+ /**
2459+ * Displays the overview of slides (quick nav) by scaling
2460+ * down and arranging all slide elements.
2461+ */
2462+ function activateOverview() {
2463+
2464+ // Only proceed if enabled in config
2465+ if( config.overview && !isOverview() ) {
2466+
2467+ overview = true;
2468+
2469+ dom.wrapper.classList.add( 'overview' );
2470+ dom.wrapper.classList.remove( 'overview-deactivating' );
2471+
2472+ if( features.overviewTransitions ) {
2473+ setTimeout( function() {
2474+ dom.wrapper.classList.add( 'overview-animated' );
2475+ }, 1 );
2476+ }
2477+
2478+ // Don't auto-slide while in overview mode
2479+ cancelAutoSlide();
2480+
2481+ // Move the backgrounds element into the slide container to
2482+ // that the same scaling is applied
2483+ dom.slides.appendChild( dom.background );
2484+
2485+ // Clicking on an overview slide navigates to it
2486+ toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) {
2487+ if( !slide.classList.contains( 'stack' ) ) {
2488+ slide.addEventListener( 'click', onOverviewSlideClicked, true );
2489+ }
2490+ } );
2491+
2492+ // Calculate slide sizes
2493+ var margin = 70;
2494+ var slideSize = getComputedSlideSize();
2495+ overviewSlideWidth = slideSize.width + margin;
2496+ overviewSlideHeight = slideSize.height + margin;
2497+
2498+ // Reverse in RTL mode
2499+ if( config.rtl ) {
2500+ overviewSlideWidth = -overviewSlideWidth;
2501+ }
2502+
2503+ updateSlidesVisibility();
2504+ layoutOverview();
2505+ updateOverview();
2506+
2507+ layout();
2508+
2509+ // Notify observers of the overview showing
2510+ dispatchEvent( 'overviewshown', {
2511+ 'indexh': indexh,
2512+ 'indexv': indexv,
2513+ 'currentSlide': currentSlide
2514+ } );
2515+
2516+ }
2517+
2518+ }
2519+
2520+ /**
2521+ * Uses CSS transforms to position all slides in a grid for
2522+ * display inside of the overview mode.
2523+ */
2524+ function layoutOverview() {
2525+
2526+ // Layout slides
2527+ toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).forEach( function( hslide, h ) {
2528+ hslide.setAttribute( 'data-index-h', h );
2529+ transformElement( hslide, 'translate3d(' + ( h * overviewSlideWidth ) + 'px, 0, 0)' );
2530+
2531+ if( hslide.classList.contains( 'stack' ) ) {
2532+
2533+ toArray( hslide.querySelectorAll( 'section' ) ).forEach( function( vslide, v ) {
2534+ vslide.setAttribute( 'data-index-h', h );
2535+ vslide.setAttribute( 'data-index-v', v );
2536+
2537+ transformElement( vslide, 'translate3d(0, ' + ( v * overviewSlideHeight ) + 'px, 0)' );
2538+ } );
2539+
2540+ }
2541+ } );
2542+
2543+ // Layout slide backgrounds
2544+ toArray( dom.background.childNodes ).forEach( function( hbackground, h ) {
2545+ transformElement( hbackground, 'translate3d(' + ( h * overviewSlideWidth ) + 'px, 0, 0)' );
2546+
2547+ toArray( hbackground.querySelectorAll( '.slide-background' ) ).forEach( function( vbackground, v ) {
2548+ transformElement( vbackground, 'translate3d(0, ' + ( v * overviewSlideHeight ) + 'px, 0)' );
2549+ } );
2550+ } );
2551+
2552+ }
2553+
2554+ /**
2555+ * Moves the overview viewport to the current slides.
2556+ * Called each time the current slide changes.
2557+ */
2558+ function updateOverview() {
2559+
2560+ var vmin = Math.min( window.innerWidth, window.innerHeight );
2561+ var scale = Math.max( vmin / 5, 150 ) / vmin;
2562+
2563+ transformSlides( {
2564+ overview: [
2565+ 'scale('+ scale +')',
2566+ 'translateX('+ ( -indexh * overviewSlideWidth ) +'px)',
2567+ 'translateY('+ ( -indexv * overviewSlideHeight ) +'px)'
2568+ ].join( ' ' )
2569+ } );
2570+
2571+ }
2572+
2573+ /**
2574+ * Exits the slide overview and enters the currently
2575+ * active slide.
2576+ */
2577+ function deactivateOverview() {
2578+
2579+ // Only proceed if enabled in config
2580+ if( config.overview ) {
2581+
2582+ overview = false;
2583+
2584+ dom.wrapper.classList.remove( 'overview' );
2585+ dom.wrapper.classList.remove( 'overview-animated' );
2586+
2587+ // Temporarily add a class so that transitions can do different things
2588+ // depending on whether they are exiting/entering overview, or just
2589+ // moving from slide to slide
2590+ dom.wrapper.classList.add( 'overview-deactivating' );
2591+
2592+ setTimeout( function () {
2593+ dom.wrapper.classList.remove( 'overview-deactivating' );
2594+ }, 1 );
2595+
2596+ // Move the background element back out
2597+ dom.wrapper.appendChild( dom.background );
2598+
2599+ // Clean up changes made to slides
2600+ toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR ) ).forEach( function( slide ) {
2601+ transformElement( slide, '' );
2602+
2603+ slide.removeEventListener( 'click', onOverviewSlideClicked, true );
2604+ } );
2605+
2606+ // Clean up changes made to backgrounds
2607+ toArray( dom.background.querySelectorAll( '.slide-background' ) ).forEach( function( background ) {
2608+ transformElement( background, '' );
2609+ } );
2610+
2611+ transformSlides( { overview: '' } );
2612+
2613+ slide( indexh, indexv );
2614+
2615+ layout();
2616+
2617+ cueAutoSlide();
2618+
2619+ // Notify observers of the overview hiding
2620+ dispatchEvent( 'overviewhidden', {
2621+ 'indexh': indexh,
2622+ 'indexv': indexv,
2623+ 'currentSlide': currentSlide
2624+ } );
2625+
2626+ }
2627+ }
2628+
2629+ /**
2630+ * Toggles the slide overview mode on and off.
2631+ *
2632+ * @param {Boolean} [override] Flag which overrides the
2633+ * toggle logic and forcibly sets the desired state. True means
2634+ * overview is open, false means it's closed.
2635+ */
2636+ function toggleOverview( override ) {
2637+
2638+ if( typeof override === 'boolean' ) {
2639+ override ? activateOverview() : deactivateOverview();
2640+ }
2641+ else {
2642+ isOverview() ? deactivateOverview() : activateOverview();
2643+ }
2644+
2645+ }
2646+
2647+ /**
2648+ * Checks if the overview is currently active.
2649+ *
2650+ * @return {Boolean} true if the overview is active,
2651+ * false otherwise
2652+ */
2653+ function isOverview() {
2654+
2655+ return overview;
2656+
2657+ }
2658+
2659+ /**
2660+ * Return a hash URL that will resolve to the current slide location.
2661+ */
2662+ function locationHash() {
2663+
2664+ var url = '/';
2665+
2666+ // Attempt to create a named link based on the slide's ID
2667+ var id = currentSlide ? currentSlide.getAttribute( 'id' ) : null;
2668+ if( id ) {
2669+ id = encodeURIComponent( id );
2670+ }
2671+
2672+ var indexf;
2673+ if( config.fragmentInURL ) {
2674+ indexf = getIndices().f;
2675+ }
2676+
2677+ // If the current slide has an ID, use that as a named link,
2678+ // but we don't support named links with a fragment index
2679+ if( typeof id === 'string' && id.length && indexf === undefined ) {
2680+ url = '/' + id;
2681+ }
2682+ // Otherwise use the /h/v index
2683+ else {
2684+ var hashIndexBase = config.hashOneBasedIndex ? 1 : 0;
2685+ if( indexh > 0 || indexv > 0 || indexf !== undefined ) url += indexh + hashIndexBase;
2686+ if( indexv > 0 || indexf !== undefined ) url += '/' + (indexv + hashIndexBase );
2687+ if( indexf !== undefined ) url += '/' + indexf;
2688+ }
2689+
2690+ return url;
2691+
2692+ }
2693+
2694+ /**
2695+ * Checks if the current or specified slide is vertical
2696+ * (nested within another slide).
2697+ *
2698+ * @param {HTMLElement} [slide=currentSlide] The slide to check
2699+ * orientation of
2700+ * @return {Boolean}
2701+ */
2702+ function isVerticalSlide( slide ) {
2703+
2704+ // Prefer slide argument, otherwise use current slide
2705+ slide = slide ? slide : currentSlide;
2706+
2707+ return slide && slide.parentNode && !!slide.parentNode.nodeName.match( /section/i );
2708+
2709+ }
2710+
2711+ /**
2712+ * Handling the fullscreen functionality via the fullscreen API
2713+ *
2714+ * @see http://fullscreen.spec.whatwg.org/
2715+ * @see https://developer.mozilla.org/en-US/docs/DOM/Using_fullscreen_mode
2716+ */
2717+ function enterFullscreen() {
2718+
2719+ var element = document.documentElement;
2720+
2721+ // Check which implementation is available
2722+ var requestMethod = element.requestFullscreen ||
2723+ element.webkitRequestFullscreen ||
2724+ element.webkitRequestFullScreen ||
2725+ element.mozRequestFullScreen ||
2726+ element.msRequestFullscreen;
2727+
2728+ if( requestMethod ) {
2729+ requestMethod.apply( element );
2730+ }
2731+
2732+ }
2733+
2734+ /**
2735+ * Shows the mouse pointer after it has been hidden with
2736+ * #hideCursor.
2737+ */
2738+ function showCursor() {
2739+
2740+ if( cursorHidden ) {
2741+ cursorHidden = false;
2742+ dom.wrapper.style.cursor = '';
2743+ }
2744+
2745+ }
2746+
2747+ /**
2748+ * Hides the mouse pointer when it's on top of the .reveal
2749+ * container.
2750+ */
2751+ function hideCursor() {
2752+
2753+ if( cursorHidden === false ) {
2754+ cursorHidden = true;
2755+ dom.wrapper.style.cursor = 'none';
2756+ }
2757+
2758+ }
2759+
2760+ /**
2761+ * Enters the paused mode which fades everything on screen to
2762+ * black.
2763+ */
2764+ function pause() {
2765+
2766+ if( config.pause ) {
2767+ var wasPaused = dom.wrapper.classList.contains( 'paused' );
2768+
2769+ cancelAutoSlide();
2770+ dom.wrapper.classList.add( 'paused' );
2771+
2772+ if( wasPaused === false ) {
2773+ dispatchEvent( 'paused' );
2774+ }
2775+ }
2776+
2777+ }
2778+
2779+ /**
2780+ * Exits from the paused mode.
2781+ */
2782+ function resume() {
2783+
2784+ var wasPaused = dom.wrapper.classList.contains( 'paused' );
2785+ dom.wrapper.classList.remove( 'paused' );
2786+
2787+ cueAutoSlide();
2788+
2789+ if( wasPaused ) {
2790+ dispatchEvent( 'resumed' );
2791+ }
2792+
2793+ }
2794+
2795+ /**
2796+ * Toggles the paused mode on and off.
2797+ */
2798+ function togglePause( override ) {
2799+
2800+ if( typeof override === 'boolean' ) {
2801+ override ? pause() : resume();
2802+ }
2803+ else {
2804+ isPaused() ? resume() : pause();
2805+ }
2806+
2807+ }
2808+
2809+ /**
2810+ * Checks if we are currently in the paused mode.
2811+ *
2812+ * @return {Boolean}
2813+ */
2814+ function isPaused() {
2815+
2816+ return dom.wrapper.classList.contains( 'paused' );
2817+
2818+ }
2819+
2820+ /**
2821+ * Toggles the auto slide mode on and off.
2822+ *
2823+ * @param {Boolean} [override] Flag which sets the desired state.
2824+ * True means autoplay starts, false means it stops.
2825+ */
2826+
2827+ function toggleAutoSlide( override ) {
2828+
2829+ if( typeof override === 'boolean' ) {
2830+ override ? resumeAutoSlide() : pauseAutoSlide();
2831+ }
2832+
2833+ else {
2834+ autoSlidePaused ? resumeAutoSlide() : pauseAutoSlide();
2835+ }
2836+
2837+ }
2838+
2839+ /**
2840+ * Checks if the auto slide mode is currently on.
2841+ *
2842+ * @return {Boolean}
2843+ */
2844+ function isAutoSliding() {
2845+
2846+ return !!( autoSlide && !autoSlidePaused );
2847+
2848+ }
2849+
2850+ /**
2851+ * Steps from the current point in the presentation to the
2852+ * slide which matches the specified horizontal and vertical
2853+ * indices.
2854+ *
2855+ * @param {number} [h=indexh] Horizontal index of the target slide
2856+ * @param {number} [v=indexv] Vertical index of the target slide
2857+ * @param {number} [f] Index of a fragment within the
2858+ * target slide to activate
2859+ * @param {number} [o] Origin for use in multimaster environments
2860+ */
2861+ function slide( h, v, f, o ) {
2862+
2863+ // Remember where we were at before
2864+ previousSlide = currentSlide;
2865+
2866+ // Query all horizontal slides in the deck
2867+ var horizontalSlides = dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR );
2868+
2869+ // Abort if there are no slides
2870+ if( horizontalSlides.length === 0 ) return;
2871+
2872+ // If no vertical index is specified and the upcoming slide is a
2873+ // stack, resume at its previous vertical index
2874+ if( v === undefined && !isOverview() ) {
2875+ v = getPreviousVerticalIndex( horizontalSlides[ h ] );
2876+ }
2877+
2878+ // If we were on a vertical stack, remember what vertical index
2879+ // it was on so we can resume at the same position when returning
2880+ if( previousSlide && previousSlide.parentNode && previousSlide.parentNode.classList.contains( 'stack' ) ) {
2881+ setPreviousVerticalIndex( previousSlide.parentNode, indexv );
2882+ }
2883+
2884+ // Remember the state before this slide
2885+ var stateBefore = state.concat();
2886+
2887+ // Reset the state array
2888+ state.length = 0;
2889+
2890+ var indexhBefore = indexh || 0,
2891+ indexvBefore = indexv || 0;
2892+
2893+ // Activate and transition to the new slide
2894+ indexh = updateSlides( HORIZONTAL_SLIDES_SELECTOR, h === undefined ? indexh : h );
2895+ indexv = updateSlides( VERTICAL_SLIDES_SELECTOR, v === undefined ? indexv : v );
2896+
2897+ // Update the visibility of slides now that the indices have changed
2898+ updateSlidesVisibility();
2899+
2900+ layout();
2901+
2902+ // Update the overview if it's currently active
2903+ if( isOverview() ) {
2904+ updateOverview();
2905+ }
2906+
2907+ // Find the current horizontal slide and any possible vertical slides
2908+ // within it
2909+ var currentHorizontalSlide = horizontalSlides[ indexh ],
2910+ currentVerticalSlides = currentHorizontalSlide.querySelectorAll( 'section' );
2911+
2912+ // Store references to the previous and current slides
2913+ currentSlide = currentVerticalSlides[ indexv ] || currentHorizontalSlide;
2914+
2915+ // Show fragment, if specified
2916+ if( typeof f !== 'undefined' ) {
2917+ navigateFragment( f );
2918+ }
2919+
2920+ // Dispatch an event if the slide changed
2921+ var slideChanged = ( indexh !== indexhBefore || indexv !== indexvBefore );
2922+ if (!slideChanged) {
2923+ // Ensure that the previous slide is never the same as the current
2924+ previousSlide = null;
2925+ }
2926+
2927+ // Solves an edge case where the previous slide maintains the
2928+ // 'present' class when navigating between adjacent vertical
2929+ // stacks
2930+ if( previousSlide && previousSlide !== currentSlide ) {
2931+ previousSlide.classList.remove( 'present' );
2932+ previousSlide.setAttribute( 'aria-hidden', 'true' );
2933+
2934+ // Reset all slides upon navigate to home
2935+ // Issue: #285
2936+ if ( dom.wrapper.querySelector( HOME_SLIDE_SELECTOR ).classList.contains( 'present' ) ) {
2937+ // Launch async task
2938+ setTimeout( function () {
2939+ var slides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR + '.stack') ), i;
2940+ for( i in slides ) {
2941+ if( slides[i] ) {
2942+ // Reset stack
2943+ setPreviousVerticalIndex( slides[i], 0 );
2944+ }
2945+ }
2946+ }, 0 );
2947+ }
2948+ }
2949+
2950+ // Apply the new state
2951+ stateLoop: for( var i = 0, len = state.length; i < len; i++ ) {
2952+ // Check if this state existed on the previous slide. If it
2953+ // did, we will avoid adding it repeatedly
2954+ for( var j = 0; j < stateBefore.length; j++ ) {
2955+ if( stateBefore[j] === state[i] ) {
2956+ stateBefore.splice( j, 1 );
2957+ continue stateLoop;
2958+ }
2959+ }
2960+
2961+ document.documentElement.classList.add( state[i] );
2962+
2963+ // Dispatch custom event matching the state's name
2964+ dispatchEvent( state[i] );
2965+ }
2966+
2967+ // Clean up the remains of the previous state
2968+ while( stateBefore.length ) {
2969+ document.documentElement.classList.remove( stateBefore.pop() );
2970+ }
2971+
2972+ if( slideChanged ) {
2973+ dispatchEvent( 'slidechanged', {
2974+ 'indexh': indexh,
2975+ 'indexv': indexv,
2976+ 'previousSlide': previousSlide,
2977+ 'currentSlide': currentSlide,
2978+ 'origin': o
2979+ } );
2980+ }
2981+
2982+ // Handle embedded content
2983+ if( slideChanged || !previousSlide ) {
2984+ stopEmbeddedContent( previousSlide );
2985+ startEmbeddedContent( currentSlide );
2986+ }
2987+
2988+ // Announce the current slide contents, for screen readers
2989+ dom.statusDiv.textContent = getStatusText( currentSlide );
2990+
2991+ updateControls();
2992+ updateProgress();
2993+ updateBackground();
2994+ updateParallax();
2995+ updateSlideNumber();
2996+ updateNotes();
2997+ updateFragments();
2998+
2999+ // Update the URL hash
3000+ writeURL();
3001+
3002+ cueAutoSlide();
3003+
3004+ }
3005+
3006+ /**
3007+ * Syncs the presentation with the current DOM. Useful
3008+ * when new slides or control elements are added or when
3009+ * the configuration has changed.
3010+ */
3011+ function sync() {
3012+
3013+ // Subscribe to input
3014+ removeEventListeners();
3015+ addEventListeners();
3016+
3017+ // Force a layout to make sure the current config is accounted for
3018+ layout();
3019+
3020+ // Reflect the current autoSlide value
3021+ autoSlide = config.autoSlide;
3022+
3023+ // Start auto-sliding if it's enabled
3024+ cueAutoSlide();
3025+
3026+ // Re-create the slide backgrounds
3027+ createBackgrounds();
3028+
3029+ // Write the current hash to the URL
3030+ writeURL();
3031+
3032+ sortAllFragments();
3033+
3034+ updateControls();
3035+ updateProgress();
3036+ updateSlideNumber();
3037+ updateSlidesVisibility();
3038+ updateBackground( true );
3039+ updateNotesVisibility();
3040+ updateNotes();
3041+
3042+ formatEmbeddedContent();
3043+
3044+ // Start or stop embedded content depending on global config
3045+ if( config.autoPlayMedia === false ) {
3046+ stopEmbeddedContent( currentSlide, { unloadIframes: false } );
3047+ }
3048+ else {
3049+ startEmbeddedContent( currentSlide );
3050+ }
3051+
3052+ if( isOverview() ) {
3053+ layoutOverview();
3054+ }
3055+
3056+ }
3057+
3058+ /**
3059+ * Updates reveal.js to keep in sync with new slide attributes. For
3060+ * example, if you add a new `data-background-image` you can call
3061+ * this to have reveal.js render the new background image.
3062+ *
3063+ * Similar to #sync() but more efficient when you only need to
3064+ * refresh a specific slide.
3065+ *
3066+ * @param {HTMLElement} slide
3067+ */
3068+ function syncSlide( slide ) {
3069+
3070+ // Default to the current slide
3071+ slide = slide || currentSlide;
3072+
3073+ syncBackground( slide );
3074+ syncFragments( slide );
3075+
3076+ loadSlide( slide );
3077+
3078+ updateBackground();
3079+ updateNotes();
3080+
3081+ }
3082+
3083+ /**
3084+ * Formats the fragments on the given slide so that they have
3085+ * valid indices. Call this if fragments are changed in the DOM
3086+ * after reveal.js has already initialized.
3087+ *
3088+ * @param {HTMLElement} slide
3089+ * @return {Array} a list of the HTML fragments that were synced
3090+ */
3091+ function syncFragments( slide ) {
3092+
3093+ // Default to the current slide
3094+ slide = slide || currentSlide;
3095+
3096+ return sortFragments( slide.querySelectorAll( '.fragment' ) );
3097+
3098+ }
3099+
3100+ /**
3101+ * Resets all vertical slides so that only the first
3102+ * is visible.
3103+ */
3104+ function resetVerticalSlides() {
3105+
3106+ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
3107+ horizontalSlides.forEach( function( horizontalSlide ) {
3108+
3109+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) );
3110+ verticalSlides.forEach( function( verticalSlide, y ) {
3111+
3112+ if( y > 0 ) {
3113+ verticalSlide.classList.remove( 'present' );
3114+ verticalSlide.classList.remove( 'past' );
3115+ verticalSlide.classList.add( 'future' );
3116+ verticalSlide.setAttribute( 'aria-hidden', 'true' );
3117+ }
3118+
3119+ } );
3120+
3121+ } );
3122+
3123+ }
3124+
3125+ /**
3126+ * Sorts and formats all of fragments in the
3127+ * presentation.
3128+ */
3129+ function sortAllFragments() {
3130+
3131+ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
3132+ horizontalSlides.forEach( function( horizontalSlide ) {
3133+
3134+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) );
3135+ verticalSlides.forEach( function( verticalSlide, y ) {
3136+
3137+ sortFragments( verticalSlide.querySelectorAll( '.fragment' ) );
3138+
3139+ } );
3140+
3141+ if( verticalSlides.length === 0 ) sortFragments( horizontalSlide.querySelectorAll( '.fragment' ) );
3142+
3143+ } );
3144+
3145+ }
3146+
3147+ /**
3148+ * Randomly shuffles all slides in the deck.
3149+ */
3150+ function shuffle() {
3151+
3152+ var slides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
3153+
3154+ slides.forEach( function( slide ) {
3155+
3156+ // Insert this slide next to another random slide. This may
3157+ // cause the slide to insert before itself but that's fine.
3158+ dom.slides.insertBefore( slide, slides[ Math.floor( Math.random() * slides.length ) ] );
3159+
3160+ } );
3161+
3162+ }
3163+
3164+ /**
3165+ * Updates one dimension of slides by showing the slide
3166+ * with the specified index.
3167+ *
3168+ * @param {string} selector A CSS selector that will fetch
3169+ * the group of slides we are working with
3170+ * @param {number} index The index of the slide that should be
3171+ * shown
3172+ *
3173+ * @return {number} The index of the slide that is now shown,
3174+ * might differ from the passed in index if it was out of
3175+ * bounds.
3176+ */
3177+ function updateSlides( selector, index ) {
3178+
3179+ // Select all slides and convert the NodeList result to
3180+ // an array
3181+ var slides = toArray( dom.wrapper.querySelectorAll( selector ) ),
3182+ slidesLength = slides.length;
3183+
3184+ var printMode = isPrintingPDF();
3185+
3186+ if( slidesLength ) {
3187+
3188+ // Should the index loop?
3189+ if( config.loop ) {
3190+ index %= slidesLength;
3191+
3192+ if( index < 0 ) {
3193+ index = slidesLength + index;
3194+ }
3195+ }
3196+
3197+ // Enforce max and minimum index bounds
3198+ index = Math.max( Math.min( index, slidesLength - 1 ), 0 );
3199+
3200+ for( var i = 0; i < slidesLength; i++ ) {
3201+ var element = slides[i];
3202+
3203+ var reverse = config.rtl && !isVerticalSlide( element );
3204+
3205+ element.classList.remove( 'past' );
3206+ element.classList.remove( 'present' );
3207+ element.classList.remove( 'future' );
3208+
3209+ // http://www.w3.org/html/wg/drafts/html/master/editing.html#the-hidden-attribute
3210+ element.setAttribute( 'hidden', '' );
3211+ element.setAttribute( 'aria-hidden', 'true' );
3212+
3213+ // If this element contains vertical slides
3214+ if( element.querySelector( 'section' ) ) {
3215+ element.classList.add( 'stack' );
3216+ }
3217+
3218+ // If we're printing static slides, all slides are "present"
3219+ if( printMode ) {
3220+ element.classList.add( 'present' );
3221+ continue;
3222+ }
3223+
3224+ if( i < index ) {
3225+ // Any element previous to index is given the 'past' class
3226+ element.classList.add( reverse ? 'future' : 'past' );
3227+
3228+ if( config.fragments ) {
3229+ // Show all fragments in prior slides
3230+ toArray( element.querySelectorAll( '.fragment' ) ).forEach( function( fragment ) {
3231+ fragment.classList.add( 'visible' );
3232+ fragment.classList.remove( 'current-fragment' );
3233+ } );
3234+ }
3235+ }
3236+ else if( i > index ) {
3237+ // Any element subsequent to index is given the 'future' class
3238+ element.classList.add( reverse ? 'past' : 'future' );
3239+
3240+ if( config.fragments ) {
3241+ // Hide all fragments in future slides
3242+ toArray( element.querySelectorAll( '.fragment.visible' ) ).forEach( function( fragment ) {
3243+ fragment.classList.remove( 'visible' );
3244+ fragment.classList.remove( 'current-fragment' );
3245+ } );
3246+ }
3247+ }
3248+ }
3249+
3250+ // Mark the current slide as present
3251+ slides[index].classList.add( 'present' );
3252+ slides[index].removeAttribute( 'hidden' );
3253+ slides[index].removeAttribute( 'aria-hidden' );
3254+
3255+ // If this slide has a state associated with it, add it
3256+ // onto the current state of the deck
3257+ var slideState = slides[index].getAttribute( 'data-state' );
3258+ if( slideState ) {
3259+ state = state.concat( slideState.split( ' ' ) );
3260+ }
3261+
3262+ }
3263+ else {
3264+ // Since there are no slides we can't be anywhere beyond the
3265+ // zeroth index
3266+ index = 0;
3267+ }
3268+
3269+ return index;
3270+
3271+ }
3272+
3273+ /**
3274+ * Optimization method; hide all slides that are far away
3275+ * from the present slide.
3276+ */
3277+ function updateSlidesVisibility() {
3278+
3279+ // Select all slides and convert the NodeList result to
3280+ // an array
3281+ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ),
3282+ horizontalSlidesLength = horizontalSlides.length,
3283+ distanceX,
3284+ distanceY;
3285+
3286+ if( horizontalSlidesLength && typeof indexh !== 'undefined' ) {
3287+
3288+ // The number of steps away from the present slide that will
3289+ // be visible
3290+ var viewDistance = isOverview() ? 10 : config.viewDistance;
3291+
3292+ // Shorten the view distance on devices that typically have
3293+ // less resources
3294+ if( isMobileDevice ) {
3295+ viewDistance = isOverview() ? 6 : config.mobileViewDistance;
3296+ }
3297+
3298+ // All slides need to be visible when exporting to PDF
3299+ if( isPrintingPDF() ) {
3300+ viewDistance = Number.MAX_VALUE;
3301+ }
3302+
3303+ for( var x = 0; x < horizontalSlidesLength; x++ ) {
3304+ var horizontalSlide = horizontalSlides[x];
3305+
3306+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) ),
3307+ verticalSlidesLength = verticalSlides.length;
3308+
3309+ // Determine how far away this slide is from the present
3310+ distanceX = Math.abs( ( indexh || 0 ) - x ) || 0;
3311+
3312+ // If the presentation is looped, distance should measure
3313+ // 1 between the first and last slides
3314+ if( config.loop ) {
3315+ distanceX = Math.abs( ( ( indexh || 0 ) - x ) % ( horizontalSlidesLength - viewDistance ) ) || 0;
3316+ }
3317+
3318+ // Show the horizontal slide if it's within the view distance
3319+ if( distanceX < viewDistance ) {
3320+ loadSlide( horizontalSlide );
3321+ }
3322+ else {
3323+ unloadSlide( horizontalSlide );
3324+ }
3325+
3326+ if( verticalSlidesLength ) {
3327+
3328+ var oy = getPreviousVerticalIndex( horizontalSlide );
3329+
3330+ for( var y = 0; y < verticalSlidesLength; y++ ) {
3331+ var verticalSlide = verticalSlides[y];
3332+
3333+ distanceY = x === ( indexh || 0 ) ? Math.abs( ( indexv || 0 ) - y ) : Math.abs( y - oy );
3334+
3335+ if( distanceX + distanceY < viewDistance ) {
3336+ loadSlide( verticalSlide );
3337+ }
3338+ else {
3339+ unloadSlide( verticalSlide );
3340+ }
3341+ }
3342+
3343+ }
3344+ }
3345+
3346+ // Flag if there are ANY vertical slides, anywhere in the deck
3347+ if( hasVerticalSlides() ) {
3348+ dom.wrapper.classList.add( 'has-vertical-slides' );
3349+ }
3350+ else {
3351+ dom.wrapper.classList.remove( 'has-vertical-slides' );
3352+ }
3353+
3354+ // Flag if there are ANY horizontal slides, anywhere in the deck
3355+ if( hasHorizontalSlides() ) {
3356+ dom.wrapper.classList.add( 'has-horizontal-slides' );
3357+ }
3358+ else {
3359+ dom.wrapper.classList.remove( 'has-horizontal-slides' );
3360+ }
3361+
3362+ }
3363+
3364+ }
3365+
3366+ /**
3367+ * Pick up notes from the current slide and display them
3368+ * to the viewer.
3369+ *
3370+ * @see {@link config.showNotes}
3371+ */
3372+ function updateNotes() {
3373+
3374+ if( config.showNotes && dom.speakerNotes && currentSlide && !isPrintingPDF() ) {
3375+
3376+ dom.speakerNotes.innerHTML = getSlideNotes() || '<span class="notes-placeholder">No notes on this slide.</span>';
3377+
3378+ }
3379+
3380+ }
3381+
3382+ /**
3383+ * Updates the visibility of the speaker notes sidebar that
3384+ * is used to share annotated slides. The notes sidebar is
3385+ * only visible if showNotes is true and there are notes on
3386+ * one or more slides in the deck.
3387+ */
3388+ function updateNotesVisibility() {
3389+
3390+ if( config.showNotes && hasNotes() ) {
3391+ dom.wrapper.classList.add( 'show-notes' );
3392+ }
3393+ else {
3394+ dom.wrapper.classList.remove( 'show-notes' );
3395+ }
3396+
3397+ }
3398+
3399+ /**
3400+ * Checks if there are speaker notes for ANY slide in the
3401+ * presentation.
3402+ */
3403+ function hasNotes() {
3404+
3405+ return dom.slides.querySelectorAll( '[data-notes], aside.notes' ).length > 0;
3406+
3407+ }
3408+
3409+ /**
3410+ * Updates the progress bar to reflect the current slide.
3411+ */
3412+ function updateProgress() {
3413+
3414+ // Update progress if enabled
3415+ if( config.progress && dom.progressbar ) {
3416+
3417+ dom.progressbar.style.width = getProgress() * dom.wrapper.offsetWidth + 'px';
3418+
3419+ }
3420+
3421+ }
3422+
3423+
3424+ /**
3425+ * Updates the slide number to match the current slide.
3426+ */
3427+ function updateSlideNumber() {
3428+
3429+ // Update slide number if enabled
3430+ if( config.slideNumber && dom.slideNumber ) {
3431+
3432+ var value;
3433+ var format = 'h.v';
3434+
3435+ if( typeof config.slideNumber === 'function' ) {
3436+ value = config.slideNumber();
3437+ }
3438+ else {
3439+ // Check if a custom number format is available
3440+ if( typeof config.slideNumber === 'string' ) {
3441+ format = config.slideNumber;
3442+ }
3443+
3444+ // If there are ONLY vertical slides in this deck, always use
3445+ // a flattened slide number
3446+ if( !/c/.test( format ) && dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ).length === 1 ) {
3447+ format = 'c';
3448+ }
3449+
3450+ value = [];
3451+ switch( format ) {
3452+ case 'c':
3453+ value.push( getSlidePastCount() + 1 );
3454+ break;
3455+ case 'c/t':
3456+ value.push( getSlidePastCount() + 1, '/', getTotalSlides() );
3457+ break;
3458+ case 'h/v':
3459+ value.push( indexh + 1 );
3460+ if( isVerticalSlide() ) value.push( '/', indexv + 1 );
3461+ break;
3462+ default:
3463+ value.push( indexh + 1 );
3464+ if( isVerticalSlide() ) value.push( '.', indexv + 1 );
3465+ }
3466+ }
3467+
3468+ dom.slideNumber.innerHTML = formatSlideNumber( value[0], value[1], value[2] );
3469+ }
3470+
3471+ }
3472+
3473+ /**
3474+ * Applies HTML formatting to a slide number before it's
3475+ * written to the DOM.
3476+ *
3477+ * @param {number} a Current slide
3478+ * @param {string} delimiter Character to separate slide numbers
3479+ * @param {(number|*)} b Total slides
3480+ * @return {string} HTML string fragment
3481+ */
3482+ function formatSlideNumber( a, delimiter, b ) {
3483+
3484+ var url = '#' + locationHash();
3485+ if( typeof b === 'number' && !isNaN( b ) ) {
3486+ return '<a href="' + url + '">' +
3487+ '<span class="slide-number-a">'+ a +'</span>' +
3488+ '<span class="slide-number-delimiter">'+ delimiter +'</span>' +
3489+ '<span class="slide-number-b">'+ b +'</span>' +
3490+ '</a>';
3491+ }
3492+ else {
3493+ return '<a href="' + url + '">' +
3494+ '<span class="slide-number-a">'+ a +'</span>' +
3495+ '</a>';
3496+ }
3497+
3498+ }
3499+
3500+ /**
3501+ * Updates the state of all control/navigation arrows.
3502+ */
3503+ function updateControls() {
3504+
3505+ var routes = availableRoutes();
3506+ var fragments = availableFragments();
3507+
3508+ // Remove the 'enabled' class from all directions
3509+ dom.controlsLeft.concat( dom.controlsRight )
3510+ .concat( dom.controlsUp )
3511+ .concat( dom.controlsDown )
3512+ .concat( dom.controlsPrev )
3513+ .concat( dom.controlsNext ).forEach( function( node ) {
3514+ node.classList.remove( 'enabled' );
3515+ node.classList.remove( 'fragmented' );
3516+
3517+ // Set 'disabled' attribute on all directions
3518+ node.setAttribute( 'disabled', 'disabled' );
3519+ } );
3520+
3521+ // Add the 'enabled' class to the available routes; remove 'disabled' attribute to enable buttons
3522+ if( routes.left ) dom.controlsLeft.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3523+ if( routes.right ) dom.controlsRight.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3524+ if( routes.up ) dom.controlsUp.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3525+ if( routes.down ) dom.controlsDown.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3526+
3527+ // Prev/next buttons
3528+ if( routes.left || routes.up ) dom.controlsPrev.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3529+ if( routes.right || routes.down ) dom.controlsNext.forEach( function( el ) { el.classList.add( 'enabled' ); el.removeAttribute( 'disabled' ); } );
3530+
3531+ // Highlight fragment directions
3532+ if( currentSlide ) {
3533+
3534+ // Always apply fragment decorator to prev/next buttons
3535+ if( fragments.prev ) dom.controlsPrev.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3536+ if( fragments.next ) dom.controlsNext.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3537+
3538+ // Apply fragment decorators to directional buttons based on
3539+ // what slide axis they are in
3540+ if( isVerticalSlide( currentSlide ) ) {
3541+ if( fragments.prev ) dom.controlsUp.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3542+ if( fragments.next ) dom.controlsDown.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3543+ }
3544+ else {
3545+ if( fragments.prev ) dom.controlsLeft.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3546+ if( fragments.next ) dom.controlsRight.forEach( function( el ) { el.classList.add( 'fragmented', 'enabled' ); el.removeAttribute( 'disabled' ); } );
3547+ }
3548+
3549+ }
3550+
3551+ if( config.controlsTutorial ) {
3552+
3553+ // Highlight control arrows with an animation to ensure
3554+ // that the viewer knows how to navigate
3555+ if( !hasNavigatedDown && routes.down ) {
3556+ dom.controlsDownArrow.classList.add( 'highlight' );
3557+ }
3558+ else {
3559+ dom.controlsDownArrow.classList.remove( 'highlight' );
3560+
3561+ if( !hasNavigatedRight && routes.right && indexv === 0 ) {
3562+ dom.controlsRightArrow.classList.add( 'highlight' );
3563+ }
3564+ else {
3565+ dom.controlsRightArrow.classList.remove( 'highlight' );
3566+ }
3567+ }
3568+
3569+ }
3570+
3571+ }
3572+
3573+ /**
3574+ * Updates the background elements to reflect the current
3575+ * slide.
3576+ *
3577+ * @param {boolean} includeAll If true, the backgrounds of
3578+ * all vertical slides (not just the present) will be updated.
3579+ */
3580+ function updateBackground( includeAll ) {
3581+
3582+ var currentBackground = null;
3583+
3584+ // Reverse past/future classes when in RTL mode
3585+ var horizontalPast = config.rtl ? 'future' : 'past',
3586+ horizontalFuture = config.rtl ? 'past' : 'future';
3587+
3588+ // Update the classes of all backgrounds to match the
3589+ // states of their slides (past/present/future)
3590+ toArray( dom.background.childNodes ).forEach( function( backgroundh, h ) {
3591+
3592+ backgroundh.classList.remove( 'past' );
3593+ backgroundh.classList.remove( 'present' );
3594+ backgroundh.classList.remove( 'future' );
3595+
3596+ if( h < indexh ) {
3597+ backgroundh.classList.add( horizontalPast );
3598+ }
3599+ else if ( h > indexh ) {
3600+ backgroundh.classList.add( horizontalFuture );
3601+ }
3602+ else {
3603+ backgroundh.classList.add( 'present' );
3604+
3605+ // Store a reference to the current background element
3606+ currentBackground = backgroundh;
3607+ }
3608+
3609+ if( includeAll || h === indexh ) {
3610+ toArray( backgroundh.querySelectorAll( '.slide-background' ) ).forEach( function( backgroundv, v ) {
3611+
3612+ backgroundv.classList.remove( 'past' );
3613+ backgroundv.classList.remove( 'present' );
3614+ backgroundv.classList.remove( 'future' );
3615+
3616+ if( v < indexv ) {
3617+ backgroundv.classList.add( 'past' );
3618+ }
3619+ else if ( v > indexv ) {
3620+ backgroundv.classList.add( 'future' );
3621+ }
3622+ else {
3623+ backgroundv.classList.add( 'present' );
3624+
3625+ // Only if this is the present horizontal and vertical slide
3626+ if( h === indexh ) currentBackground = backgroundv;
3627+ }
3628+
3629+ } );
3630+ }
3631+
3632+ } );
3633+
3634+ // Stop content inside of previous backgrounds
3635+ if( previousBackground ) {
3636+
3637+ stopEmbeddedContent( previousBackground, { unloadIframes: !shouldPreload( previousBackground ) } );
3638+
3639+ }
3640+
3641+ // Start content in the current background
3642+ if( currentBackground ) {
3643+
3644+ startEmbeddedContent( currentBackground );
3645+
3646+ var currentBackgroundContent = currentBackground.querySelector( '.slide-background-content' );
3647+ if( currentBackgroundContent ) {
3648+
3649+ var backgroundImageURL = currentBackgroundContent.style.backgroundImage || '';
3650+
3651+ // Restart GIFs (doesn't work in Firefox)
3652+ if( /\.gif/i.test( backgroundImageURL ) ) {
3653+ currentBackgroundContent.style.backgroundImage = '';
3654+ window.getComputedStyle( currentBackgroundContent ).opacity;
3655+ currentBackgroundContent.style.backgroundImage = backgroundImageURL;
3656+ }
3657+
3658+ }
3659+
3660+ // Don't transition between identical backgrounds. This
3661+ // prevents unwanted flicker.
3662+ var previousBackgroundHash = previousBackground ? previousBackground.getAttribute( 'data-background-hash' ) : null;
3663+ var currentBackgroundHash = currentBackground.getAttribute( 'data-background-hash' );
3664+ if( currentBackgroundHash && currentBackgroundHash === previousBackgroundHash && currentBackground !== previousBackground ) {
3665+ dom.background.classList.add( 'no-transition' );
3666+ }
3667+
3668+ previousBackground = currentBackground;
3669+
3670+ }
3671+
3672+ // If there's a background brightness flag for this slide,
3673+ // bubble it to the .reveal container
3674+ if( currentSlide ) {
3675+ [ 'has-light-background', 'has-dark-background' ].forEach( function( classToBubble ) {
3676+ if( currentSlide.classList.contains( classToBubble ) ) {
3677+ dom.wrapper.classList.add( classToBubble );
3678+ }
3679+ else {
3680+ dom.wrapper.classList.remove( classToBubble );
3681+ }
3682+ } );
3683+ }
3684+
3685+ // Allow the first background to apply without transition
3686+ setTimeout( function() {
3687+ dom.background.classList.remove( 'no-transition' );
3688+ }, 1 );
3689+
3690+ }
3691+
3692+ /**
3693+ * Updates the position of the parallax background based
3694+ * on the current slide index.
3695+ */
3696+ function updateParallax() {
3697+
3698+ if( config.parallaxBackgroundImage ) {
3699+
3700+ var horizontalSlides = dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ),
3701+ verticalSlides = dom.wrapper.querySelectorAll( VERTICAL_SLIDES_SELECTOR );
3702+
3703+ var backgroundSize = dom.background.style.backgroundSize.split( ' ' ),
3704+ backgroundWidth, backgroundHeight;
3705+
3706+ if( backgroundSize.length === 1 ) {
3707+ backgroundWidth = backgroundHeight = parseInt( backgroundSize[0], 10 );
3708+ }
3709+ else {
3710+ backgroundWidth = parseInt( backgroundSize[0], 10 );
3711+ backgroundHeight = parseInt( backgroundSize[1], 10 );
3712+ }
3713+
3714+ var slideWidth = dom.background.offsetWidth,
3715+ horizontalSlideCount = horizontalSlides.length,
3716+ horizontalOffsetMultiplier,
3717+ horizontalOffset;
3718+
3719+ if( typeof config.parallaxBackgroundHorizontal === 'number' ) {
3720+ horizontalOffsetMultiplier = config.parallaxBackgroundHorizontal;
3721+ }
3722+ else {
3723+ horizontalOffsetMultiplier = horizontalSlideCount > 1 ? ( backgroundWidth - slideWidth ) / ( horizontalSlideCount-1 ) : 0;
3724+ }
3725+
3726+ horizontalOffset = horizontalOffsetMultiplier * indexh * -1;
3727+
3728+ var slideHeight = dom.background.offsetHeight,
3729+ verticalSlideCount = verticalSlides.length,
3730+ verticalOffsetMultiplier,
3731+ verticalOffset;
3732+
3733+ if( typeof config.parallaxBackgroundVertical === 'number' ) {
3734+ verticalOffsetMultiplier = config.parallaxBackgroundVertical;
3735+ }
3736+ else {
3737+ verticalOffsetMultiplier = ( backgroundHeight - slideHeight ) / ( verticalSlideCount-1 );
3738+ }
3739+
3740+ verticalOffset = verticalSlideCount > 0 ? verticalOffsetMultiplier * indexv : 0;
3741+
3742+ dom.background.style.backgroundPosition = horizontalOffset + 'px ' + -verticalOffset + 'px';
3743+
3744+ }
3745+
3746+ }
3747+
3748+ /**
3749+ * Should the given element be preloaded?
3750+ * Decides based on local element attributes and global config.
3751+ *
3752+ * @param {HTMLElement} element
3753+ */
3754+ function shouldPreload( element ) {
3755+
3756+ // Prefer an explicit global preload setting
3757+ var preload = config.preloadIframes;
3758+
3759+ // If no global setting is available, fall back on the element's
3760+ // own preload setting
3761+ if( typeof preload !== 'boolean' ) {
3762+ preload = element.hasAttribute( 'data-preload' );
3763+ }
3764+
3765+ return preload;
3766+ }
3767+
3768+ /**
3769+ * Called when the given slide is within the configured view
3770+ * distance. Shows the slide element and loads any content
3771+ * that is set to load lazily (data-src).
3772+ *
3773+ * @param {HTMLElement} slide Slide to show
3774+ */
3775+ function loadSlide( slide, options ) {
3776+
3777+ options = options || {};
3778+
3779+ // Show the slide element
3780+ slide.style.display = config.display;
3781+
3782+ // Media elements with data-src attributes
3783+ toArray( slide.querySelectorAll( 'img[data-src], video[data-src], audio[data-src], iframe[data-src]' ) ).forEach( function( element ) {
3784+ if( element.tagName !== 'IFRAME' || shouldPreload( element ) ) {
3785+ element.setAttribute( 'src', element.getAttribute( 'data-src' ) );
3786+ element.setAttribute( 'data-lazy-loaded', '' );
3787+ element.removeAttribute( 'data-src' );
3788+ }
3789+ } );
3790+
3791+ // Media elements with <source> children
3792+ toArray( slide.querySelectorAll( 'video, audio' ) ).forEach( function( media ) {
3793+ var sources = 0;
3794+
3795+ toArray( media.querySelectorAll( 'source[data-src]' ) ).forEach( function( source ) {
3796+ source.setAttribute( 'src', source.getAttribute( 'data-src' ) );
3797+ source.removeAttribute( 'data-src' );
3798+ source.setAttribute( 'data-lazy-loaded', '' );
3799+ sources += 1;
3800+ } );
3801+
3802+ // If we rewrote sources for this video/audio element, we need
3803+ // to manually tell it to load from its new origin
3804+ if( sources > 0 ) {
3805+ media.load();
3806+ }
3807+ } );
3808+
3809+
3810+ // Show the corresponding background element
3811+ var background = slide.slideBackgroundElement;
3812+ if( background ) {
3813+ background.style.display = 'block';
3814+
3815+ var backgroundContent = slide.slideBackgroundContentElement;
3816+ var backgroundIframe = slide.getAttribute( 'data-background-iframe' );
3817+
3818+ // If the background contains media, load it
3819+ if( background.hasAttribute( 'data-loaded' ) === false ) {
3820+ background.setAttribute( 'data-loaded', 'true' );
3821+
3822+ var backgroundImage = slide.getAttribute( 'data-background-image' ),
3823+ backgroundVideo = slide.getAttribute( 'data-background-video' ),
3824+ backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),
3825+ backgroundVideoMuted = slide.hasAttribute( 'data-background-video-muted' );
3826+
3827+ // Images
3828+ if( backgroundImage ) {
3829+ backgroundContent.style.backgroundImage = 'url('+ encodeURI( backgroundImage ) +')';
3830+ }
3831+ // Videos
3832+ else if ( backgroundVideo && !isSpeakerNotes() ) {
3833+ var video = document.createElement( 'video' );
3834+
3835+ if( backgroundVideoLoop ) {
3836+ video.setAttribute( 'loop', '' );
3837+ }
3838+
3839+ if( backgroundVideoMuted ) {
3840+ video.muted = true;
3841+ }
3842+
3843+ // Inline video playback works (at least in Mobile Safari) as
3844+ // long as the video is muted and the `playsinline` attribute is
3845+ // present
3846+ if( isMobileDevice ) {
3847+ video.muted = true;
3848+ video.autoplay = true;
3849+ video.setAttribute( 'playsinline', '' );
3850+ }
3851+
3852+ // Support comma separated lists of video sources
3853+ backgroundVideo.split( ',' ).forEach( function( source ) {
3854+ video.innerHTML += '<source src="'+ source +'">';
3855+ } );
3856+
3857+ backgroundContent.appendChild( video );
3858+ }
3859+ // Iframes
3860+ else if( backgroundIframe && options.excludeIframes !== true ) {
3861+ var iframe = document.createElement( 'iframe' );
3862+ iframe.setAttribute( 'allowfullscreen', '' );
3863+ iframe.setAttribute( 'mozallowfullscreen', '' );
3864+ iframe.setAttribute( 'webkitallowfullscreen', '' );
3865+ iframe.setAttribute( 'allow', 'autoplay' );
3866+
3867+ iframe.setAttribute( 'data-src', backgroundIframe );
3868+
3869+ iframe.style.width = '100%';
3870+ iframe.style.height = '100%';
3871+ iframe.style.maxHeight = '100%';
3872+ iframe.style.maxWidth = '100%';
3873+
3874+ backgroundContent.appendChild( iframe );
3875+ }
3876+ }
3877+
3878+ // Start loading preloadable iframes
3879+ var backgroundIframeElement = backgroundContent.querySelector( 'iframe[data-src]' );
3880+ if( backgroundIframeElement ) {
3881+
3882+ // Check if this iframe is eligible to be preloaded
3883+ if( shouldPreload( background ) && !/autoplay=(1|true|yes)/gi.test( backgroundIframe ) ) {
3884+ if( backgroundIframeElement.getAttribute( 'src' ) !== backgroundIframe ) {
3885+ backgroundIframeElement.setAttribute( 'src', backgroundIframe );
3886+ }
3887+ }
3888+
3889+ }
3890+
3891+ }
3892+
3893+ }
3894+
3895+ /**
3896+ * Unloads and hides the given slide. This is called when the
3897+ * slide is moved outside of the configured view distance.
3898+ *
3899+ * @param {HTMLElement} slide
3900+ */
3901+ function unloadSlide( slide ) {
3902+
3903+ // Hide the slide element
3904+ slide.style.display = 'none';
3905+
3906+ // Hide the corresponding background element
3907+ var background = getSlideBackground( slide );
3908+ if( background ) {
3909+ background.style.display = 'none';
3910+
3911+ // Unload any background iframes
3912+ toArray( background.querySelectorAll( 'iframe[src]' ) ).forEach( function( element ) {
3913+ element.removeAttribute( 'src' );
3914+ } );
3915+ }
3916+
3917+ // Reset lazy-loaded media elements with src attributes
3918+ toArray( slide.querySelectorAll( 'video[data-lazy-loaded][src], audio[data-lazy-loaded][src], iframe[data-lazy-loaded][src]' ) ).forEach( function( element ) {
3919+ element.setAttribute( 'data-src', element.getAttribute( 'src' ) );
3920+ element.removeAttribute( 'src' );
3921+ } );
3922+
3923+ // Reset lazy-loaded media elements with <source> children
3924+ toArray( slide.querySelectorAll( 'video[data-lazy-loaded] source[src], audio source[src]' ) ).forEach( function( source ) {
3925+ source.setAttribute( 'data-src', source.getAttribute( 'src' ) );
3926+ source.removeAttribute( 'src' );
3927+ } );
3928+
3929+ }
3930+
3931+ /**
3932+ * Determine what available routes there are for navigation.
3933+ *
3934+ * @return {{left: boolean, right: boolean, up: boolean, down: boolean}}
3935+ */
3936+ function availableRoutes() {
3937+
3938+ var horizontalSlides = dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ),
3939+ verticalSlides = dom.wrapper.querySelectorAll( VERTICAL_SLIDES_SELECTOR );
3940+
3941+ var routes = {
3942+ left: indexh > 0,
3943+ right: indexh < horizontalSlides.length - 1,
3944+ up: indexv > 0,
3945+ down: indexv < verticalSlides.length - 1
3946+ };
3947+
3948+ // Looped presentations can always be navigated as long as
3949+ // there are slides available
3950+ if( config.loop ) {
3951+ if( horizontalSlides.length > 1 ) {
3952+ routes.left = true;
3953+ routes.right = true;
3954+ }
3955+
3956+ if( verticalSlides.length > 1 ) {
3957+ routes.up = true;
3958+ routes.down = true;
3959+ }
3960+ }
3961+
3962+ // Reverse horizontal controls for rtl
3963+ if( config.rtl ) {
3964+ var left = routes.left;
3965+ routes.left = routes.right;
3966+ routes.right = left;
3967+ }
3968+
3969+ return routes;
3970+
3971+ }
3972+
3973+ /**
3974+ * Returns an object describing the available fragment
3975+ * directions.
3976+ *
3977+ * @return {{prev: boolean, next: boolean}}
3978+ */
3979+ function availableFragments() {
3980+
3981+ if( currentSlide && config.fragments ) {
3982+ var fragments = currentSlide.querySelectorAll( '.fragment' );
3983+ var hiddenFragments = currentSlide.querySelectorAll( '.fragment:not(.visible)' );
3984+
3985+ return {
3986+ prev: fragments.length - hiddenFragments.length > 0,
3987+ next: !!hiddenFragments.length
3988+ };
3989+ }
3990+ else {
3991+ return { prev: false, next: false };
3992+ }
3993+
3994+ }
3995+
3996+ /**
3997+ * Enforces origin-specific format rules for embedded media.
3998+ */
3999+ function formatEmbeddedContent() {
4000+
4001+ var _appendParamToIframeSource = function( sourceAttribute, sourceURL, param ) {
4002+ toArray( dom.slides.querySelectorAll( 'iframe['+ sourceAttribute +'*="'+ sourceURL +'"]' ) ).forEach( function( el ) {
4003+ var src = el.getAttribute( sourceAttribute );
4004+ if( src && src.indexOf( param ) === -1 ) {
4005+ el.setAttribute( sourceAttribute, src + ( !/\?/.test( src ) ? '?' : '&' ) + param );
4006+ }
4007+ });
4008+ };
4009+
4010+ // YouTube frames must include "?enablejsapi=1"
4011+ _appendParamToIframeSource( 'src', 'youtube.com/embed/', 'enablejsapi=1' );
4012+ _appendParamToIframeSource( 'data-src', 'youtube.com/embed/', 'enablejsapi=1' );
4013+
4014+ // Vimeo frames must include "?api=1"
4015+ _appendParamToIframeSource( 'src', 'player.vimeo.com/', 'api=1' );
4016+ _appendParamToIframeSource( 'data-src', 'player.vimeo.com/', 'api=1' );
4017+
4018+ }
4019+
4020+ /**
4021+ * Start playback of any embedded content inside of
4022+ * the given element.
4023+ *
4024+ * @param {HTMLElement} element
4025+ */
4026+ function startEmbeddedContent( element ) {
4027+
4028+ if( element && !isSpeakerNotes() ) {
4029+
4030+ // Restart GIFs
4031+ toArray( element.querySelectorAll( 'img[src$=".gif"]' ) ).forEach( function( el ) {
4032+ // Setting the same unchanged source like this was confirmed
4033+ // to work in Chrome, FF & Safari
4034+ el.setAttribute( 'src', el.getAttribute( 'src' ) );
4035+ } );
4036+
4037+ // HTML5 media elements
4038+ toArray( element.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
4039+ if( closestParent( el, '.fragment' ) && !closestParent( el, '.fragment.visible' ) ) {
4040+ return;
4041+ }
4042+
4043+ // Prefer an explicit global autoplay setting
4044+ var autoplay = config.autoPlayMedia;
4045+
4046+ // If no global setting is available, fall back on the element's
4047+ // own autoplay setting
4048+ if( typeof autoplay !== 'boolean' ) {
4049+ autoplay = el.hasAttribute( 'data-autoplay' ) || !!closestParent( el, '.slide-background' );
4050+ }
4051+
4052+ if( autoplay && typeof el.play === 'function' ) {
4053+
4054+ // If the media is ready, start playback
4055+ if( el.readyState > 1 ) {
4056+ startEmbeddedMedia( { target: el } );
4057+ }
4058+ // Mobile devices never fire a loaded event so instead
4059+ // of waiting, we initiate playback
4060+ else if( isMobileDevice ) {
4061+ var promise = el.play();
4062+
4063+ // If autoplay does not work, ensure that the controls are visible so
4064+ // that the viewer can start the media on their own
4065+ if( promise && typeof promise.catch === 'function' && el.controls === false ) {
4066+ promise.catch( function() {
4067+ el.controls = true;
4068+
4069+ // Once the video does start playing, hide the controls again
4070+ el.addEventListener( 'play', function() {
4071+ el.controls = false;
4072+ } );
4073+ } );
4074+ }
4075+ }
4076+ // If the media isn't loaded, wait before playing
4077+ else {
4078+ el.removeEventListener( 'loadeddata', startEmbeddedMedia ); // remove first to avoid dupes
4079+ el.addEventListener( 'loadeddata', startEmbeddedMedia );
4080+ }
4081+
4082+ }
4083+ } );
4084+
4085+ // Normal iframes
4086+ toArray( element.querySelectorAll( 'iframe[src]' ) ).forEach( function( el ) {
4087+ if( closestParent( el, '.fragment' ) && !closestParent( el, '.fragment.visible' ) ) {
4088+ return;
4089+ }
4090+
4091+ startEmbeddedIframe( { target: el } );
4092+ } );
4093+
4094+ // Lazy loading iframes
4095+ toArray( element.querySelectorAll( 'iframe[data-src]' ) ).forEach( function( el ) {
4096+ if( closestParent( el, '.fragment' ) && !closestParent( el, '.fragment.visible' ) ) {
4097+ return;
4098+ }
4099+
4100+ if( el.getAttribute( 'src' ) !== el.getAttribute( 'data-src' ) ) {
4101+ el.removeEventListener( 'load', startEmbeddedIframe ); // remove first to avoid dupes
4102+ el.addEventListener( 'load', startEmbeddedIframe );
4103+ el.setAttribute( 'src', el.getAttribute( 'data-src' ) );
4104+ }
4105+ } );
4106+
4107+ }
4108+
4109+ }
4110+
4111+ /**
4112+ * Starts playing an embedded video/audio element after
4113+ * it has finished loading.
4114+ *
4115+ * @param {object} event
4116+ */
4117+ function startEmbeddedMedia( event ) {
4118+
4119+ var isAttachedToDOM = !!closestParent( event.target, 'html' ),
4120+ isVisible = !!closestParent( event.target, '.present' );
4121+
4122+ if( isAttachedToDOM && isVisible ) {
4123+ event.target.currentTime = 0;
4124+ event.target.play();
4125+ }
4126+
4127+ event.target.removeEventListener( 'loadeddata', startEmbeddedMedia );
4128+
4129+ }
4130+
4131+ /**
4132+ * "Starts" the content of an embedded iframe using the
4133+ * postMessage API.
4134+ *
4135+ * @param {object} event
4136+ */
4137+ function startEmbeddedIframe( event ) {
4138+
4139+ var iframe = event.target;
4140+
4141+ if( iframe && iframe.contentWindow ) {
4142+
4143+ var isAttachedToDOM = !!closestParent( event.target, 'html' ),
4144+ isVisible = !!closestParent( event.target, '.present' );
4145+
4146+ if( isAttachedToDOM && isVisible ) {
4147+
4148+ // Prefer an explicit global autoplay setting
4149+ var autoplay = config.autoPlayMedia;
4150+
4151+ // If no global setting is available, fall back on the element's
4152+ // own autoplay setting
4153+ if( typeof autoplay !== 'boolean' ) {
4154+ autoplay = iframe.hasAttribute( 'data-autoplay' ) || !!closestParent( iframe, '.slide-background' );
4155+ }
4156+
4157+ // YouTube postMessage API
4158+ if( /youtube\.com\/embed\//.test( iframe.getAttribute( 'src' ) ) && autoplay ) {
4159+ iframe.contentWindow.postMessage( '{"event":"command","func":"playVideo","args":""}', '*' );
4160+ }
4161+ // Vimeo postMessage API
4162+ else if( /player\.vimeo\.com\//.test( iframe.getAttribute( 'src' ) ) && autoplay ) {
4163+ iframe.contentWindow.postMessage( '{"method":"play"}', '*' );
4164+ }
4165+ // Generic postMessage API
4166+ else {
4167+ iframe.contentWindow.postMessage( 'slide:start', '*' );
4168+ }
4169+
4170+ }
4171+
4172+ }
4173+
4174+ }
4175+
4176+ /**
4177+ * Stop playback of any embedded content inside of
4178+ * the targeted slide.
4179+ *
4180+ * @param {HTMLElement} element
4181+ */
4182+ function stopEmbeddedContent( element, options ) {
4183+
4184+ options = extend( {
4185+ // Defaults
4186+ unloadIframes: true
4187+ }, options || {} );
4188+
4189+ if( element && element.parentNode ) {
4190+ // HTML5 media elements
4191+ toArray( element.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
4192+ if( !el.hasAttribute( 'data-ignore' ) && typeof el.pause === 'function' ) {
4193+ el.setAttribute('data-paused-by-reveal', '');
4194+ el.pause();
4195+ }
4196+ } );
4197+
4198+ // Generic postMessage API for non-lazy loaded iframes
4199+ toArray( element.querySelectorAll( 'iframe' ) ).forEach( function( el ) {
4200+ if( el.contentWindow ) el.contentWindow.postMessage( 'slide:stop', '*' );
4201+ el.removeEventListener( 'load', startEmbeddedIframe );
4202+ });
4203+
4204+ // YouTube postMessage API
4205+ toArray( element.querySelectorAll( 'iframe[src*="youtube.com/embed/"]' ) ).forEach( function( el ) {
4206+ if( !el.hasAttribute( 'data-ignore' ) && el.contentWindow && typeof el.contentWindow.postMessage === 'function' ) {
4207+ el.contentWindow.postMessage( '{"event":"command","func":"pauseVideo","args":""}', '*' );
4208+ }
4209+ });
4210+
4211+ // Vimeo postMessage API
4212+ toArray( element.querySelectorAll( 'iframe[src*="player.vimeo.com/"]' ) ).forEach( function( el ) {
4213+ if( !el.hasAttribute( 'data-ignore' ) && el.contentWindow && typeof el.contentWindow.postMessage === 'function' ) {
4214+ el.contentWindow.postMessage( '{"method":"pause"}', '*' );
4215+ }
4216+ });
4217+
4218+ if( options.unloadIframes === true ) {
4219+ // Unload lazy-loaded iframes
4220+ toArray( element.querySelectorAll( 'iframe[data-src]' ) ).forEach( function( el ) {
4221+ // Only removing the src doesn't actually unload the frame
4222+ // in all browsers (Firefox) so we set it to blank first
4223+ el.setAttribute( 'src', 'about:blank' );
4224+ el.removeAttribute( 'src' );
4225+ } );
4226+ }
4227+ }
4228+
4229+ }
4230+
4231+ /**
4232+ * Returns the number of past slides. This can be used as a global
4233+ * flattened index for slides.
4234+ *
4235+ * @return {number} Past slide count
4236+ */
4237+ function getSlidePastCount() {
4238+
4239+ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
4240+
4241+ // The number of past slides
4242+ var pastCount = 0;
4243+
4244+ // Step through all slides and count the past ones
4245+ mainLoop: for( var i = 0; i < horizontalSlides.length; i++ ) {
4246+
4247+ var horizontalSlide = horizontalSlides[i];
4248+ var verticalSlides = toArray( horizontalSlide.querySelectorAll( 'section' ) );
4249+
4250+ for( var j = 0; j < verticalSlides.length; j++ ) {
4251+
4252+ // Stop as soon as we arrive at the present
4253+ if( verticalSlides[j].classList.contains( 'present' ) ) {
4254+ break mainLoop;
4255+ }
4256+
4257+ pastCount++;
4258+
4259+ }
4260+
4261+ // Stop as soon as we arrive at the present
4262+ if( horizontalSlide.classList.contains( 'present' ) ) {
4263+ break;
4264+ }
4265+
4266+ // Don't count the wrapping section for vertical slides
4267+ if( horizontalSlide.classList.contains( 'stack' ) === false ) {
4268+ pastCount++;
4269+ }
4270+
4271+ }
4272+
4273+ return pastCount;
4274+
4275+ }
4276+
4277+ /**
4278+ * Returns a value ranging from 0-1 that represents
4279+ * how far into the presentation we have navigated.
4280+ *
4281+ * @return {number}
4282+ */
4283+ function getProgress() {
4284+
4285+ // The number of past and total slides
4286+ var totalCount = getTotalSlides();
4287+ var pastCount = getSlidePastCount();
4288+
4289+ if( currentSlide ) {
4290+
4291+ var allFragments = currentSlide.querySelectorAll( '.fragment' );
4292+
4293+ // If there are fragments in the current slide those should be
4294+ // accounted for in the progress.
4295+ if( allFragments.length > 0 ) {
4296+ var visibleFragments = currentSlide.querySelectorAll( '.fragment.visible' );
4297+
4298+ // This value represents how big a portion of the slide progress
4299+ // that is made up by its fragments (0-1)
4300+ var fragmentWeight = 0.9;
4301+
4302+ // Add fragment progress to the past slide count
4303+ pastCount += ( visibleFragments.length / allFragments.length ) * fragmentWeight;
4304+ }
4305+
4306+ }
4307+
4308+ return Math.min( pastCount / ( totalCount - 1 ), 1 );
4309+
4310+ }
4311+
4312+ /**
4313+ * Checks if this presentation is running inside of the
4314+ * speaker notes window.
4315+ *
4316+ * @return {boolean}
4317+ */
4318+ function isSpeakerNotes() {
4319+
4320+ return !!window.location.search.match( /receiver/gi );
4321+
4322+ }
4323+
4324+ /**
4325+ * Reads the current URL (hash) and navigates accordingly.
4326+ */
4327+ function readURL() {
4328+
4329+ var hash = window.location.hash;
4330+
4331+ // Attempt to parse the hash as either an index or name
4332+ var bits = hash.slice( 2 ).split( '/' ),
4333+ name = hash.replace( /#|\//gi, '' );
4334+
4335+ // If the first bit is not fully numeric and there is a name we
4336+ // can assume that this is a named link
4337+ if( !/^[0-9]*$/.test( bits[0] ) && name.length ) {
4338+ var element;
4339+
4340+ // Ensure the named link is a valid HTML ID attribute
4341+ try {
4342+ element = document.getElementById( decodeURIComponent( name ) );
4343+ }
4344+ catch ( error ) { }
4345+
4346+ // Ensure that we're not already on a slide with the same name
4347+ var isSameNameAsCurrentSlide = currentSlide ? currentSlide.getAttribute( 'id' ) === name : false;
4348+
4349+ if( element ) {
4350+ // If the slide exists and is not the current slide...
4351+ if ( !isSameNameAsCurrentSlide ) {
4352+ // ...find the position of the named slide and navigate to it
4353+ var indices = Reveal.getIndices(element);
4354+ slide(indices.h, indices.v);
4355+ }
4356+ }
4357+ // If the slide doesn't exist, navigate to the current slide
4358+ else {
4359+ slide( indexh || 0, indexv || 0 );
4360+ }
4361+ }
4362+ else {
4363+ var hashIndexBase = config.hashOneBasedIndex ? 1 : 0;
4364+
4365+ // Read the index components of the hash
4366+ var h = ( parseInt( bits[0], 10 ) - hashIndexBase ) || 0,
4367+ v = ( parseInt( bits[1], 10 ) - hashIndexBase ) || 0,
4368+ f;
4369+
4370+ if( config.fragmentInURL ) {
4371+ f = parseInt( bits[2], 10 );
4372+ if( isNaN( f ) ) {
4373+ f = undefined;
4374+ }
4375+ }
4376+
4377+ if( h !== indexh || v !== indexv || f !== undefined ) {
4378+ slide( h, v, f );
4379+ }
4380+ }
4381+
4382+ }
4383+
4384+ /**
4385+ * Updates the page URL (hash) to reflect the current
4386+ * state.
4387+ *
4388+ * @param {number} delay The time in ms to wait before
4389+ * writing the hash
4390+ */
4391+ function writeURL( delay ) {
4392+
4393+ // Make sure there's never more than one timeout running
4394+ clearTimeout( writeURLTimeout );
4395+
4396+ // If a delay is specified, timeout this call
4397+ if( typeof delay === 'number' ) {
4398+ writeURLTimeout = setTimeout( writeURL, delay );
4399+ }
4400+ else if( currentSlide ) {
4401+ // If we're configured to push to history OR the history
4402+ // API is not avaialble.
4403+ if( config.history || !window.history ) {
4404+ window.location.hash = locationHash();
4405+ }
4406+ // If we're configured to reflect the current slide in the
4407+ // URL without pushing to history.
4408+ else if( config.hash ) {
4409+ window.history.replaceState( null, null, '#' + locationHash() );
4410+ }
4411+ // If history and hash are both disabled, a hash may still
4412+ // be added to the URL by clicking on a href with a hash
4413+ // target. Counter this by always removing the hash.
4414+ else {
4415+ window.history.replaceState( null, null, window.location.pathname + window.location.search );
4416+ }
4417+ }
4418+
4419+ }
4420+ /**
4421+ * Retrieves the h/v location and fragment of the current,
4422+ * or specified, slide.
4423+ *
4424+ * @param {HTMLElement} [slide] If specified, the returned
4425+ * index will be for this slide rather than the currently
4426+ * active one
4427+ *
4428+ * @return {{h: number, v: number, f: number}}
4429+ */
4430+ function getIndices( slide ) {
4431+
4432+ // By default, return the current indices
4433+ var h = indexh,
4434+ v = indexv,
4435+ f;
4436+
4437+ // If a slide is specified, return the indices of that slide
4438+ if( slide ) {
4439+ var isVertical = isVerticalSlide( slide );
4440+ var slideh = isVertical ? slide.parentNode : slide;
4441+
4442+ // Select all horizontal slides
4443+ var horizontalSlides = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
4444+
4445+ // Now that we know which the horizontal slide is, get its index
4446+ h = Math.max( horizontalSlides.indexOf( slideh ), 0 );
4447+
4448+ // Assume we're not vertical
4449+ v = undefined;
4450+
4451+ // If this is a vertical slide, grab the vertical index
4452+ if( isVertical ) {
4453+ v = Math.max( toArray( slide.parentNode.querySelectorAll( 'section' ) ).indexOf( slide ), 0 );
4454+ }
4455+ }
4456+
4457+ if( !slide && currentSlide ) {
4458+ var hasFragments = currentSlide.querySelectorAll( '.fragment' ).length > 0;
4459+ if( hasFragments ) {
4460+ var currentFragment = currentSlide.querySelector( '.current-fragment' );
4461+ if( currentFragment && currentFragment.hasAttribute( 'data-fragment-index' ) ) {
4462+ f = parseInt( currentFragment.getAttribute( 'data-fragment-index' ), 10 );
4463+ }
4464+ else {
4465+ f = currentSlide.querySelectorAll( '.fragment.visible' ).length - 1;
4466+ }
4467+ }
4468+ }
4469+
4470+ return { h: h, v: v, f: f };
4471+
4472+ }
4473+
4474+ /**
4475+ * Retrieves all slides in this presentation.
4476+ */
4477+ function getSlides() {
4478+
4479+ return toArray( dom.wrapper.querySelectorAll( SLIDES_SELECTOR + ':not(.stack)' ) );
4480+
4481+ }
4482+
4483+ /**
4484+ * Returns a list of all horizontal slides in the deck. Each
4485+ * vertical stack is included as one horizontal slide in the
4486+ * resulting array.
4487+ */
4488+ function getHorizontalSlides() {
4489+
4490+ return toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) );
4491+
4492+ }
4493+
4494+ /**
4495+ * Returns all vertical slides that exist within this deck.
4496+ */
4497+ function getVerticalSlides() {
4498+
4499+ return toArray( dom.wrapper.querySelectorAll( '.slides>section>section' ) );
4500+
4501+ }
4502+
4503+ /**
4504+ * Returns true if there are at least two horizontal slides.
4505+ */
4506+ function hasHorizontalSlides() {
4507+
4508+ return getHorizontalSlides().length > 1;
4509+ }
4510+
4511+ /**
4512+ * Returns true if there are at least two vertical slides.
4513+ */
4514+ function hasVerticalSlides() {
4515+
4516+ return getVerticalSlides().length > 1;
4517+
4518+ }
4519+
4520+ /**
4521+ * Returns an array of objects where each object represents the
4522+ * attributes on its respective slide.
4523+ */
4524+ function getSlidesAttributes() {
4525+
4526+ return getSlides().map( function( slide ) {
4527+
4528+ var attributes = {};
4529+ for( var i = 0; i < slide.attributes.length; i++ ) {
4530+ var attribute = slide.attributes[ i ];
4531+ attributes[ attribute.name ] = attribute.value;
4532+ }
4533+ return attributes;
4534+
4535+ } );
4536+
4537+ }
4538+
4539+ /**
4540+ * Retrieves the total number of slides in this presentation.
4541+ *
4542+ * @return {number}
4543+ */
4544+ function getTotalSlides() {
4545+
4546+ return getSlides().length;
4547+
4548+ }
4549+
4550+ /**
4551+ * Returns the slide element matching the specified index.
4552+ *
4553+ * @return {HTMLElement}
4554+ */
4555+ function getSlide( x, y ) {
4556+
4557+ var horizontalSlide = dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR )[ x ];
4558+ var verticalSlides = horizontalSlide && horizontalSlide.querySelectorAll( 'section' );
4559+
4560+ if( verticalSlides && verticalSlides.length && typeof y === 'number' ) {
4561+ return verticalSlides ? verticalSlides[ y ] : undefined;
4562+ }
4563+
4564+ return horizontalSlide;
4565+
4566+ }
4567+
4568+ /**
4569+ * Returns the background element for the given slide.
4570+ * All slides, even the ones with no background properties
4571+ * defined, have a background element so as long as the
4572+ * index is valid an element will be returned.
4573+ *
4574+ * @param {mixed} x Horizontal background index OR a slide
4575+ * HTML element
4576+ * @param {number} y Vertical background index
4577+ * @return {(HTMLElement[]|*)}
4578+ */
4579+ function getSlideBackground( x, y ) {
4580+
4581+ var slide = typeof x === 'number' ? getSlide( x, y ) : x;
4582+ if( slide ) {
4583+ return slide.slideBackgroundElement;
4584+ }
4585+
4586+ return undefined;
4587+
4588+ }
4589+
4590+ /**
4591+ * Retrieves the speaker notes from a slide. Notes can be
4592+ * defined in two ways:
4593+ * 1. As a data-notes attribute on the slide <section>
4594+ * 2. As an <aside class="notes"> inside of the slide
4595+ *
4596+ * @param {HTMLElement} [slide=currentSlide]
4597+ * @return {(string|null)}
4598+ */
4599+ function getSlideNotes( slide ) {
4600+
4601+ // Default to the current slide
4602+ slide = slide || currentSlide;
4603+
4604+ // Notes can be specified via the data-notes attribute...
4605+ if( slide.hasAttribute( 'data-notes' ) ) {
4606+ return slide.getAttribute( 'data-notes' );
4607+ }
4608+
4609+ // ... or using an <aside class="notes"> element
4610+ var notesElement = slide.querySelector( 'aside.notes' );
4611+ if( notesElement ) {
4612+ return notesElement.innerHTML;
4613+ }
4614+
4615+ return null;
4616+
4617+ }
4618+
4619+ /**
4620+ * Retrieves the current state of the presentation as
4621+ * an object. This state can then be restored at any
4622+ * time.
4623+ *
4624+ * @return {{indexh: number, indexv: number, indexf: number, paused: boolean, overview: boolean}}
4625+ */
4626+ function getState() {
4627+
4628+ var indices = getIndices();
4629+
4630+ return {
4631+ indexh: indices.h,
4632+ indexv: indices.v,
4633+ indexf: indices.f,
4634+ paused: isPaused(),
4635+ overview: isOverview()
4636+ };
4637+
4638+ }
4639+
4640+ /**
4641+ * Restores the presentation to the given state.
4642+ *
4643+ * @param {object} state As generated by getState()
4644+ * @see {@link getState} generates the parameter `state`
4645+ */
4646+ function setState( state ) {
4647+
4648+ if( typeof state === 'object' ) {
4649+ slide( deserialize( state.indexh ), deserialize( state.indexv ), deserialize( state.indexf ) );
4650+
4651+ var pausedFlag = deserialize( state.paused ),
4652+ overviewFlag = deserialize( state.overview );
4653+
4654+ if( typeof pausedFlag === 'boolean' && pausedFlag !== isPaused() ) {
4655+ togglePause( pausedFlag );
4656+ }
4657+
4658+ if( typeof overviewFlag === 'boolean' && overviewFlag !== isOverview() ) {
4659+ toggleOverview( overviewFlag );
4660+ }
4661+ }
4662+
4663+ }
4664+
4665+ /**
4666+ * Return a sorted fragments list, ordered by an increasing
4667+ * "data-fragment-index" attribute.
4668+ *
4669+ * Fragments will be revealed in the order that they are returned by
4670+ * this function, so you can use the index attributes to control the
4671+ * order of fragment appearance.
4672+ *
4673+ * To maintain a sensible default fragment order, fragments are presumed
4674+ * to be passed in document order. This function adds a "fragment-index"
4675+ * attribute to each node if such an attribute is not already present,
4676+ * and sets that attribute to an integer value which is the position of
4677+ * the fragment within the fragments list.
4678+ *
4679+ * @param {object[]|*} fragments
4680+ * @param {boolean} grouped If true the returned array will contain
4681+ * nested arrays for all fragments with the same index
4682+ * @return {object[]} sorted Sorted array of fragments
4683+ */
4684+ function sortFragments( fragments, grouped ) {
4685+
4686+ fragments = toArray( fragments );
4687+
4688+ var ordered = [],
4689+ unordered = [],
4690+ sorted = [];
4691+
4692+ // Group ordered and unordered elements
4693+ fragments.forEach( function( fragment, i ) {
4694+ if( fragment.hasAttribute( 'data-fragment-index' ) ) {
4695+ var index = parseInt( fragment.getAttribute( 'data-fragment-index' ), 10 );
4696+
4697+ if( !ordered[index] ) {
4698+ ordered[index] = [];
4699+ }
4700+
4701+ ordered[index].push( fragment );
4702+ }
4703+ else {
4704+ unordered.push( [ fragment ] );
4705+ }
4706+ } );
4707+
4708+ // Append fragments without explicit indices in their
4709+ // DOM order
4710+ ordered = ordered.concat( unordered );
4711+
4712+ // Manually count the index up per group to ensure there
4713+ // are no gaps
4714+ var index = 0;
4715+
4716+ // Push all fragments in their sorted order to an array,
4717+ // this flattens the groups
4718+ ordered.forEach( function( group ) {
4719+ group.forEach( function( fragment ) {
4720+ sorted.push( fragment );
4721+ fragment.setAttribute( 'data-fragment-index', index );
4722+ } );
4723+
4724+ index ++;
4725+ } );
4726+
4727+ return grouped === true ? ordered : sorted;
4728+
4729+ }
4730+
4731+ /**
4732+ * Refreshes the fragments on the current slide so that they
4733+ * have the appropriate classes (.visible + .current-fragment).
4734+ *
4735+ * @param {number} [index] The index of the current fragment
4736+ * @param {array} [fragments] Array containing all fragments
4737+ * in the current slide
4738+ *
4739+ * @return {{shown: array, hidden: array}}
4740+ */
4741+ function updateFragments( index, fragments ) {
4742+
4743+ var changedFragments = {
4744+ shown: [],
4745+ hidden: []
4746+ };
4747+
4748+ if( currentSlide && config.fragments ) {
4749+
4750+ fragments = fragments || sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
4751+
4752+ if( fragments.length ) {
4753+
4754+ if( typeof index !== 'number' ) {
4755+ var currentFragment = sortFragments( currentSlide.querySelectorAll( '.fragment.visible' ) ).pop();
4756+ if( currentFragment ) {
4757+ index = parseInt( currentFragment.getAttribute( 'data-fragment-index' ) || 0, 10 );
4758+ }
4759+ }
4760+
4761+ toArray( fragments ).forEach( function( el, i ) {
4762+
4763+ if( el.hasAttribute( 'data-fragment-index' ) ) {
4764+ i = parseInt( el.getAttribute( 'data-fragment-index' ), 10 );
4765+ }
4766+
4767+ // Visible fragments
4768+ if( i <= index ) {
4769+ if( !el.classList.contains( 'visible' ) ) changedFragments.shown.push( el );
4770+ el.classList.add( 'visible' );
4771+ el.classList.remove( 'current-fragment' );
4772+
4773+ // Announce the fragments one by one to the Screen Reader
4774+ dom.statusDiv.textContent = getStatusText( el );
4775+
4776+ if( i === index ) {
4777+ el.classList.add( 'current-fragment' );
4778+ startEmbeddedContent( el );
4779+ }
4780+ }
4781+ // Hidden fragments
4782+ else {
4783+ if( el.classList.contains( 'visible' ) ) changedFragments.hidden.push( el );
4784+ el.classList.remove( 'visible' );
4785+ el.classList.remove( 'current-fragment' );
4786+ }
4787+
4788+ } );
4789+
4790+ }
4791+
4792+ }
4793+
4794+ return changedFragments;
4795+
4796+ }
4797+
4798+ /**
4799+ * Navigate to the specified slide fragment.
4800+ *
4801+ * @param {?number} index The index of the fragment that
4802+ * should be shown, -1 means all are invisible
4803+ * @param {number} offset Integer offset to apply to the
4804+ * fragment index
4805+ *
4806+ * @return {boolean} true if a change was made in any
4807+ * fragments visibility as part of this call
4808+ */
4809+ function navigateFragment( index, offset ) {
4810+
4811+ if( currentSlide && config.fragments ) {
4812+
4813+ var fragments = sortFragments( currentSlide.querySelectorAll( '.fragment' ) );
4814+ if( fragments.length ) {
4815+
4816+ // If no index is specified, find the current
4817+ if( typeof index !== 'number' ) {
4818+ var lastVisibleFragment = sortFragments( currentSlide.querySelectorAll( '.fragment.visible' ) ).pop();
4819+
4820+ if( lastVisibleFragment ) {
4821+ index = parseInt( lastVisibleFragment.getAttribute( 'data-fragment-index' ) || 0, 10 );
4822+ }
4823+ else {
4824+ index = -1;
4825+ }
4826+ }
4827+
4828+ // If an offset is specified, apply it to the index
4829+ if( typeof offset === 'number' ) {
4830+ index += offset;
4831+ }
4832+
4833+ var changedFragments = updateFragments( index, fragments );
4834+
4835+ if( changedFragments.hidden.length ) {
4836+ dispatchEvent( 'fragmenthidden', { fragment: changedFragments.hidden[0], fragments: changedFragments.hidden } );
4837+ }
4838+
4839+ if( changedFragments.shown.length ) {
4840+ dispatchEvent( 'fragmentshown', { fragment: changedFragments.shown[0], fragments: changedFragments.shown } );
4841+ }
4842+
4843+ updateControls();
4844+ updateProgress();
4845+
4846+ if( config.fragmentInURL ) {
4847+ writeURL();
4848+ }
4849+
4850+ return !!( changedFragments.shown.length || changedFragments.hidden.length );
4851+
4852+ }
4853+
4854+ }
4855+
4856+ return false;
4857+
4858+ }
4859+
4860+ /**
4861+ * Navigate to the next slide fragment.
4862+ *
4863+ * @return {boolean} true if there was a next fragment,
4864+ * false otherwise
4865+ */
4866+ function nextFragment() {
4867+
4868+ return navigateFragment( null, 1 );
4869+
4870+ }
4871+
4872+ /**
4873+ * Navigate to the previous slide fragment.
4874+ *
4875+ * @return {boolean} true if there was a previous fragment,
4876+ * false otherwise
4877+ */
4878+ function previousFragment() {
4879+
4880+ return navigateFragment( null, -1 );
4881+
4882+ }
4883+
4884+ /**
4885+ * Cues a new automated slide if enabled in the config.
4886+ */
4887+ function cueAutoSlide() {
4888+
4889+ cancelAutoSlide();
4890+
4891+ if( currentSlide && config.autoSlide !== false ) {
4892+
4893+ var fragment = currentSlide.querySelector( '.current-fragment' );
4894+
4895+ // When the slide first appears there is no "current" fragment so
4896+ // we look for a data-autoslide timing on the first fragment
4897+ if( !fragment ) fragment = currentSlide.querySelector( '.fragment' );
4898+
4899+ var fragmentAutoSlide = fragment ? fragment.getAttribute( 'data-autoslide' ) : null;
4900+ var parentAutoSlide = currentSlide.parentNode ? currentSlide.parentNode.getAttribute( 'data-autoslide' ) : null;
4901+ var slideAutoSlide = currentSlide.getAttribute( 'data-autoslide' );
4902+
4903+ // Pick value in the following priority order:
4904+ // 1. Current fragment's data-autoslide
4905+ // 2. Current slide's data-autoslide
4906+ // 3. Parent slide's data-autoslide
4907+ // 4. Global autoSlide setting
4908+ if( fragmentAutoSlide ) {
4909+ autoSlide = parseInt( fragmentAutoSlide, 10 );
4910+ }
4911+ else if( slideAutoSlide ) {
4912+ autoSlide = parseInt( slideAutoSlide, 10 );
4913+ }
4914+ else if( parentAutoSlide ) {
4915+ autoSlide = parseInt( parentAutoSlide, 10 );
4916+ }
4917+ else {
4918+ autoSlide = config.autoSlide;
4919+ }
4920+
4921+ // If there are media elements with data-autoplay,
4922+ // automatically set the autoSlide duration to the
4923+ // length of that media. Not applicable if the slide
4924+ // is divided up into fragments.
4925+ // playbackRate is accounted for in the duration.
4926+ if( currentSlide.querySelectorAll( '.fragment' ).length === 0 ) {
4927+ toArray( currentSlide.querySelectorAll( 'video, audio' ) ).forEach( function( el ) {
4928+ if( el.hasAttribute( 'data-autoplay' ) ) {
4929+ if( autoSlide && (el.duration * 1000 / el.playbackRate ) > autoSlide ) {
4930+ autoSlide = ( el.duration * 1000 / el.playbackRate ) + 1000;
4931+ }
4932+ }
4933+ } );
4934+ }
4935+
4936+ // Cue the next auto-slide if:
4937+ // - There is an autoSlide value
4938+ // - Auto-sliding isn't paused by the user
4939+ // - The presentation isn't paused
4940+ // - The overview isn't active
4941+ // - The presentation isn't over
4942+ if( autoSlide && !autoSlidePaused && !isPaused() && !isOverview() && ( !Reveal.isLastSlide() || availableFragments().next || config.loop === true ) ) {
4943+ autoSlideTimeout = setTimeout( function() {
4944+ typeof config.autoSlideMethod === 'function' ? config.autoSlideMethod() : navigateNext();
4945+ cueAutoSlide();
4946+ }, autoSlide );
4947+ autoSlideStartTime = Date.now();
4948+ }
4949+
4950+ if( autoSlidePlayer ) {
4951+ autoSlidePlayer.setPlaying( autoSlideTimeout !== -1 );
4952+ }
4953+
4954+ }
4955+
4956+ }
4957+
4958+ /**
4959+ * Cancels any ongoing request to auto-slide.
4960+ */
4961+ function cancelAutoSlide() {
4962+
4963+ clearTimeout( autoSlideTimeout );
4964+ autoSlideTimeout = -1;
4965+
4966+ }
4967+
4968+ function pauseAutoSlide() {
4969+
4970+ if( autoSlide && !autoSlidePaused ) {
4971+ autoSlidePaused = true;
4972+ dispatchEvent( 'autoslidepaused' );
4973+ clearTimeout( autoSlideTimeout );
4974+
4975+ if( autoSlidePlayer ) {
4976+ autoSlidePlayer.setPlaying( false );
4977+ }
4978+ }
4979+
4980+ }
4981+
4982+ function resumeAutoSlide() {
4983+
4984+ if( autoSlide && autoSlidePaused ) {
4985+ autoSlidePaused = false;
4986+ dispatchEvent( 'autoslideresumed' );
4987+ cueAutoSlide();
4988+ }
4989+
4990+ }
4991+
4992+ function navigateLeft() {
4993+
4994+ // Reverse for RTL
4995+ if( config.rtl ) {
4996+ if( ( isOverview() || nextFragment() === false ) && availableRoutes().left ) {
4997+ slide( indexh + 1, config.navigationMode === 'grid' ? indexv : undefined );
4998+ }
4999+ }
5000+ // Normal navigation
5001+ else if( ( isOverview() || previousFragment() === false ) && availableRoutes().left ) {
5002+ slide( indexh - 1, config.navigationMode === 'grid' ? indexv : undefined );
5003+ }
5004+
5005+ }
5006+
5007+ function navigateRight() {
5008+
5009+ hasNavigatedRight = true;
5010+
5011+ // Reverse for RTL
5012+ if( config.rtl ) {
5013+ if( ( isOverview() || previousFragment() === false ) && availableRoutes().right ) {
5014+ slide( indexh - 1, config.navigationMode === 'grid' ? indexv : undefined );
5015+ }
5016+ }
5017+ // Normal navigation
5018+ else if( ( isOverview() || nextFragment() === false ) && availableRoutes().right ) {
5019+ slide( indexh + 1, config.navigationMode === 'grid' ? indexv : undefined );
5020+ }
5021+
5022+ }
5023+
5024+ function navigateUp() {
5025+
5026+ // Prioritize hiding fragments
5027+ if( ( isOverview() || previousFragment() === false ) && availableRoutes().up ) {
5028+ slide( indexh, indexv - 1 );
5029+ }
5030+
5031+ }
5032+
5033+ function navigateDown() {
5034+
5035+ hasNavigatedDown = true;
5036+
5037+ // Prioritize revealing fragments
5038+ if( ( isOverview() || nextFragment() === false ) && availableRoutes().down ) {
5039+ slide( indexh, indexv + 1 );
5040+ }
5041+
5042+ }
5043+
5044+ /**
5045+ * Navigates backwards, prioritized in the following order:
5046+ * 1) Previous fragment
5047+ * 2) Previous vertical slide
5048+ * 3) Previous horizontal slide
5049+ */
5050+ function navigatePrev() {
5051+
5052+ // Prioritize revealing fragments
5053+ if( previousFragment() === false ) {
5054+ if( availableRoutes().up ) {
5055+ navigateUp();
5056+ }
5057+ else {
5058+ // Fetch the previous horizontal slide, if there is one
5059+ var previousSlide;
5060+
5061+ if( config.rtl ) {
5062+ previousSlide = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR + '.future' ) ).pop();
5063+ }
5064+ else {
5065+ previousSlide = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR + '.past' ) ).pop();
5066+ }
5067+
5068+ if( previousSlide ) {
5069+ var v = ( previousSlide.querySelectorAll( 'section' ).length - 1 ) || undefined;
5070+ var h = indexh - 1;
5071+ slide( h, v );
5072+ }
5073+ }
5074+ }
5075+
5076+ }
5077+
5078+ /**
5079+ * The reverse of #navigatePrev().
5080+ */
5081+ function navigateNext() {
5082+
5083+ hasNavigatedRight = true;
5084+ hasNavigatedDown = true;
5085+
5086+ // Prioritize revealing fragments
5087+ if( nextFragment() === false ) {
5088+
5089+ var routes = availableRoutes();
5090+
5091+ // When looping is enabled `routes.down` is always available
5092+ // so we need a separate check for when we've reached the
5093+ // end of a stack and should move horizontally
5094+ if( routes.down && routes.right && config.loop && Reveal.isLastVerticalSlide( currentSlide ) ) {
5095+ routes.down = false;
5096+ }
5097+
5098+ if( routes.down ) {
5099+ navigateDown();
5100+ }
5101+ else if( config.rtl ) {
5102+ navigateLeft();
5103+ }
5104+ else {
5105+ navigateRight();
5106+ }
5107+ }
5108+
5109+ }
5110+
5111+ /**
5112+ * Checks if the target element prevents the triggering of
5113+ * swipe navigation.
5114+ */
5115+ function isSwipePrevented( target ) {
5116+
5117+ while( target && typeof target.hasAttribute === 'function' ) {
5118+ if( target.hasAttribute( 'data-prevent-swipe' ) ) return true;
5119+ target = target.parentNode;
5120+ }
5121+
5122+ return false;
5123+
5124+ }
5125+
5126+
5127+ // --------------------------------------------------------------------//
5128+ // ----------------------------- EVENTS -------------------------------//
5129+ // --------------------------------------------------------------------//
5130+
5131+ /**
5132+ * Called by all event handlers that are based on user
5133+ * input.
5134+ *
5135+ * @param {object} [event]
5136+ */
5137+ function onUserInput( event ) {
5138+
5139+ if( config.autoSlideStoppable ) {
5140+ pauseAutoSlide();
5141+ }
5142+
5143+ }
5144+
5145+ /**
5146+ * Called whenever there is mouse input at the document level
5147+ * to determine if the cursor is active or not.
5148+ *
5149+ * @param {object} event
5150+ */
5151+ function onDocumentCursorActive( event ) {
5152+
5153+ showCursor();
5154+
5155+ clearTimeout( cursorInactiveTimeout );
5156+
5157+ cursorInactiveTimeout = setTimeout( hideCursor, config.hideCursorTime );
5158+
5159+ }
5160+
5161+ /**
5162+ * Handler for the document level 'keypress' event.
5163+ *
5164+ * @param {object} event
5165+ */
5166+ function onDocumentKeyPress( event ) {
5167+
5168+ // Check if the pressed key is question mark
5169+ if( event.shiftKey && event.charCode === 63 ) {
5170+ toggleHelp();
5171+ }
5172+
5173+ }
5174+
5175+ /**
5176+ * Handler for the document level 'keydown' event.
5177+ *
5178+ * @param {object} event
5179+ */
5180+ function onDocumentKeyDown( event ) {
5181+
5182+ // If there's a condition specified and it returns false,
5183+ // ignore this event
5184+ if( typeof config.keyboardCondition === 'function' && config.keyboardCondition(event) === false ) {
5185+ return true;
5186+ }
5187+
5188+ // Shorthand
5189+ var keyCode = event.keyCode;
5190+
5191+ // Remember if auto-sliding was paused so we can toggle it
5192+ var autoSlideWasPaused = autoSlidePaused;
5193+
5194+ onUserInput( event );
5195+
5196+ // Is there a focused element that could be using the keyboard?
5197+ var activeElementIsCE = document.activeElement && document.activeElement.contentEditable !== 'inherit';
5198+ var activeElementIsInput = document.activeElement && document.activeElement.tagName && /input|textarea/i.test( document.activeElement.tagName );
5199+ var activeElementIsNotes = document.activeElement && document.activeElement.className && /speaker-notes/i.test( document.activeElement.className);
5200+
5201+ // Whitelist specific modified + keycode combinations
5202+ var prevSlideShortcut = event.shiftKey && event.keyCode === 32;
5203+ var firstSlideShortcut = event.shiftKey && keyCode === 37;
5204+ var lastSlideShortcut = event.shiftKey && keyCode === 39;
5205+
5206+ // Prevent all other events when a modifier is pressed
5207+ var unusedModifier = !prevSlideShortcut && !firstSlideShortcut && !lastSlideShortcut &&
5208+ ( event.shiftKey || event.altKey || event.ctrlKey || event.metaKey );
5209+
5210+ // Disregard the event if there's a focused element or a
5211+ // keyboard modifier key is present
5212+ if( activeElementIsCE || activeElementIsInput || activeElementIsNotes || unusedModifier ) return;
5213+
5214+ // While paused only allow resume keyboard events; 'b', 'v', '.'
5215+ var resumeKeyCodes = [66,86,190,191];
5216+ var key;
5217+
5218+ // Custom key bindings for togglePause should be able to resume
5219+ if( typeof config.keyboard === 'object' ) {
5220+ for( key in config.keyboard ) {
5221+ if( config.keyboard[key] === 'togglePause' ) {
5222+ resumeKeyCodes.push( parseInt( key, 10 ) );
5223+ }
5224+ }
5225+ }
5226+
5227+ if( isPaused() && resumeKeyCodes.indexOf( keyCode ) === -1 ) {
5228+ return false;
5229+ }
5230+
5231+ // Use linear navigation if we're configured to OR if
5232+ // the presentation is one-dimensional
5233+ var useLinearMode = config.navigationMode === 'linear' || !hasHorizontalSlides() || !hasVerticalSlides();
5234+
5235+ var triggered = false;
5236+
5237+ // 1. User defined key bindings
5238+ if( typeof config.keyboard === 'object' ) {
5239+
5240+ for( key in config.keyboard ) {
5241+
5242+ // Check if this binding matches the pressed key
5243+ if( parseInt( key, 10 ) === keyCode ) {
5244+
5245+ var value = config.keyboard[ key ];
5246+
5247+ // Callback function
5248+ if( typeof value === 'function' ) {
5249+ value.apply( null, [ event ] );
5250+ }
5251+ // String shortcuts to reveal.js API
5252+ else if( typeof value === 'string' && typeof Reveal[ value ] === 'function' ) {
5253+ Reveal[ value ].call();
5254+ }
5255+
5256+ triggered = true;
5257+
5258+ }
5259+
5260+ }
5261+
5262+ }
5263+
5264+ // 2. Registered custom key bindings
5265+ if( triggered === false ) {
5266+
5267+ for( key in registeredKeyBindings ) {
5268+
5269+ // Check if this binding matches the pressed key
5270+ if( parseInt( key, 10 ) === keyCode ) {
5271+
5272+ var action = registeredKeyBindings[ key ].callback;
5273+
5274+ // Callback function
5275+ if( typeof action === 'function' ) {
5276+ action.apply( null, [ event ] );
5277+ }
5278+ // String shortcuts to reveal.js API
5279+ else if( typeof action === 'string' && typeof Reveal[ action ] === 'function' ) {
5280+ Reveal[ action ].call();
5281+ }
5282+
5283+ triggered = true;
5284+ }
5285+ }
5286+ }
5287+
5288+ // 3. System defined key bindings
5289+ if( triggered === false ) {
5290+
5291+ // Assume true and try to prove false
5292+ triggered = true;
5293+
5294+ // P, PAGE UP
5295+ if( keyCode === 80 || keyCode === 33 ) {
5296+ navigatePrev();
5297+ }
5298+ // N, PAGE DOWN
5299+ else if( keyCode === 78 || keyCode === 34 ) {
5300+ navigateNext();
5301+ }
5302+ // H, LEFT
5303+ else if( keyCode === 72 || keyCode === 37 ) {
5304+ if( firstSlideShortcut ) {
5305+ slide( 0 );
5306+ }
5307+ else if( !isOverview() && useLinearMode ) {
5308+ navigatePrev();
5309+ }
5310+ else {
5311+ navigateLeft();
5312+ }
5313+ }
5314+ // L, RIGHT
5315+ else if( keyCode === 76 || keyCode === 39 ) {
5316+ if( lastSlideShortcut ) {
5317+ slide( Number.MAX_VALUE );
5318+ }
5319+ else if( !isOverview() && useLinearMode ) {
5320+ navigateNext();
5321+ }
5322+ else {
5323+ navigateRight();
5324+ }
5325+ }
5326+ // K, UP
5327+ else if( keyCode === 75 || keyCode === 38 ) {
5328+ if( !isOverview() && useLinearMode ) {
5329+ navigatePrev();
5330+ }
5331+ else {
5332+ navigateUp();
5333+ }
5334+ }
5335+ // J, DOWN
5336+ else if( keyCode === 74 || keyCode === 40 ) {
5337+ if( !isOverview() && useLinearMode ) {
5338+ navigateNext();
5339+ }
5340+ else {
5341+ navigateDown();
5342+ }
5343+ }
5344+ // HOME
5345+ else if( keyCode === 36 ) {
5346+ slide( 0 );
5347+ }
5348+ // END
5349+ else if( keyCode === 35 ) {
5350+ slide( Number.MAX_VALUE );
5351+ }
5352+ // SPACE
5353+ else if( keyCode === 32 ) {
5354+ if( isOverview() ) {
5355+ deactivateOverview();
5356+ }
5357+ if( event.shiftKey ) {
5358+ navigatePrev();
5359+ }
5360+ else {
5361+ navigateNext();
5362+ }
5363+ }
5364+ // TWO-SPOT, SEMICOLON, B, V, PERIOD, LOGITECH PRESENTER TOOLS "BLACK SCREEN" BUTTON
5365+ else if( keyCode === 58 || keyCode === 59 || keyCode === 66 || keyCode === 86 || keyCode === 190 || keyCode === 191 ) {
5366+ togglePause();
5367+ }
5368+ // F
5369+ else if( keyCode === 70 ) {
5370+ enterFullscreen();
5371+ }
5372+ // A
5373+ else if( keyCode === 65 ) {
5374+ if ( config.autoSlideStoppable ) {
5375+ toggleAutoSlide( autoSlideWasPaused );
5376+ }
5377+ }
5378+ else {
5379+ triggered = false;
5380+ }
5381+
5382+ }
5383+
5384+ // If the input resulted in a triggered action we should prevent
5385+ // the browsers default behavior
5386+ if( triggered ) {
5387+ event.preventDefault && event.preventDefault();
5388+ }
5389+ // ESC or O key
5390+ else if ( ( keyCode === 27 || keyCode === 79 ) && features.transforms3d ) {
5391+ if( dom.overlay ) {
5392+ closeOverlay();
5393+ }
5394+ else {
5395+ toggleOverview();
5396+ }
5397+
5398+ event.preventDefault && event.preventDefault();
5399+ }
5400+
5401+ // If auto-sliding is enabled we need to cue up
5402+ // another timeout
5403+ cueAutoSlide();
5404+
5405+ }
5406+
5407+ /**
5408+ * Handler for the 'touchstart' event, enables support for
5409+ * swipe and pinch gestures.
5410+ *
5411+ * @param {object} event
5412+ */
5413+ function onTouchStart( event ) {
5414+
5415+ if( isSwipePrevented( event.target ) ) return true;
5416+
5417+ touch.startX = event.touches[0].clientX;
5418+ touch.startY = event.touches[0].clientY;
5419+ touch.startCount = event.touches.length;
5420+
5421+ }
5422+
5423+ /**
5424+ * Handler for the 'touchmove' event.
5425+ *
5426+ * @param {object} event
5427+ */
5428+ function onTouchMove( event ) {
5429+
5430+ if( isSwipePrevented( event.target ) ) return true;
5431+
5432+ // Each touch should only trigger one action
5433+ if( !touch.captured ) {
5434+ onUserInput( event );
5435+
5436+ var currentX = event.touches[0].clientX;
5437+ var currentY = event.touches[0].clientY;
5438+
5439+ // There was only one touch point, look for a swipe
5440+ if( event.touches.length === 1 && touch.startCount !== 2 ) {
5441+
5442+ var deltaX = currentX - touch.startX,
5443+ deltaY = currentY - touch.startY;
5444+
5445+ if( deltaX > touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
5446+ touch.captured = true;
5447+ if( config.navigationMode === 'linear' ) {
5448+ if( config.rtl ) {
5449+ navigateNext();
5450+ }
5451+ else {
5452+ navigatePrev();
5453+ }
5454+ }
5455+ else {
5456+ navigateLeft();
5457+ }
5458+ }
5459+ else if( deltaX < -touch.threshold && Math.abs( deltaX ) > Math.abs( deltaY ) ) {
5460+ touch.captured = true;
5461+ if( config.navigationMode === 'linear' ) {
5462+ if( config.rtl ) {
5463+ navigatePrev();
5464+ }
5465+ else {
5466+ navigateNext();
5467+ }
5468+ }
5469+ else {
5470+ navigateRight();
5471+ }
5472+ }
5473+ else if( deltaY > touch.threshold ) {
5474+ touch.captured = true;
5475+ if( config.navigationMode === 'linear' ) {
5476+ navigatePrev();
5477+ }
5478+ else {
5479+ navigateUp();
5480+ }
5481+ }
5482+ else if( deltaY < -touch.threshold ) {
5483+ touch.captured = true;
5484+ if( config.navigationMode === 'linear' ) {
5485+ navigateNext();
5486+ }
5487+ else {
5488+ navigateDown();
5489+ }
5490+ }
5491+
5492+ // If we're embedded, only block touch events if they have
5493+ // triggered an action
5494+ if( config.embedded ) {
5495+ if( touch.captured || isVerticalSlide( currentSlide ) ) {
5496+ event.preventDefault();
5497+ }
5498+ }
5499+ // Not embedded? Block them all to avoid needless tossing
5500+ // around of the viewport in iOS
5501+ else {
5502+ event.preventDefault();
5503+ }
5504+
5505+ }
5506+ }
5507+ // There's a bug with swiping on some Android devices unless
5508+ // the default action is always prevented
5509+ else if( UA.match( /android/gi ) ) {
5510+ event.preventDefault();
5511+ }
5512+
5513+ }
5514+
5515+ /**
5516+ * Handler for the 'touchend' event.
5517+ *
5518+ * @param {object} event
5519+ */
5520+ function onTouchEnd( event ) {
5521+
5522+ touch.captured = false;
5523+
5524+ }
5525+
5526+ /**
5527+ * Convert pointer down to touch start.
5528+ *
5529+ * @param {object} event
5530+ */
5531+ function onPointerDown( event ) {
5532+
5533+ if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
5534+ event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
5535+ onTouchStart( event );
5536+ }
5537+
5538+ }
5539+
5540+ /**
5541+ * Convert pointer move to touch move.
5542+ *
5543+ * @param {object} event
5544+ */
5545+ function onPointerMove( event ) {
5546+
5547+ if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
5548+ event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
5549+ onTouchMove( event );
5550+ }
5551+
5552+ }
5553+
5554+ /**
5555+ * Convert pointer up to touch end.
5556+ *
5557+ * @param {object} event
5558+ */
5559+ function onPointerUp( event ) {
5560+
5561+ if( event.pointerType === event.MSPOINTER_TYPE_TOUCH || event.pointerType === "touch" ) {
5562+ event.touches = [{ clientX: event.clientX, clientY: event.clientY }];
5563+ onTouchEnd( event );
5564+ }
5565+
5566+ }
5567+
5568+ /**
5569+ * Handles mouse wheel scrolling, throttled to avoid skipping
5570+ * multiple slides.
5571+ *
5572+ * @param {object} event
5573+ */
5574+ function onDocumentMouseScroll( event ) {
5575+
5576+ if( Date.now() - lastMouseWheelStep > 600 ) {
5577+
5578+ lastMouseWheelStep = Date.now();
5579+
5580+ var delta = event.detail || -event.wheelDelta;
5581+ if( delta > 0 ) {
5582+ navigateNext();
5583+ }
5584+ else if( delta < 0 ) {
5585+ navigatePrev();
5586+ }
5587+
5588+ }
5589+
5590+ }
5591+
5592+ /**
5593+ * Clicking on the progress bar results in a navigation to the
5594+ * closest approximate horizontal slide using this equation:
5595+ *
5596+ * ( clickX / presentationWidth ) * numberOfSlides
5597+ *
5598+ * @param {object} event
5599+ */
5600+ function onProgressClicked( event ) {
5601+
5602+ onUserInput( event );
5603+
5604+ event.preventDefault();
5605+
5606+ var slidesTotal = toArray( dom.wrapper.querySelectorAll( HORIZONTAL_SLIDES_SELECTOR ) ).length;
5607+ var slideIndex = Math.floor( ( event.clientX / dom.wrapper.offsetWidth ) * slidesTotal );
5608+
5609+ if( config.rtl ) {
5610+ slideIndex = slidesTotal - slideIndex;
5611+ }
5612+
5613+ slide( slideIndex );
5614+
5615+ }
5616+
5617+ /**
5618+ * Event handler for navigation control buttons.
5619+ */
5620+ function onNavigateLeftClicked( event ) { event.preventDefault(); onUserInput(); config.navigationMode === 'linear' ? navigatePrev() : navigateLeft(); }
5621+ function onNavigateRightClicked( event ) { event.preventDefault(); onUserInput(); config.navigationMode === 'linear' ? navigateNext() : navigateRight(); }
5622+ function onNavigateUpClicked( event ) { event.preventDefault(); onUserInput(); navigateUp(); }
5623+ function onNavigateDownClicked( event ) { event.preventDefault(); onUserInput(); navigateDown(); }
5624+ function onNavigatePrevClicked( event ) { event.preventDefault(); onUserInput(); navigatePrev(); }
5625+ function onNavigateNextClicked( event ) { event.preventDefault(); onUserInput(); navigateNext(); }
5626+
5627+ /**
5628+ * Handler for the window level 'hashchange' event.
5629+ *
5630+ * @param {object} [event]
5631+ */
5632+ function onWindowHashChange( event ) {
5633+
5634+ readURL();
5635+
5636+ }
5637+
5638+ /**
5639+ * Handler for the window level 'resize' event.
5640+ *
5641+ * @param {object} [event]
5642+ */
5643+ function onWindowResize( event ) {
5644+
5645+ layout();
5646+
5647+ }
5648+
5649+ /**
5650+ * Handle for the window level 'visibilitychange' event.
5651+ *
5652+ * @param {object} [event]
5653+ */
5654+ function onPageVisibilityChange( event ) {
5655+
5656+ var isHidden = document.webkitHidden ||
5657+ document.msHidden ||
5658+ document.hidden;
5659+
5660+ // If, after clicking a link or similar and we're coming back,
5661+ // focus the document.body to ensure we can use keyboard shortcuts
5662+ if( isHidden === false && document.activeElement !== document.body ) {
5663+ // Not all elements support .blur() - SVGs among them.
5664+ if( typeof document.activeElement.blur === 'function' ) {
5665+ document.activeElement.blur();
5666+ }
5667+ document.body.focus();
5668+ }
5669+
5670+ }
5671+
5672+ /**
5673+ * Invoked when a slide is and we're in the overview.
5674+ *
5675+ * @param {object} event
5676+ */
5677+ function onOverviewSlideClicked( event ) {
5678+
5679+ // TODO There's a bug here where the event listeners are not
5680+ // removed after deactivating the overview.
5681+ if( eventsAreBound && isOverview() ) {
5682+ event.preventDefault();
5683+
5684+ var element = event.target;
5685+
5686+ while( element && !element.nodeName.match( /section/gi ) ) {
5687+ element = element.parentNode;
5688+ }
5689+
5690+ if( element && !element.classList.contains( 'disabled' ) ) {
5691+
5692+ deactivateOverview();
5693+
5694+ if( element.nodeName.match( /section/gi ) ) {
5695+ var h = parseInt( element.getAttribute( 'data-index-h' ), 10 ),
5696+ v = parseInt( element.getAttribute( 'data-index-v' ), 10 );
5697+
5698+ slide( h, v );
5699+ }
5700+
5701+ }
5702+ }
5703+
5704+ }
5705+
5706+ /**
5707+ * Handles clicks on links that are set to preview in the
5708+ * iframe overlay.
5709+ *
5710+ * @param {object} event
5711+ */
5712+ function onPreviewLinkClicked( event ) {
5713+
5714+ if( event.currentTarget && event.currentTarget.hasAttribute( 'href' ) ) {
5715+ var url = event.currentTarget.getAttribute( 'href' );
5716+ if( url ) {
5717+ showPreview( url );
5718+ event.preventDefault();
5719+ }
5720+ }
5721+
5722+ }
5723+
5724+ /**
5725+ * Handles click on the auto-sliding controls element.
5726+ *
5727+ * @param {object} [event]
5728+ */
5729+ function onAutoSlidePlayerClick( event ) {
5730+
5731+ // Replay
5732+ if( Reveal.isLastSlide() && config.loop === false ) {
5733+ slide( 0, 0 );
5734+ resumeAutoSlide();
5735+ }
5736+ // Resume
5737+ else if( autoSlidePaused ) {
5738+ resumeAutoSlide();
5739+ }
5740+ // Pause
5741+ else {
5742+ pauseAutoSlide();
5743+ }
5744+
5745+ }
5746+
5747+
5748+ // --------------------------------------------------------------------//
5749+ // ------------------------ PLAYBACK COMPONENT ------------------------//
5750+ // --------------------------------------------------------------------//
5751+
5752+
5753+ /**
5754+ * Constructor for the playback component, which displays
5755+ * play/pause/progress controls.
5756+ *
5757+ * @param {HTMLElement} container The component will append
5758+ * itself to this
5759+ * @param {function} progressCheck A method which will be
5760+ * called frequently to get the current progress on a range
5761+ * of 0-1
5762+ */
5763+ function Playback( container, progressCheck ) {
5764+
5765+ // Cosmetics
5766+ this.diameter = 100;
5767+ this.diameter2 = this.diameter/2;
5768+ this.thickness = 6;
5769+
5770+ // Flags if we are currently playing
5771+ this.playing = false;
5772+
5773+ // Current progress on a 0-1 range
5774+ this.progress = 0;
5775+
5776+ // Used to loop the animation smoothly
5777+ this.progressOffset = 1;
5778+
5779+ this.container = container;
5780+ this.progressCheck = progressCheck;
5781+
5782+ this.canvas = document.createElement( 'canvas' );
5783+ this.canvas.className = 'playback';
5784+ this.canvas.width = this.diameter;
5785+ this.canvas.height = this.diameter;
5786+ this.canvas.style.width = this.diameter2 + 'px';
5787+ this.canvas.style.height = this.diameter2 + 'px';
5788+ this.context = this.canvas.getContext( '2d' );
5789+
5790+ this.container.appendChild( this.canvas );
5791+
5792+ this.render();
5793+
5794+ }
5795+
5796+ /**
5797+ * @param value
5798+ */
5799+ Playback.prototype.setPlaying = function( value ) {
5800+
5801+ var wasPlaying = this.playing;
5802+
5803+ this.playing = value;
5804+
5805+ // Start repainting if we weren't already
5806+ if( !wasPlaying && this.playing ) {
5807+ this.animate();
5808+ }
5809+ else {
5810+ this.render();
5811+ }
5812+
5813+ };
5814+
5815+ Playback.prototype.animate = function() {
5816+
5817+ var progressBefore = this.progress;
5818+
5819+ this.progress = this.progressCheck();
5820+
5821+ // When we loop, offset the progress so that it eases
5822+ // smoothly rather than immediately resetting
5823+ if( progressBefore > 0.8 && this.progress < 0.2 ) {
5824+ this.progressOffset = this.progress;
5825+ }
5826+
5827+ this.render();
5828+
5829+ if( this.playing ) {
5830+ features.requestAnimationFrameMethod.call( window, this.animate.bind( this ) );
5831+ }
5832+
5833+ };
5834+
5835+ /**
5836+ * Renders the current progress and playback state.
5837+ */
5838+ Playback.prototype.render = function() {
5839+
5840+ var progress = this.playing ? this.progress : 0,
5841+ radius = ( this.diameter2 ) - this.thickness,
5842+ x = this.diameter2,
5843+ y = this.diameter2,
5844+ iconSize = 28;
5845+
5846+ // Ease towards 1
5847+ this.progressOffset += ( 1 - this.progressOffset ) * 0.1;
5848+
5849+ var endAngle = ( - Math.PI / 2 ) + ( progress * ( Math.PI * 2 ) );
5850+ var startAngle = ( - Math.PI / 2 ) + ( this.progressOffset * ( Math.PI * 2 ) );
5851+
5852+ this.context.save();
5853+ this.context.clearRect( 0, 0, this.diameter, this.diameter );
5854+
5855+ // Solid background color
5856+ this.context.beginPath();
5857+ this.context.arc( x, y, radius + 4, 0, Math.PI * 2, false );
5858+ this.context.fillStyle = 'rgba( 0, 0, 0, 0.4 )';
5859+ this.context.fill();
5860+
5861+ // Draw progress track
5862+ this.context.beginPath();
5863+ this.context.arc( x, y, radius, 0, Math.PI * 2, false );
5864+ this.context.lineWidth = this.thickness;
5865+ this.context.strokeStyle = 'rgba( 255, 255, 255, 0.2 )';
5866+ this.context.stroke();
5867+
5868+ if( this.playing ) {
5869+ // Draw progress on top of track
5870+ this.context.beginPath();
5871+ this.context.arc( x, y, radius, startAngle, endAngle, false );
5872+ this.context.lineWidth = this.thickness;
5873+ this.context.strokeStyle = '#fff';
5874+ this.context.stroke();
5875+ }
5876+
5877+ this.context.translate( x - ( iconSize / 2 ), y - ( iconSize / 2 ) );
5878+
5879+ // Draw play/pause icons
5880+ if( this.playing ) {
5881+ this.context.fillStyle = '#fff';
5882+ this.context.fillRect( 0, 0, iconSize / 2 - 4, iconSize );
5883+ this.context.fillRect( iconSize / 2 + 4, 0, iconSize / 2 - 4, iconSize );
5884+ }
5885+ else {
5886+ this.context.beginPath();
5887+ this.context.translate( 4, 0 );
5888+ this.context.moveTo( 0, 0 );
5889+ this.context.lineTo( iconSize - 4, iconSize / 2 );
5890+ this.context.lineTo( 0, iconSize );
5891+ this.context.fillStyle = '#fff';
5892+ this.context.fill();
5893+ }
5894+
5895+ this.context.restore();
5896+
5897+ };
5898+
5899+ Playback.prototype.on = function( type, listener ) {
5900+ this.canvas.addEventListener( type, listener, false );
5901+ };
5902+
5903+ Playback.prototype.off = function( type, listener ) {
5904+ this.canvas.removeEventListener( type, listener, false );
5905+ };
5906+
5907+ Playback.prototype.destroy = function() {
5908+
5909+ this.playing = false;
5910+
5911+ if( this.canvas.parentNode ) {
5912+ this.container.removeChild( this.canvas );
5913+ }
5914+
5915+ };
5916+
5917+
5918+ // --------------------------------------------------------------------//
5919+ // ------------------------------- API --------------------------------//
5920+ // --------------------------------------------------------------------//
5921+
5922+
5923+ Reveal = {
5924+ VERSION: VERSION,
5925+
5926+ initialize: initialize,
5927+ configure: configure,
5928+
5929+ sync: sync,
5930+ syncSlide: syncSlide,
5931+ syncFragments: syncFragments,
5932+
5933+ // Navigation methods
5934+ slide: slide,
5935+ left: navigateLeft,
5936+ right: navigateRight,
5937+ up: navigateUp,
5938+ down: navigateDown,
5939+ prev: navigatePrev,
5940+ next: navigateNext,
5941+
5942+ // Fragment methods
5943+ navigateFragment: navigateFragment,
5944+ prevFragment: previousFragment,
5945+ nextFragment: nextFragment,
5946+
5947+ // Deprecated aliases
5948+ navigateTo: slide,
5949+ navigateLeft: navigateLeft,
5950+ navigateRight: navigateRight,
5951+ navigateUp: navigateUp,
5952+ navigateDown: navigateDown,
5953+ navigatePrev: navigatePrev,
5954+ navigateNext: navigateNext,
5955+
5956+ // Forces an update in slide layout
5957+ layout: layout,
5958+
5959+ // Randomizes the order of slides
5960+ shuffle: shuffle,
5961+
5962+ // Returns an object with the available routes as booleans (left/right/top/bottom)
5963+ availableRoutes: availableRoutes,
5964+
5965+ // Returns an object with the available fragments as booleans (prev/next)
5966+ availableFragments: availableFragments,
5967+
5968+ // Toggles a help overlay with keyboard shortcuts
5969+ toggleHelp: toggleHelp,
5970+
5971+ // Toggles the overview mode on/off
5972+ toggleOverview: toggleOverview,
5973+
5974+ // Toggles the "black screen" mode on/off
5975+ togglePause: togglePause,
5976+
5977+ // Toggles the auto slide mode on/off
5978+ toggleAutoSlide: toggleAutoSlide,
5979+
5980+ // State checks
5981+ isOverview: isOverview,
5982+ isPaused: isPaused,
5983+ isAutoSliding: isAutoSliding,
5984+ isSpeakerNotes: isSpeakerNotes,
5985+
5986+ // Slide preloading
5987+ loadSlide: loadSlide,
5988+ unloadSlide: unloadSlide,
5989+
5990+ // Adds or removes all internal event listeners (such as keyboard)
5991+ addEventListeners: addEventListeners,
5992+ removeEventListeners: removeEventListeners,
5993+
5994+ // Facility for persisting and restoring the presentation state
5995+ getState: getState,
5996+ setState: setState,
5997+
5998+ // Presentation progress
5999+ getSlidePastCount: getSlidePastCount,
6000+
6001+ // Presentation progress on range of 0-1
6002+ getProgress: getProgress,
6003+
6004+ // Returns the indices of the current, or specified, slide
6005+ getIndices: getIndices,
6006+
6007+ // Returns an Array of all slides
6008+ getSlides: getSlides,
6009+
6010+ // Returns an Array of objects representing the attributes on
6011+ // the slides
6012+ getSlidesAttributes: getSlidesAttributes,
6013+
6014+ // Returns the total number of slides
6015+ getTotalSlides: getTotalSlides,
6016+
6017+ // Returns the slide element at the specified index
6018+ getSlide: getSlide,
6019+
6020+ // Returns the slide background element at the specified index
6021+ getSlideBackground: getSlideBackground,
6022+
6023+ // Returns the speaker notes string for a slide, or null
6024+ getSlideNotes: getSlideNotes,
6025+
6026+ // Returns an array with all horizontal/vertical slides in the deck
6027+ getHorizontalSlides: getHorizontalSlides,
6028+ getVerticalSlides: getVerticalSlides,
6029+
6030+ // Checks if the presentation contains two or more
6031+ // horizontal/vertical slides
6032+ hasHorizontalSlides: hasHorizontalSlides,
6033+ hasVerticalSlides: hasVerticalSlides,
6034+
6035+ // Returns the previous slide element, may be null
6036+ getPreviousSlide: function() {
6037+ return previousSlide;
6038+ },
6039+
6040+ // Returns the current slide element
6041+ getCurrentSlide: function() {
6042+ return currentSlide;
6043+ },
6044+
6045+ // Returns the current scale of the presentation content
6046+ getScale: function() {
6047+ return scale;
6048+ },
6049+
6050+ // Returns the current configuration object
6051+ getConfig: function() {
6052+ return config;
6053+ },
6054+
6055+ // Helper method, retrieves query string as a key/value hash
6056+ getQueryHash: function() {
6057+ var query = {};
6058+
6059+ location.search.replace( /[A-Z0-9]+?=([\w\.%-]*)/gi, function(a) {
6060+ query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
6061+ } );
6062+
6063+ // Basic deserialization
6064+ for( var i in query ) {
6065+ var value = query[ i ];
6066+
6067+ query[ i ] = deserialize( unescape( value ) );
6068+ }
6069+
6070+ return query;
6071+ },
6072+
6073+ // Returns the top-level DOM element
6074+ getRevealElement: function() {
6075+ return dom.wrapper || document.querySelector( '.reveal' );
6076+ },
6077+
6078+ // Returns a hash with all registered plugins
6079+ getPlugins: function() {
6080+ return plugins;
6081+ },
6082+
6083+ // Returns true if we're currently on the first slide
6084+ isFirstSlide: function() {
6085+ return ( indexh === 0 && indexv === 0 );
6086+ },
6087+
6088+ // Returns true if we're currently on the last slide
6089+ isLastSlide: function() {
6090+ if( currentSlide ) {
6091+ // Does this slide have a next sibling?
6092+ if( currentSlide.nextElementSibling ) return false;
6093+
6094+ // If it's vertical, does its parent have a next sibling?
6095+ if( isVerticalSlide( currentSlide ) && currentSlide.parentNode.nextElementSibling ) return false;
6096+
6097+ return true;
6098+ }
6099+
6100+ return false;
6101+ },
6102+
6103+ // Returns true if we're on the last slide in the current
6104+ // vertical stack
6105+ isLastVerticalSlide: function() {
6106+ if( currentSlide && isVerticalSlide( currentSlide ) ) {
6107+ // Does this slide have a next sibling?
6108+ if( currentSlide.nextElementSibling ) return false;
6109+
6110+ return true;
6111+ }
6112+
6113+ return false;
6114+ },
6115+
6116+ // Checks if reveal.js has been loaded and is ready for use
6117+ isReady: function() {
6118+ return loaded;
6119+ },
6120+
6121+ // Forward event binding to the reveal DOM element
6122+ addEventListener: function( type, listener, useCapture ) {
6123+ if( 'addEventListener' in window ) {
6124+ Reveal.getRevealElement().addEventListener( type, listener, useCapture );
6125+ }
6126+ },
6127+ removeEventListener: function( type, listener, useCapture ) {
6128+ if( 'addEventListener' in window ) {
6129+ Reveal.getRevealElement().removeEventListener( type, listener, useCapture );
6130+ }
6131+ },
6132+
6133+ // Adds/removes a custom key binding
6134+ addKeyBinding: addKeyBinding,
6135+ removeKeyBinding: removeKeyBinding,
6136+
6137+ // API for registering and retrieving plugins
6138+ registerPlugin: registerPlugin,
6139+ hasPlugin: hasPlugin,
6140+ getPlugin: getPlugin,
6141+
6142+ // Programmatically triggers a keyboard event
6143+ triggerKey: function( keyCode ) {
6144+ onDocumentKeyDown( { keyCode: keyCode } );
6145+ },
6146+
6147+ // Registers a new shortcut to include in the help overlay
6148+ registerKeyboardShortcut: function( key, value ) {
6149+ keyboardShortcuts[key] = value;
6150+ }
6151+ };
6152+
6153+ return Reveal;
6154+
6155+}));
lib/css/monokai.cssnew file+71
@@ -0,0 +1,71 @@
1+/*
2+Monokai style - ported by Luigi Maselli - http://grigio.org
3+*/
4+
5+.hljs {
6+ display: block;
7+ overflow-x: auto;
8+ padding: 0.5em;
9+ background: #272822;
10+ color: #ddd;
11+}
12+
13+.hljs-tag,
14+.hljs-keyword,
15+.hljs-selector-tag,
16+.hljs-literal,
17+.hljs-strong,
18+.hljs-name {
19+ color: #f92672;
20+}
21+
22+.hljs-code {
23+ color: #66d9ef;
24+}
25+
26+.hljs-class .hljs-title {
27+ color: white;
28+}
29+
30+.hljs-attribute,
31+.hljs-symbol,
32+.hljs-regexp,
33+.hljs-link {
34+ color: #bf79db;
35+}
36+
37+.hljs-string,
38+.hljs-bullet,
39+.hljs-subst,
40+.hljs-title,
41+.hljs-section,
42+.hljs-emphasis,
43+.hljs-type,
44+.hljs-built_in,
45+.hljs-builtin-name,
46+.hljs-selector-attr,
47+.hljs-selector-pseudo,
48+.hljs-addition,
49+.hljs-variable,
50+.hljs-template-tag,
51+.hljs-template-variable {
52+ color: #a6e22e;
53+}
54+
55+.hljs-comment,
56+.hljs-quote,
57+.hljs-deletion,
58+.hljs-meta {
59+ color: #75715e;
60+}
61+
62+.hljs-keyword,
63+.hljs-selector-tag,
64+.hljs-literal,
65+.hljs-doctag,
66+.hljs-title,
67+.hljs-section,
68+.hljs-type,
69+.hljs-selector-id {
70+ font-weight: bold;
71+}
lib/css/zenburn.cssnew file+80
@@ -0,0 +1,80 @@
1+/*
2+
3+Zenburn style from voldmar.ru (c) Vladimir Epifanov <voldmar@voldmar.ru>
4+based on dark.css by Ivan Sagalaev
5+
6+*/
7+
8+.hljs {
9+ display: block;
10+ overflow-x: auto;
11+ padding: 0.5em;
12+ background: #3f3f3f;
13+ color: #dcdcdc;
14+}
15+
16+.hljs-keyword,
17+.hljs-selector-tag,
18+.hljs-tag {
19+ color: #e3ceab;
20+}
21+
22+.hljs-template-tag {
23+ color: #dcdcdc;
24+}
25+
26+.hljs-number {
27+ color: #8cd0d3;
28+}
29+
30+.hljs-variable,
31+.hljs-template-variable,
32+.hljs-attribute {
33+ color: #efdcbc;
34+}
35+
36+.hljs-literal {
37+ color: #efefaf;
38+}
39+
40+.hljs-subst {
41+ color: #8f8f8f;
42+}
43+
44+.hljs-title,
45+.hljs-name,
46+.hljs-selector-id,
47+.hljs-selector-class,
48+.hljs-section,
49+.hljs-type {
50+ color: #efef8f;
51+}
52+
53+.hljs-symbol,
54+.hljs-bullet,
55+.hljs-link {
56+ color: #dca3a3;
57+}
58+
59+.hljs-deletion,
60+.hljs-string,
61+.hljs-built_in,
62+.hljs-builtin-name {
63+ color: #cc9393;
64+}
65+
66+.hljs-addition,
67+.hljs-comment,
68+.hljs-quote,
69+.hljs-meta {
70+ color: #7f9f7f;
71+}
72+
73+
74+.hljs-emphasis {
75+ font-style: italic;
76+}
77+
78+.hljs-strong {
79+ font-weight: bold;
80+}
lib/font/hasklig/Hasklig-Black.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Black.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Black.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Black.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BlackIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BlackIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BlackIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BlackIt.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Bold.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Bold.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Bold.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Bold.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BoldIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BoldIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BoldIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-BoldIt.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLight.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLight.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLight.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLight.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLightIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLightIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLightIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-ExtraLightIt.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-It.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-It.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-It.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-It.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Light.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Light.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Light.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Light.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-LightIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-LightIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-LightIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-LightIt.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Medium.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Medium.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Medium.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Medium.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-MediumIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-MediumIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-MediumIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-MediumIt.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Regular.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Regular.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Regular.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Regular.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Semibold.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Semibold.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Semibold.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-Semibold.woffnew file

Binary file not shown.

lib/font/hasklig/Hasklig-SemiboldIt.eotnew file

Binary file not shown.

lib/font/hasklig/Hasklig-SemiboldIt.otfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-SemiboldIt.ttfnew file

Binary file not shown.

lib/font/hasklig/Hasklig-SemiboldIt.woffnew file

Binary file not shown.

lib/font/hasklig/hasklig.cssnew file+39
@@ -0,0 +1,39 @@
1+@font-face {
2+ font-family: 'Hasklig';
3+ src: url('Hasklig-Regular.eot');
4+ src: url('Hasklig-Regular.eot?#iefix') format('embedded-opentype'),
5+ url('Hasklig-Regular.woff') format('woff'),
6+ url('Hasklig-Regular.ttf') format('truetype');
7+ font-weight: normal;
8+ font-style: normal;
9+}
10+
11+@font-face {
12+ font-family: 'Hasklig';
13+ src: url('Hasklig-It.eot');
14+ src: url('Hasklig-It.eot?#iefix') format('embedded-opentype'),
15+ url('Hasklig-It.woff') format('woff'),
16+ url('Hasklig-It.ttf') format('truetype');
17+ font-weight: normal;
18+ font-style: italic;
19+}
20+
21+@font-face {
22+ font-family: 'Hasklig';
23+ src: url('Hasklig-Semibold.eot');
24+ src: url('Hasklig-Semibold.eot?#iefix') format('embedded-opentype'),
25+ url('Hasklig-Semibold.woff') format('woff'),
26+ url('Hasklig-Semibold.ttf') format('truetype');
27+ font-weight: 600;
28+ font-style: normal;
29+}
30+
31+@font-face {
32+ font-family: 'Hasklig';
33+ src: url('Hasklig-SemiboldIt.eot');
34+ src: url('Hasklig-SemiboldIt.eot?#iefix') format('embedded-opentype'),
35+ url('Hasklig-SemiboldIt.woff') format('woff'),
36+ url('Hasklig-SemiboldIt.ttf') format('truetype');
37+ font-weight: 600;
38+ font-style: italic;
39+}
lib/font/league-gothic/LICENSEnew file+2
@@ -0,0 +1,2 @@
1+SIL Open Font License (OFL)
2+http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL
lib/font/league-gothic/league-gothic.cssnew file+10
@@ -0,0 +1,10 @@
1+@font-face {
2+ font-family: 'League Gothic';
3+ src: url('league-gothic.eot');
4+ src: url('league-gothic.eot?#iefix') format('embedded-opentype'),
5+ url('league-gothic.woff') format('woff'),
6+ url('league-gothic.ttf') format('truetype');
7+
8+ font-weight: normal;
9+ font-style: normal;
10+}
lib/font/league-gothic/league-gothic.eotnew file

Binary file not shown.

lib/font/league-gothic/league-gothic.ttfnew file

Binary file not shown.

lib/font/league-gothic/league-gothic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/LICENSEnew file+45
@@ -0,0 +1,45 @@
1+SIL Open Font License
2+
3+Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name ‘Source’. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.
4+
5+This Font Software is licensed under the SIL Open Font License, Version 1.1.
6+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
7+
8+—————————————————————————————-
9+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10+—————————————————————————————-
11+
12+PREAMBLE
13+The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
14+
15+The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
16+
17+DEFINITIONS
18+“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
19+
20+“Reserved Font Name” refers to any names specified as such after the copyright statement(s).
21+
22+“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
23+
24+“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
25+
26+“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27+
28+PERMISSION & CONDITIONS
29+Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
30+
31+1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
32+
33+2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
34+
35+3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
36+
37+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
38+
39+5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
40+
41+TERMINATION
42+This license becomes null and void if any of the above conditions are not met.
43+
44+DISCLAIMER
45+THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
lib/font/source-sans-pro/SourceSansPro-Black.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Black.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Black.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BlackItalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BlackItalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BlackItalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Bold.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Bold.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Bold.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BoldItalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BoldItalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-BoldItalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLight.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLight.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLight.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-ExtraLightItalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Italic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Italic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Italic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Light.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Light.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Light.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-LightItalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-LightItalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-LightItalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Regular.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Regular.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-Regular.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBold.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBold.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBold.woffnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/SourceSansPro-SemiBoldItalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-italic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-italic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-italic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-regular.eotnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-regular.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-regular.woffnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibold.eotnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibold.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibold.woffnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibolditalic.eotnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttfnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro-semibolditalic.woffnew file

Binary file not shown.

lib/font/source-sans-pro/source-sans-pro.cssnew file+39
@@ -0,0 +1,39 @@
1+@font-face {
2+ font-family: 'Source Sans Pro';
3+ src: url('source-sans-pro-regular.eot');
4+ src: url('source-sans-pro-regular.eot?#iefix') format('embedded-opentype'),
5+ url('source-sans-pro-regular.woff') format('woff'),
6+ url('source-sans-pro-regular.ttf') format('truetype');
7+ font-weight: normal;
8+ font-style: normal;
9+}
10+
11+@font-face {
12+ font-family: 'Source Sans Pro';
13+ src: url('source-sans-pro-italic.eot');
14+ src: url('source-sans-pro-italic.eot?#iefix') format('embedded-opentype'),
15+ url('source-sans-pro-italic.woff') format('woff'),
16+ url('source-sans-pro-italic.ttf') format('truetype');
17+ font-weight: normal;
18+ font-style: italic;
19+}
20+
21+@font-face {
22+ font-family: 'Source Sans Pro';
23+ src: url('source-sans-pro-semibold.eot');
24+ src: url('source-sans-pro-semibold.eot?#iefix') format('embedded-opentype'),
25+ url('source-sans-pro-semibold.woff') format('woff'),
26+ url('source-sans-pro-semibold.ttf') format('truetype');
27+ font-weight: 600;
28+ font-style: normal;
29+}
30+
31+@font-face {
32+ font-family: 'Source Sans Pro';
33+ src: url('source-sans-pro-semibolditalic.eot');
34+ src: url('source-sans-pro-semibolditalic.eot?#iefix') format('embedded-opentype'),
35+ url('source-sans-pro-semibolditalic.woff') format('woff'),
36+ url('source-sans-pro-semibolditalic.ttf') format('truetype');
37+ font-weight: 600;
38+ font-style: italic;
39+}
lib/js/html5shiv.jsnew file+7
@@ -0,0 +1,7 @@
1+document.createElement('header');
2+document.createElement('nav');
3+document.createElement('section');
4+document.createElement('article');
5+document.createElement('aside');
6+document.createElement('footer');
7+document.createElement('hgroup');
lib/js/promise.jsnew file+2
@@ -0,0 +1,2 @@
1+/* MIT | https://github.com/taylorhakes/promise-polyfill */
2+!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n()}(0,function(){"use strict";function e(e){var n=this.constructor;return this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){return n.reject(t)})})}function n(){}function t(e){if(!(this instanceof t))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],u(e,this)}function o(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){var o;try{o=t(e._value)}catch(f){return void i(n.promise,f)}r(n.promise,o)}else(1===e._state?r:i)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var o=n.then;if(n instanceof t)return e._state=3,e._value=n,void f(e);if("function"==typeof o)return void u(function(e,n){return function(){e.apply(n,arguments)}}(o,n),e)}e._state=1,e._value=n,f(e)}catch(r){i(e,r)}}function i(e,n){e._state=2,e._value=n,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var n=0,r=e._deferreds.length;r>n;n++)o(e,e._deferreds[n]);e._deferreds=null}function u(e,n){var t=!1;try{e(function(e){t||(t=!0,r(n,e))},function(e){t||(t=!0,i(n,e))})}catch(o){if(t)return;t=!0,i(n,o)}}var c=setTimeout;t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(e,t){var r=new this.constructor(n);return o(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,t,r)),r},t.prototype["finally"]=e,t.all=function(e){return new t(function(n,t){function o(e,f){try{if(f&&("object"==typeof f||"function"==typeof f)){var u=f.then;if("function"==typeof u)return void u.call(f,function(n){o(e,n)},t)}r[e]=f,0==--i&&n(r)}catch(c){t(c)}}if(!e||"undefined"==typeof e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return n([]);for(var i=r.length,f=0;r.length>f;f++)o(f,r[f])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(n){n(e)})},t.reject=function(e){return new t(function(n,t){t(e)})},t.race=function(e){return new t(function(n,t){for(var o=0,r=e.length;r>o;o++)e[o].then(n,t)})},t._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){c(e,0)},t._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l.Promise=t});
package-lock.jsonnew file+5719

This diff is too big to show here.

package.jsonnew file+44

This diff is too big to show here.

plugin/highlight/highlight.jsnew file+303

This diff is too big to show here.

plugin/markdown/example.htmlnew file+134

This diff is too big to show here.

plugin/markdown/example.mdnew file+36

This diff is too big to show here.

plugin/markdown/markdown.jsnew file+446

This diff is too big to show here.

plugin/markdown/marked.jsnew file+6

This diff is too big to show here.

plugin/math/math.jsnew file+92

This diff is too big to show here.

plugin/multiplex/client.jsnew file+13

This diff is too big to show here.

plugin/multiplex/index.jsnew file+64

This diff is too big to show here.

plugin/multiplex/master.jsnew file+34

This diff is too big to show here.

plugin/multiplex/package.jsonnew file+19

This diff is too big to show here.

plugin/notes-server/client.jsnew file+65

This diff is too big to show here.

plugin/notes-server/index.jsnew file+69

This diff is too big to show here.

plugin/notes-server/notes.htmlnew file+585

This diff is too big to show here.

plugin/notes/notes.htmlnew file+854

This diff is too big to show here.

plugin/notes/notes.jsnew file+178

This diff is too big to show here.

plugin/print-pdf/print-pdf.jsnew file+67

This diff is too big to show here.

plugin/search/search.jsnew file+206

This diff is too big to show here.

plugin/zoom-js/zoom.jsnew file+277

This diff is too big to show here.