slippery 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/assets/LICENSE.md +21 -0
- data/assets/README.md +48 -0
- data/assets/highlight.js/CHANGES.md +693 -0
- data/assets/highlight.js/README.md +86 -37
- data/assets/highlight.js/README.ru.md +65 -24
- data/assets/highlight.js/highlight.pack.js +2 -1
- data/assets/highlight.js/styles/agate.css +108 -0
- data/assets/highlight.js/styles/androidstudio.css +66 -0
- data/assets/highlight.js/styles/arduino-light.css +88 -0
- data/assets/highlight.js/styles/arta.css +25 -93
- data/assets/highlight.js/styles/ascetic.css +20 -28
- data/assets/highlight.js/styles/atelier-cave-dark.css +83 -0
- data/assets/highlight.js/styles/atelier-cave-light.css +85 -0
- data/assets/highlight.js/styles/atelier-dune-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-dune-light.css +69 -0
- data/assets/highlight.js/styles/atelier-estuary-dark.css +84 -0
- data/assets/highlight.js/styles/atelier-estuary-light.css +84 -0
- data/assets/highlight.js/styles/atelier-forest-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-forest-light.css +69 -0
- data/assets/highlight.js/styles/atelier-heath-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-heath-light.css +69 -0
- data/assets/highlight.js/styles/atelier-lakeside-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-lakeside-light.css +69 -0
- data/assets/highlight.js/styles/atelier-plateau-dark.css +84 -0
- data/assets/highlight.js/styles/atelier-plateau-light.css +84 -0
- data/assets/highlight.js/styles/atelier-savanna-dark.css +84 -0
- data/assets/highlight.js/styles/atelier-savanna-light.css +84 -0
- data/assets/highlight.js/styles/atelier-seaside-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-seaside-light.css +69 -0
- data/assets/highlight.js/styles/atelier-sulphurpool-dark.css +69 -0
- data/assets/highlight.js/styles/atelier-sulphurpool-light.css +69 -0
- data/assets/highlight.js/styles/atom-one-dark.css +96 -0
- data/assets/highlight.js/styles/atom-one-light.css +96 -0
- data/assets/highlight.js/styles/brown-paper.css +64 -0
- data/assets/highlight.js/styles/codepen-embed.css +22 -70
- data/assets/highlight.js/styles/color-brewer.css +20 -118
- data/assets/highlight.js/styles/darcula.css +77 -0
- data/assets/highlight.js/styles/dark.css +20 -62
- data/assets/highlight.js/styles/darkula.css +6 -0
- data/assets/highlight.js/styles/default.css +67 -121
- data/assets/highlight.js/styles/docco.css +22 -61
- data/assets/highlight.js/styles/dracula.css +76 -0
- data/assets/highlight.js/styles/far.css +26 -67
- data/assets/highlight.js/styles/foundation.css +22 -70
- data/assets/highlight.js/styles/github-gist.css +71 -0
- data/assets/highlight.js/styles/github.css +23 -51
- data/assets/highlight.js/styles/googlecode.css +29 -88
- data/assets/highlight.js/styles/grayscale.css +101 -0
- data/assets/highlight.js/styles/gruvbox-dark.css +108 -0
- data/assets/highlight.js/styles/gruvbox-light.css +108 -0
- data/assets/highlight.js/styles/hopscotch.css +83 -0
- data/assets/highlight.js/styles/hybrid.css +22 -91
- data/assets/highlight.js/styles/idea.css +24 -53
- data/assets/highlight.js/styles/ir-black.css +73 -0
- data/assets/highlight.js/styles/kimbie.dark.css +24 -46
- data/assets/highlight.js/styles/kimbie.light.css +24 -46
- data/assets/highlight.js/styles/magula.css +19 -71
- data/assets/highlight.js/styles/mono-blue.css +22 -33
- data/assets/highlight.js/styles/monokai-sublime.css +83 -0
- data/assets/highlight.js/styles/monokai.css +23 -80
- data/assets/highlight.js/styles/obsidian.css +26 -92
- data/assets/highlight.js/styles/ocean.css +74 -0
- data/assets/highlight.js/styles/paraiso-dark.css +72 -0
- data/assets/highlight.js/styles/paraiso-light.css +72 -0
- data/assets/highlight.js/styles/pojoaque.css +29 -54
- data/assets/highlight.js/styles/purebasic.css +96 -0
- data/assets/highlight.js/styles/qtcreator_dark.css +83 -0
- data/assets/highlight.js/styles/qtcreator_light.css +83 -0
- data/assets/highlight.js/styles/railscasts.css +32 -111
- data/assets/highlight.js/styles/rainbow.css +34 -58
- data/assets/highlight.js/styles/routeros.css +108 -0
- data/assets/highlight.js/styles/school-book.css +72 -0
- data/assets/highlight.js/styles/solarized-dark.css +84 -0
- data/assets/highlight.js/styles/solarized-light.css +84 -0
- data/assets/highlight.js/styles/sunburst.css +28 -91
- data/assets/highlight.js/styles/tomorrow-night-blue.css +23 -43
- data/assets/highlight.js/styles/tomorrow-night-bright.css +23 -43
- data/assets/highlight.js/styles/tomorrow-night-eighties.css +23 -43
- data/assets/highlight.js/styles/tomorrow-night.css +23 -43
- data/assets/highlight.js/styles/tomorrow.css +23 -43
- data/assets/highlight.js/styles/vs.css +33 -59
- data/assets/highlight.js/styles/vs2015.css +115 -0
- data/assets/highlight.js/styles/xcode.css +28 -94
- data/assets/highlight.js/styles/xt256.css +92 -0
- data/assets/highlight.js/styles/zenburn.css +26 -65
- data/assets/index.html +186 -0
- data/assets/pictures/cover.jpg +0 -0
- data/assets/pictures/logo.svg +3 -0
- data/assets/pictures/picture.jpg +0 -0
- data/assets/reveal.js/css/print/paper.css +193 -167
- data/assets/reveal.js/css/print/pdf.css +20 -53
- data/assets/reveal.js/css/reveal.css +953 -1663
- data/assets/reveal.js/css/reveal.min.css +3 -3
- data/assets/reveal.js/css/reveal.scss +1319 -0
- data/assets/reveal.js/css/theme/README.md +2 -4
- data/assets/reveal.js/css/theme/beige.css +183 -60
- data/assets/reveal.js/css/theme/black.css +267 -0
- data/assets/reveal.js/css/theme/blood.css +190 -80
- data/assets/reveal.js/css/theme/league.css +273 -0
- data/assets/reveal.js/css/theme/moon.css +174 -51
- data/assets/reveal.js/css/theme/night.css +171 -42
- data/assets/reveal.js/css/theme/serif.css +187 -58
- data/assets/reveal.js/css/theme/simple.css +179 -50
- data/assets/reveal.js/css/theme/sky.css +176 -47
- data/assets/reveal.js/css/theme/solarized.css +174 -51
- data/assets/reveal.js/css/theme/source/beige.scss +1 -12
- data/assets/reveal.js/css/theme/source/black.scss +49 -0
- data/assets/reveal.js/css/theme/source/blood.scss +3 -15
- data/assets/reveal.js/css/theme/source/{default.scss → league.scss} +5 -13
- data/assets/reveal.js/css/theme/source/moon.scss +1 -12
- data/assets/reveal.js/css/theme/source/serif.scss +1 -1
- data/assets/reveal.js/css/theme/source/sky.scss +1 -1
- data/assets/reveal.js/css/theme/source/solarized.scss +1 -12
- data/assets/reveal.js/css/theme/source/white.scss +49 -0
- data/assets/reveal.js/css/theme/template/settings.scss +13 -4
- data/assets/reveal.js/css/theme/template/theme.scss +193 -14
- data/assets/reveal.js/css/theme/white.css +267 -0
- data/assets/reveal.js/js/reveal.js +1572 -446
- data/assets/reveal.js/js/reveal.min.js +4 -4
- data/assets/reveal.js/lib/css/zenburn.css +74 -71
- data/assets/reveal.js/lib/font/league-gothic/league-gothic.css +10 -0
- data/assets/reveal.js/lib/font/league-gothic/league-gothic.eot +0 -0
- data/assets/reveal.js/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/assets/reveal.js/lib/font/league-gothic/league-gothic.woff +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/LICENSE +45 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/assets/reveal.js/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/assets/reveal.js/plugin/highlight/highlight.js +2 -4
- data/assets/reveal.js/plugin/leap/leap.js +4 -2
- data/assets/reveal.js/plugin/markdown/example.html +3 -3
- data/assets/reveal.js/plugin/markdown/markdown.js +10 -9
- data/assets/reveal.js/plugin/markdown/marked.js +2 -33
- data/assets/reveal.js/plugin/math/math.js +1 -1
- data/assets/reveal.js/plugin/notes/notes.html +321 -182
- data/assets/reveal.js/plugin/notes/notes.js +89 -45
- data/assets/reveal.js/plugin/notes-server/client.js +49 -46
- data/assets/reveal.js/plugin/notes-server/index.js +28 -21
- data/assets/reveal.js/plugin/notes-server/notes.html +351 -97
- data/assets/reveal.js/plugin/print-pdf/print-pdf.js +24 -20
- data/assets/reveal.js/plugin/zoom-js/zoom.js +78 -58
- data/assets/shower/shower.min.js +8 -0
- data/assets/shower/themes/material/LICENSE.md +21 -0
- data/assets/shower/themes/material/README.md +45 -0
- data/assets/shower/themes/material/fonts/COPYRIGHT.txt +1 -0
- data/assets/shower/themes/material/fonts/LICENSE.txt +202 -0
- data/assets/shower/themes/material/fonts/roboto-bold-italic.woff2 +0 -0
- data/assets/shower/themes/material/fonts/roboto-bold.woff2 +0 -0
- data/assets/shower/themes/material/fonts/roboto-italic.woff2 +0 -0
- data/assets/shower/themes/material/fonts/roboto-light.woff2 +0 -0
- data/assets/shower/themes/material/fonts/roboto-mono-regular.woff2 +0 -0
- data/assets/shower/themes/material/fonts/roboto-regular.woff2 +0 -0
- data/assets/shower/themes/material/index.html +488 -0
- data/assets/shower/themes/material/pictures/canvas.png +0 -0
- data/assets/shower/themes/material/pictures/exact.svg +3 -0
- data/assets/shower/themes/material/pictures/picture-1.svg +3 -0
- data/assets/shower/themes/material/pictures/picture-2.svg +3 -0
- data/assets/shower/themes/material/pictures/picture-3.svg +3 -0
- data/assets/shower/themes/material/pictures/square.svg +3 -0
- data/assets/shower/themes/material/pictures/tall.svg +3 -0
- data/assets/shower/themes/material/pictures/wide.svg +3 -0
- data/assets/shower/themes/material/styles/blocks/badge.css +65 -0
- data/assets/shower/themes/material/styles/blocks/caption.css +67 -0
- data/assets/shower/themes/material/styles/blocks/progress.css +37 -0
- data/assets/shower/themes/material/styles/blocks/region.css +29 -0
- data/assets/shower/themes/material/styles/fonts.css +64 -0
- data/assets/shower/themes/material/styles/shower/grid.svg +50 -0
- data/assets/shower/themes/material/styles/shower/shower-full.css +13 -0
- data/assets/shower/themes/material/styles/shower/shower-grid.css +13 -0
- data/assets/shower/themes/material/styles/shower/shower-list.css +30 -0
- data/assets/shower/themes/material/styles/shower/shower-print.css +11 -0
- data/assets/shower/themes/material/styles/shower/shower.css +39 -0
- data/assets/shower/themes/material/styles/slide/content/basic.css +23 -0
- data/assets/shower/themes/material/styles/slide/content/code.css +80 -0
- data/assets/shower/themes/material/styles/slide/content/footer.css +29 -0
- data/assets/shower/themes/material/styles/slide/content/inline.css +49 -0
- data/assets/shower/themes/material/styles/slide/content/lists.css +54 -0
- data/assets/shower/themes/material/styles/slide/content/quote.css +24 -0
- data/assets/shower/themes/material/styles/slide/content/table.css +53 -0
- data/assets/shower/themes/material/styles/slide/elements/columns.css +19 -0
- data/assets/shower/themes/material/styles/slide/elements/copyright.css +38 -0
- data/assets/shower/themes/material/styles/slide/elements/cover.css +25 -0
- data/assets/shower/themes/material/styles/slide/elements/next.css +9 -0
- data/assets/shower/themes/material/styles/slide/elements/place.css +63 -0
- data/assets/shower/themes/material/styles/slide/elements/shout.css +53 -0
- data/assets/shower/themes/material/styles/slide/modifiers/black.css +5 -0
- data/assets/shower/themes/material/styles/slide/modifiers/clear.css +11 -0
- data/assets/shower/themes/material/styles/slide/modifiers/white.css +5 -0
- data/assets/shower/themes/material/styles/slide/slide-full.css +16 -0
- data/assets/shower/themes/material/styles/slide/slide-list.css +68 -0
- data/assets/shower/themes/material/styles/slide/slide.css +56 -0
- data/assets/shower/themes/material/styles/styles.css +9 -0
- data/assets/shower/themes/ribbon/LICENSE.md +21 -0
- data/assets/shower/themes/ribbon/README.md +41 -0
- data/assets/shower/themes/ribbon/fonts/LICENSE.txt +44 -0
- data/assets/shower/themes/ribbon/fonts/pt-mono-regular.woff2 +0 -0
- data/assets/shower/themes/ribbon/fonts/pt-sans-bold-italic.woff2 +0 -0
- data/assets/shower/themes/ribbon/fonts/pt-sans-bold.woff2 +0 -0
- data/assets/shower/themes/ribbon/fonts/pt-sans-italic.woff2 +0 -0
- data/assets/shower/themes/ribbon/fonts/pt-sans-narrow-bold.woff2 +0 -0
- data/assets/shower/themes/ribbon/fonts/pt-sans-regular.woff2 +0 -0
- data/assets/shower/themes/ribbon/index.html +490 -0
- data/assets/shower/themes/ribbon/pictures/canvas.png +0 -0
- data/assets/shower/themes/ribbon/pictures/exact.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/picture-1.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/picture-2.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/picture-3.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/square.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/tall.svg +3 -0
- data/assets/shower/themes/ribbon/pictures/wide.svg +3 -0
- data/assets/shower/themes/ribbon/styles/blocks/badge.css +63 -0
- data/assets/shower/themes/ribbon/styles/blocks/caption.css +63 -0
- data/assets/shower/themes/ribbon/styles/blocks/progress.css +46 -0
- data/assets/shower/themes/ribbon/styles/blocks/region.css +29 -0
- data/assets/shower/themes/ribbon/styles/fonts.css +64 -0
- data/assets/shower/themes/ribbon/styles/shower/grid.svg +40 -0
- data/assets/shower/themes/ribbon/styles/shower/shower-full.css +13 -0
- data/assets/shower/themes/ribbon/styles/shower/shower-grid.css +13 -0
- data/assets/shower/themes/ribbon/styles/shower/shower-list.css +30 -0
- data/assets/shower/themes/ribbon/styles/shower/shower-print.css +11 -0
- data/assets/shower/themes/ribbon/styles/shower/shower.css +32 -0
- data/assets/shower/themes/ribbon/styles/slide/content/basic.css +21 -0
- data/assets/shower/themes/ribbon/styles/slide/content/code.css +82 -0
- data/assets/shower/themes/ribbon/styles/slide/content/footer.css +29 -0
- data/assets/shower/themes/ribbon/styles/slide/content/inline.css +50 -0
- data/assets/shower/themes/ribbon/styles/slide/content/lists.css +55 -0
- data/assets/shower/themes/ribbon/styles/slide/content/quote.css +23 -0
- data/assets/shower/themes/ribbon/styles/slide/content/table.css +53 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/columns.css +19 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/copyright.css +38 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/cover.css +25 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/next.css +9 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/place.css +63 -0
- data/assets/shower/themes/ribbon/styles/slide/elements/shout.css +54 -0
- data/assets/shower/themes/ribbon/styles/slide/modifiers/black.css +5 -0
- data/assets/shower/themes/ribbon/styles/slide/modifiers/clear.css +11 -0
- data/assets/shower/themes/ribbon/styles/slide/modifiers/white.css +5 -0
- data/assets/shower/themes/ribbon/styles/slide/ribbon.svg +1 -0
- data/assets/shower/themes/ribbon/styles/slide/slide-full.css +16 -0
- data/assets/shower/themes/ribbon/styles/slide/slide-list.css +68 -0
- data/assets/shower/themes/ribbon/styles/slide/slide.css +60 -0
- data/assets/shower/themes/ribbon/styles/styles.css +9 -0
- data/lib/slippery/presentation.rb +4 -0
- data/lib/slippery/processors/add_highlight.rb +3 -8
- data/lib/slippery/processors/reveal_js/add_reveal_js.rb +1 -1
- data/lib/slippery/processors/shower.rb +76 -0
- data/lib/slippery/rake_tasks.rb +8 -3
- data/lib/slippery/version.rb +1 -1
- data/lib/slippery.rb +1 -0
- data/slippery.gemspec +3 -3
- metadata +194 -56
- data/assets/highlight.js/highlight-0.8.default.min.css +0 -1
- data/assets/highlight.js/highlight-0.8.min.js +0 -1
- data/assets/highlight.js/styles/atelier-dune.dark.css +0 -95
- data/assets/highlight.js/styles/atelier-dune.light.css +0 -95
- data/assets/highlight.js/styles/atelier-forest.dark.css +0 -95
- data/assets/highlight.js/styles/atelier-forest.light.css +0 -95
- data/assets/highlight.js/styles/atelier-heath.dark.css +0 -95
- data/assets/highlight.js/styles/atelier-heath.light.css +0 -95
- data/assets/highlight.js/styles/atelier-lakeside.dark.css +0 -95
- data/assets/highlight.js/styles/atelier-lakeside.light.css +0 -95
- data/assets/highlight.js/styles/atelier-seaside.dark.css +0 -95
- data/assets/highlight.js/styles/atelier-seaside.light.css +0 -95
- data/assets/highlight.js/styles/brown_paper.css +0 -105
- data/assets/highlight.js/styles/ir_black.css +0 -110
- data/assets/highlight.js/styles/monokai_sublime.css +0 -148
- data/assets/highlight.js/styles/paraiso.dark.css +0 -95
- data/assets/highlight.js/styles/paraiso.light.css +0 -95
- data/assets/highlight.js/styles/school_book.css +0 -113
- data/assets/highlight.js/styles/solarized_dark.css +0 -109
- data/assets/highlight.js/styles/solarized_light.css +0 -109
- data/assets/reveal.js/css/theme/default.css +0 -148
- data/assets/reveal.js/lib/font/league_gothic-webfont.eot +0 -0
- data/assets/reveal.js/lib/font/league_gothic-webfont.svg +0 -230
- data/assets/reveal.js/lib/font/league_gothic-webfont.ttf +0 -0
- data/assets/reveal.js/lib/font/league_gothic-webfont.woff +0 -0
- data/assets/reveal.js/plugin/postmessage/example.html +0 -39
- data/assets/reveal.js/plugin/postmessage/postmessage.js +0 -42
- /data/assets/highlight.js/styles/{brown_papersq.png → brown-papersq.png} +0 -0
- /data/assets/highlight.js/styles/{school_book.png → school-book.png} +0 -0
- /data/assets/reveal.js/lib/font/{league_gothic_license → league-gothic/LICENSE} +0 -0
@@ -10,127 +10,141 @@
|
|
10
10
|
font-family: Helvetica;
|
11
11
|
}
|
12
12
|
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
13
|
+
#current-slide,
|
14
|
+
#upcoming-slide,
|
15
|
+
#speaker-controls {
|
16
|
+
padding: 6px;
|
17
|
+
box-sizing: border-box;
|
18
|
+
-moz-box-sizing: border-box;
|
18
19
|
}
|
19
20
|
|
20
|
-
#
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
#current-slide iframe,
|
22
|
+
#upcoming-slide iframe {
|
23
|
+
width: 100%;
|
24
|
+
height: 100%;
|
25
|
+
border: 1px solid #ddd;
|
25
26
|
}
|
26
27
|
|
27
|
-
#current-slide
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
transform-origin: 0 0;
|
37
|
-
|
38
|
-
-webkit-transform: scale(0.5);
|
39
|
-
-moz-transform: scale(0.5);
|
40
|
-
-ms-transform: scale(0.5);
|
41
|
-
-o-transform: scale(0.5);
|
42
|
-
transform: scale(0.5);
|
43
|
-
}
|
44
|
-
|
45
|
-
#wrap-next-slide {
|
46
|
-
width: 448px;
|
47
|
-
height: 358px;
|
48
|
-
float: left;
|
49
|
-
margin: 0 0 0 10px;
|
50
|
-
overflow: hidden;
|
28
|
+
#current-slide .label,
|
29
|
+
#upcoming-slide .label {
|
30
|
+
position: absolute;
|
31
|
+
top: 10px;
|
32
|
+
left: 10px;
|
33
|
+
font-weight: bold;
|
34
|
+
font-size: 14px;
|
35
|
+
z-index: 2;
|
36
|
+
color: rgba( 255, 255, 255, 0.9 );
|
51
37
|
}
|
52
38
|
|
53
|
-
#
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
-ms-transform-origin: 0 0;
|
61
|
-
-o-transform-origin: 0 0;
|
62
|
-
transform-origin: 0 0;
|
63
|
-
|
64
|
-
-webkit-transform: scale(0.35);
|
65
|
-
-moz-transform: scale(0.35);
|
66
|
-
-ms-transform: scale(0.35);
|
67
|
-
-o-transform: scale(0.35);
|
68
|
-
transform: scale(0.35);
|
39
|
+
#current-slide {
|
40
|
+
position: absolute;
|
41
|
+
width: 65%;
|
42
|
+
height: 100%;
|
43
|
+
top: 0;
|
44
|
+
left: 0;
|
45
|
+
padding-right: 0;
|
69
46
|
}
|
70
47
|
|
71
|
-
|
72
|
-
position:
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
48
|
+
#upcoming-slide {
|
49
|
+
position: absolute;
|
50
|
+
width: 35%;
|
51
|
+
height: 40%;
|
52
|
+
right: 0;
|
53
|
+
top: 0;
|
77
54
|
}
|
78
55
|
|
79
|
-
|
56
|
+
#speaker-controls {
|
80
57
|
position: absolute;
|
81
|
-
top:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
58
|
+
top: 40%;
|
59
|
+
right: 0;
|
60
|
+
width: 35%;
|
61
|
+
height: 60%;
|
62
|
+
overflow: auto;
|
87
63
|
|
88
|
-
|
89
|
-
font-weight: bold;
|
90
|
-
color: red;
|
91
|
-
font-size: 1.5em;
|
92
|
-
text-align: center;
|
93
|
-
margin-top: 10%;
|
64
|
+
font-size: 18px;
|
94
65
|
}
|
95
66
|
|
96
|
-
|
97
|
-
|
98
|
-
|
67
|
+
.speaker-controls-time.hidden,
|
68
|
+
.speaker-controls-notes.hidden {
|
69
|
+
display: none;
|
70
|
+
}
|
71
|
+
|
72
|
+
.speaker-controls-time .label,
|
73
|
+
.speaker-controls-notes .label {
|
74
|
+
text-transform: uppercase;
|
75
|
+
font-weight: normal;
|
76
|
+
font-size: 0.66em;
|
77
|
+
color: #666;
|
78
|
+
margin: 0;
|
79
|
+
}
|
99
80
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
81
|
+
.speaker-controls-time {
|
82
|
+
border-bottom: 1px solid rgba( 200, 200, 200, 0.5 );
|
83
|
+
margin-bottom: 10px;
|
84
|
+
padding: 10px 16px;
|
85
|
+
padding-bottom: 20px;
|
86
|
+
cursor: pointer;
|
87
|
+
}
|
88
|
+
|
89
|
+
.speaker-controls-time .reset-button {
|
90
|
+
opacity: 0;
|
91
|
+
float: right;
|
92
|
+
color: #666;
|
93
|
+
text-decoration: none;
|
94
|
+
}
|
95
|
+
.speaker-controls-time:hover .reset-button {
|
96
|
+
opacity: 1;
|
97
|
+
}
|
98
|
+
|
99
|
+
.speaker-controls-time .timer,
|
100
|
+
.speaker-controls-time .clock {
|
101
|
+
width: 50%;
|
102
|
+
font-size: 1.9em;
|
103
|
+
}
|
104
|
+
|
105
|
+
.speaker-controls-time .timer {
|
106
|
+
float: left;
|
107
|
+
}
|
108
|
+
|
109
|
+
.speaker-controls-time .clock {
|
110
|
+
float: right;
|
111
|
+
text-align: right;
|
112
|
+
}
|
113
|
+
|
114
|
+
.speaker-controls-time span.mute {
|
115
|
+
color: #bbb;
|
116
|
+
}
|
117
|
+
|
118
|
+
.speaker-controls-notes {
|
119
|
+
padding: 10px 16px;
|
120
|
+
}
|
121
|
+
|
122
|
+
.speaker-controls-notes .value {
|
123
|
+
margin-top: 5px;
|
124
|
+
line-height: 1.4;
|
125
|
+
font-size: 1.2em;
|
126
|
+
}
|
127
|
+
|
128
|
+
.clear {
|
129
|
+
clear: both;
|
111
130
|
}
|
112
131
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
text-align: center;
|
118
|
-
display: inline-block;
|
119
|
-
padding: 0.5em;
|
120
|
-
background-color: #eee;
|
121
|
-
border-radius: 10px;
|
132
|
+
@media screen and (max-width: 1080px) {
|
133
|
+
#speaker-controls {
|
134
|
+
font-size: 16px;
|
135
|
+
}
|
122
136
|
}
|
123
137
|
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
margin: 0;
|
129
|
-
color: #aaa;
|
138
|
+
@media screen and (max-width: 900px) {
|
139
|
+
#speaker-controls {
|
140
|
+
font-size: 14px;
|
141
|
+
}
|
130
142
|
}
|
131
143
|
|
132
|
-
|
133
|
-
|
144
|
+
@media screen and (max-width: 800px) {
|
145
|
+
#speaker-controls {
|
146
|
+
font-size: 12px;
|
147
|
+
}
|
134
148
|
}
|
135
149
|
|
136
150
|
</style>
|
@@ -138,81 +152,183 @@
|
|
138
152
|
|
139
153
|
<body>
|
140
154
|
|
141
|
-
<
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<div id="wrap-next-slide" class="slides">
|
154
|
-
<script>document.write( '<iframe width="640" height="512" id="next-slide" src="'+ notesNextSlideURL +'"></iframe>' );</script>
|
155
|
-
<span>UPCOMING:</span>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<div class="time">
|
159
|
-
<div class="clock">
|
160
|
-
<h2>Time</h2>
|
161
|
-
<span id="clock">0:00:00 AM</span>
|
155
|
+
<div id="current-slide"></div>
|
156
|
+
<div id="upcoming-slide"><span class="label">UPCOMING:</span></div>
|
157
|
+
<div id="speaker-controls">
|
158
|
+
<div class="speaker-controls-time">
|
159
|
+
<h4 class="label">Time <span class="reset-button">Click to Reset</span></h4>
|
160
|
+
<div class="clock">
|
161
|
+
<span class="clock-value">0:00 AM</span>
|
162
|
+
</div>
|
163
|
+
<div class="timer">
|
164
|
+
<span class="hours-value">00</span><span class="minutes-value">:00</span><span class="seconds-value">:00</span>
|
165
|
+
</div>
|
166
|
+
<div class="clear"></div>
|
162
167
|
</div>
|
163
|
-
|
164
|
-
|
165
|
-
<
|
168
|
+
|
169
|
+
<div class="speaker-controls-notes hidden">
|
170
|
+
<h4 class="label">Notes</h4>
|
171
|
+
<div class="value"></div>
|
166
172
|
</div>
|
167
173
|
</div>
|
168
174
|
|
169
|
-
<div id="notes"></div>
|
170
|
-
|
171
175
|
<script src="../../plugin/markdown/marked.js"></script>
|
172
176
|
<script>
|
173
177
|
|
174
|
-
|
178
|
+
(function() {
|
175
179
|
|
176
|
-
|
180
|
+
var notes,
|
181
|
+
notesValue,
|
182
|
+
currentState,
|
183
|
+
currentSlide,
|
184
|
+
upcomingSlide,
|
185
|
+
connected = false;
|
177
186
|
|
178
|
-
|
179
|
-
currentSlide = document.getElementById( 'current-slide' ),
|
180
|
-
nextSlide = document.getElementById( 'next-slide' ),
|
181
|
-
silenced = false;
|
187
|
+
window.addEventListener( 'message', function( event ) {
|
182
188
|
|
183
|
-
|
184
|
-
var data = JSON.parse( event.data );
|
189
|
+
var data = JSON.parse( event.data );
|
185
190
|
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
}
|
191
|
-
else {
|
192
|
-
notes.innerHTML = data.notes;
|
193
|
-
}
|
191
|
+
// Messages sent by the notes plugin inside of the main window
|
192
|
+
if( data && data.namespace === 'reveal-notes' ) {
|
193
|
+
if( data.type === 'connect' ) {
|
194
|
+
handleConnectMessage( data );
|
194
195
|
}
|
196
|
+
else if( data.type === 'state' ) {
|
197
|
+
handleStateMessage( data );
|
198
|
+
}
|
199
|
+
}
|
200
|
+
// Messages sent by the reveal.js inside of the current slide preview
|
201
|
+
else if( data && data.namespace === 'reveal' ) {
|
202
|
+
if( /ready/.test( data.eventName ) ) {
|
203
|
+
// Send a message back to notify that the handshake is complete
|
204
|
+
window.opener.postMessage( JSON.stringify({ namespace: 'reveal-notes', type: 'connected'} ), '*' );
|
205
|
+
}
|
206
|
+
else if( /slidechanged|fragmentshown|fragmenthidden|overviewshown|overviewhidden|paused|resumed/.test( data.eventName ) && currentState !== JSON.stringify( data.state ) ) {
|
207
|
+
window.opener.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ]} ), '*' );
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
} );
|
195
212
|
|
196
|
-
|
213
|
+
/**
|
214
|
+
* Called when the main window is trying to establish a
|
215
|
+
* connection.
|
216
|
+
*/
|
217
|
+
function handleConnectMessage( data ) {
|
197
218
|
|
198
|
-
|
199
|
-
|
200
|
-
nextSlide.contentWindow.Reveal.slide( data.nextindexh, data.nextindexv );
|
219
|
+
if( connected === false ) {
|
220
|
+
connected = true;
|
201
221
|
|
202
|
-
|
222
|
+
setupIframes( data );
|
223
|
+
setupKeyboard();
|
224
|
+
setupNotes();
|
225
|
+
setupTimer();
|
226
|
+
}
|
203
227
|
|
204
|
-
|
228
|
+
}
|
205
229
|
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
230
|
+
/**
|
231
|
+
* Called when the main window sends an updated state.
|
232
|
+
*/
|
233
|
+
function handleStateMessage( data ) {
|
234
|
+
|
235
|
+
// Store the most recently set state to avoid circular loops
|
236
|
+
// applying the same state
|
237
|
+
currentState = JSON.stringify( data.state );
|
238
|
+
|
239
|
+
// No need for updating the notes in case of fragment changes
|
240
|
+
if ( data.notes ) {
|
241
|
+
notes.classList.remove( 'hidden' );
|
242
|
+
if( data.markdown ) {
|
243
|
+
notesValue.innerHTML = marked( data.notes );
|
244
|
+
}
|
245
|
+
else {
|
246
|
+
notesValue.innerHTML = data.notes;
|
247
|
+
}
|
248
|
+
}
|
249
|
+
else {
|
250
|
+
notes.classList.add( 'hidden' );
|
251
|
+
}
|
252
|
+
|
253
|
+
// Update the note slides
|
254
|
+
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
|
255
|
+
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
|
256
|
+
upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'next' }), '*' );
|
257
|
+
|
258
|
+
}
|
259
|
+
|
260
|
+
// Limit to max one state update per X ms
|
261
|
+
handleStateMessage = debounce( handleStateMessage, 200 );
|
262
|
+
|
263
|
+
/**
|
264
|
+
* Forward keyboard events to the current slide window.
|
265
|
+
* This enables keyboard events to work even if focus
|
266
|
+
* isn't set on the current slide iframe.
|
267
|
+
*/
|
268
|
+
function setupKeyboard() {
|
269
|
+
|
270
|
+
document.addEventListener( 'keydown', function( event ) {
|
271
|
+
currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'triggerKey', args: [ event.keyCode ] }), '*' );
|
272
|
+
} );
|
273
|
+
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Creates the preview iframes.
|
278
|
+
*/
|
279
|
+
function setupIframes( data ) {
|
280
|
+
|
281
|
+
var params = [
|
282
|
+
'receiver',
|
283
|
+
'progress=false',
|
284
|
+
'history=false',
|
285
|
+
'transition=none',
|
286
|
+
'autoSlide=0',
|
287
|
+
'backgroundTransition=none'
|
288
|
+
].join( '&' );
|
289
|
+
|
290
|
+
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
|
291
|
+
var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash;
|
292
|
+
var upcomingURL = data.url + '?' + params + '&controls=false' + hash;
|
293
|
+
|
294
|
+
currentSlide = document.createElement( 'iframe' );
|
295
|
+
currentSlide.setAttribute( 'width', 1280 );
|
296
|
+
currentSlide.setAttribute( 'height', 1024 );
|
297
|
+
currentSlide.setAttribute( 'src', currentURL );
|
298
|
+
document.querySelector( '#current-slide' ).appendChild( currentSlide );
|
299
|
+
|
300
|
+
upcomingSlide = document.createElement( 'iframe' );
|
301
|
+
upcomingSlide.setAttribute( 'width', 640 );
|
302
|
+
upcomingSlide.setAttribute( 'height', 512 );
|
303
|
+
upcomingSlide.setAttribute( 'src', upcomingURL );
|
304
|
+
document.querySelector( '#upcoming-slide' ).appendChild( upcomingSlide );
|
212
305
|
|
213
|
-
|
306
|
+
}
|
307
|
+
|
308
|
+
/**
|
309
|
+
* Setup the notes UI.
|
310
|
+
*/
|
311
|
+
function setupNotes() {
|
312
|
+
|
313
|
+
notes = document.querySelector( '.speaker-controls-notes' );
|
314
|
+
notesValue = document.querySelector( '.speaker-controls-notes .value' );
|
315
|
+
|
316
|
+
}
|
317
|
+
|
318
|
+
/**
|
319
|
+
* Create the timer and clock and start updating them
|
320
|
+
* at an interval.
|
321
|
+
*/
|
322
|
+
function setupTimer() {
|
214
323
|
|
215
|
-
|
324
|
+
var start = new Date(),
|
325
|
+
timeEl = document.querySelector( '.speaker-controls-time' ),
|
326
|
+
clockEl = timeEl.querySelector( '.clock-value' ),
|
327
|
+
hoursEl = timeEl.querySelector( '.hours-value' ),
|
328
|
+
minutesEl = timeEl.querySelector( '.minutes-value' ),
|
329
|
+
secondsEl = timeEl.querySelector( '.seconds-value' );
|
330
|
+
|
331
|
+
function _updateTimer() {
|
216
332
|
|
217
333
|
var diff, hours, minutes, seconds,
|
218
334
|
now = new Date();
|
@@ -222,45 +338,68 @@
|
|
222
338
|
minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
|
223
339
|
seconds = Math.floor( ( diff / 1000 ) % 60 );
|
224
340
|
|
225
|
-
clockEl.innerHTML = now.toLocaleTimeString();
|
341
|
+
clockEl.innerHTML = now.toLocaleTimeString( 'en-US', { hour12: true, hour: '2-digit', minute:'2-digit' } );
|
226
342
|
hoursEl.innerHTML = zeroPadInteger( hours );
|
227
|
-
hoursEl.className = hours > 0 ?
|
228
|
-
minutesEl.innerHTML =
|
229
|
-
minutesEl.className = minutes > 0 ?
|
230
|
-
secondsEl.innerHTML =
|
231
|
-
|
232
|
-
}, 1000 );
|
343
|
+
hoursEl.className = hours > 0 ? '' : 'mute';
|
344
|
+
minutesEl.innerHTML = ':' + zeroPadInteger( minutes );
|
345
|
+
minutesEl.className = minutes > 0 ? '' : 'mute';
|
346
|
+
secondsEl.innerHTML = ':' + zeroPadInteger( seconds );
|
233
347
|
|
234
|
-
|
235
|
-
// the main window
|
236
|
-
function synchronizeMainWindow() {
|
348
|
+
}
|
237
349
|
|
238
|
-
|
239
|
-
|
240
|
-
window.opener.Reveal.slide( indices.h, indices.v, indices.f );
|
241
|
-
}
|
350
|
+
// Update once directly
|
351
|
+
_updateTimer();
|
242
352
|
|
243
|
-
|
353
|
+
// Then update every second
|
354
|
+
setInterval( _updateTimer, 1000 );
|
244
355
|
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
356
|
+
timeEl.addEventListener( 'click', function() {
|
357
|
+
start = new Date();
|
358
|
+
_updateTimer();
|
359
|
+
return false;
|
360
|
+
} );
|
249
361
|
|
250
362
|
}
|
251
|
-
else {
|
252
363
|
|
253
|
-
|
364
|
+
function zeroPadInteger( num ) {
|
365
|
+
|
366
|
+
var str = '00' + parseInt( num );
|
367
|
+
return str.substring( str.length - 2 );
|
254
368
|
|
255
369
|
}
|
256
370
|
|
371
|
+
/**
|
372
|
+
* Limits the frequency at which a function can be called.
|
373
|
+
*/
|
374
|
+
function debounce( fn, ms ) {
|
257
375
|
|
258
|
-
|
376
|
+
var lastTime = 0,
|
377
|
+
timeout;
|
259
378
|
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
379
|
+
return function() {
|
380
|
+
|
381
|
+
var args = arguments;
|
382
|
+
var context = this;
|
383
|
+
|
384
|
+
clearTimeout( timeout );
|
385
|
+
|
386
|
+
var timeSinceLastCall = Date.now() - lastTime;
|
387
|
+
if( timeSinceLastCall > ms ) {
|
388
|
+
fn.apply( context, args );
|
389
|
+
lastTime = Date.now();
|
390
|
+
}
|
391
|
+
else {
|
392
|
+
timeout = setTimeout( function() {
|
393
|
+
fn.apply( context, args );
|
394
|
+
lastTime = Date.now();
|
395
|
+
}, ms - timeSinceLastCall );
|
396
|
+
}
|
397
|
+
|
398
|
+
}
|
399
|
+
|
400
|
+
}
|
401
|
+
|
402
|
+
})();
|
264
403
|
|
265
404
|
</script>
|
266
405
|
</body>
|