dyndoc-ruby 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dyn-init.rb +9 -0
- data/share/demo/first.dyn +38 -0
- data/share/demo/second.dyn +87 -0
- data/share/demo/simple.dyn +10 -0
- data/share/demo/simple_lib.dyn +2 -0
- data/share/demo/simple_lib2.dyn +2 -0
- data/share/demo/testBeamer.dyn +77 -0
- data/share/demo/testBeamer_lib.dyn +7 -0
- data/share/demo/test_atom.dyn +79 -0
- data/share/etc/alias +3 -0
- data/share/etc/dyndoc_library_path +1 -0
- data/share/etc/helpers +1 -0
- data/share/etc/pandoc/README.INSTALL +1 -0
- data/share/etc/pandoc/config.rb +4 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/CONTRIBUTING.md +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/Gruntfile.js +174 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/LICENSE +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/README.md +950 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/paper.css +202 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/print/pdf.css +157 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.css +1141 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.min.css +1141 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/reveal.scss +1316 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/README.md +25 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/beige.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/black.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/blood.css +291 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/default.css +268 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/league.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/moon.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/night.css +259 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/serif.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/simple.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/sky.css +268 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/solarized.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/beige.scss +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/black.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/blood.scss +91 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/league.scss +34 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/moon.scss +57 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/night.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/serif.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/simple.scss +38 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/sky.scss +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/solarized.scss +63 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/source/white.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/mixins.scss +29 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/settings.scss +43 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/template/theme.scss +339 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/css/theme/white.css +261 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/index.html +408 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.js +4276 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/js/reveal.min.js +4276 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/css/zenburn.css +117 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/LICENSE +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.css +10 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/league-gothic/league-gothic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/LICENSE +45 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/classList.js +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/head.min.js +8 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/lib/js/html5shiv.js +7 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/package.json +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/highlight/highlight.js +30 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/leap/leap.js +159 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.html +129 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/example.md +31 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/markdown.js +393 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/markdown/marked.js +37 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/math/math.js +64 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/client.js +13 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/index.js +56 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/multiplex/master.js +51 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/client.js +60 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/index.js +66 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes-server/notes.html +396 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.html +406 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/notes/notes.js +122 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/print-pdf/print-pdf.js +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/remotes/remotes.js +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/search/search.js +196 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/plugin/zoom-js/zoom.js +278 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image1.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/assets/image2.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/barebones.html +41 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/embedded-media.html +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/math.html +185 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/examples/slide-backgrounds.html +144 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.css +244 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/qunit-1.12.0.js +2212 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.html +134 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-element-attributes.js +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.html +128 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown-slide-attributes.js +47 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.html +52 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-markdown.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.html +83 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test-pdf.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.html +82 -0
- data/share/etc/pandoc/extra/reveal.js-3.0.0/test/test.js +572 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/CONTRIBUTING.md +23 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/Gruntfile.js +170 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/LICENSE +19 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/README.md +1050 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/paper.css +202 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/print/pdf.css +157 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.css +1175 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/reveal.scss +1319 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/README.md +23 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/beige.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/black.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/blood.css +285 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/league.css +273 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/moon.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/night.css +265 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/serif.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/simple.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/sky.css +274 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/solarized.css +271 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/beige.scss +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/black.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/blood.scss +79 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/league.scss +34 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/moon.scss +57 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/night.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/serif.scss +35 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/simple.scss +38 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/sky.scss +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/solarized.scss +63 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/source/white.scss +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/mixins.scss +29 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/settings.scss +43 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/template/theme.scss +349 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/css/theme/white.css +267 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/index.html +411 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/js/reveal.js +4508 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/css/zenburn.css +117 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/LICENSE +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.css +10 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/league-gothic/league-gothic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/LICENSE +45 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-italic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-regular.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibold.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.eot +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.ttf +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro-semibolditalic.woff +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/font/source-sans-pro/source-sans-pro.css +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/classList.js +2 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/head.min.js +8 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/lib/js/html5shiv.js +7 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/package.json +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/highlight/highlight.js +30 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/leap/leap.js +159 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.html +129 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/example.md +31 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/markdown.js +393 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/markdown/marked.js +6 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/math/math.js +64 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/client.js +13 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/index.js +56 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/multiplex/master.js +51 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/client.js +60 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/index.js +66 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes-server/notes.html +396 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.html +406 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/notes/notes.js +122 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/print-pdf/print-pdf.js +48 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/remotes/remotes.js +39 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/search/search.js +196 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/plugin/zoom-js/zoom.js +278 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image1.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/assets/image2.png +0 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/barebones.html +41 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/embedded-media.html +49 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/math.html +185 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-backgrounds.html +144 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/examples/slide-transitions.html +101 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.css +244 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/qunit-1.12.0.js +2212 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.html +134 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-element-attributes.js +46 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.html +128 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown-slide-attributes.js +47 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.html +52 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-markdown.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.html +83 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test-pdf.js +15 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.html +85 -0
- data/share/etc/pandoc/extra/reveal.js-3.1.0/test/test.js +589 -0
- data/share/etc/pandoc/extra/s5-ui/default/blank.gif +0 -0
- data/share/etc/pandoc/extra/s5-ui/default/bodybg.gif +0 -0
- data/share/etc/pandoc/extra/s5-ui/default/framing.css +23 -0
- data/share/etc/pandoc/extra/s5-ui/default/iepngfix.htc +42 -0
- data/share/etc/pandoc/extra/s5-ui/default/opera.css +7 -0
- data/share/etc/pandoc/extra/s5-ui/default/outline.css +15 -0
- data/share/etc/pandoc/extra/s5-ui/default/pretty.css +86 -0
- data/share/etc/pandoc/extra/s5-ui/default/print.css +1 -0
- data/share/etc/pandoc/extra/s5-ui/default/s5-core.css +9 -0
- data/share/etc/pandoc/extra/s5-ui/default/slides.css +3 -0
- data/share/etc/pandoc/extra/s5-ui/default/slides.js +553 -0
- data/share/etc/uv/render/README +1 -0
- data/share/etc/uv/render/latex/-h.yaml +1 -0
- data/share/etc/uv/render/latex/active4d.render +136 -0
- data/share/etc/uv/render/latex/all_hallows_eve.render +100 -0
- data/share/etc/uv/render/latex/amy.render +175 -0
- data/share/etc/uv/render/latex/blackboard.render +115 -0
- data/share/etc/uv/render/latex/brilliance_black.render +556 -0
- data/share/etc/uv/render/latex/brilliance_dull.render +565 -0
- data/share/etc/uv/render/latex/cobalt.render +166 -0
- data/share/etc/uv/render/latex/dawn.render +130 -0
- data/share/etc/uv/render/latex/eiffel.render +136 -0
- data/share/etc/uv/render/latex/espresso_libre.render +127 -0
- data/share/etc/uv/render/latex/idle.render +97 -0
- data/share/etc/uv/render/latex/iplastic.render +103 -0
- data/share/etc/uv/render/latex/lazy.render +100 -0
- data/share/etc/uv/render/latex/mac_classic.render +139 -0
- data/share/etc/uv/render/latex/magicwb_amiga.render +121 -0
- data/share/etc/uv/render/latex/pastels_on_dark.render +208 -0
- data/share/etc/uv/render/latex/slush_poppies.render +127 -0
- data/share/etc/uv/render/latex/solarized.render +495 -0
- data/share/etc/uv/render/latex/spacecadet.render +85 -0
- data/share/etc/uv/render/latex/sunburst.render +190 -0
- data/share/etc/uv/render/latex/twilight.render +157 -0
- data/share/etc/uv/render/latex/zenburnesque.render +130 -0
- data/share/etc/uv/render/old/txt2tags.render +131 -0
- data/share/etc/uv/render/theme2latexrender +123 -0
- data/share/etc/uv/render/theme2xhtmlrender +157 -0
- data/share/etc/uv/render/tmTheme/solarized.tmTheme +1875 -0
- data/share/etc/uv/render/xhtml/active4d.render +140 -0
- data/share/etc/uv/render/xhtml/all_hallows_eve.render +104 -0
- data/share/etc/uv/render/xhtml/amy.render +179 -0
- data/share/etc/uv/render/xhtml/blackboard.render +119 -0
- data/share/etc/uv/render/xhtml/brilliance_black.render +560 -0
- data/share/etc/uv/render/xhtml/brilliance_dull.render +569 -0
- data/share/etc/uv/render/xhtml/cobalt.render +170 -0
- data/share/etc/uv/render/xhtml/dawn.render +134 -0
- data/share/etc/uv/render/xhtml/eiffel.render +140 -0
- data/share/etc/uv/render/xhtml/espresso_libre.render +131 -0
- data/share/etc/uv/render/xhtml/files/css/active4d.css +114 -0
- data/share/etc/uv/render/xhtml/files/css/all_hallows_eve.css +72 -0
- data/share/etc/uv/render/xhtml/files/css/amy.css +147 -0
- data/share/etc/uv/render/xhtml/files/css/blackboard.css +88 -0
- data/share/etc/uv/render/xhtml/files/css/brilliance_black.css +605 -0
- data/share/etc/uv/render/xhtml/files/css/brilliance_dull.css +599 -0
- data/share/etc/uv/render/xhtml/files/css/cobalt.css +149 -0
- data/share/etc/uv/render/xhtml/files/css/dawn.css +121 -0
- data/share/etc/uv/render/xhtml/files/css/eiffel.css +121 -0
- data/share/etc/uv/render/xhtml/files/css/espresso_libre.css +109 -0
- data/share/etc/uv/render/xhtml/files/css/idle.css +62 -0
- data/share/etc/uv/render/xhtml/files/css/iplastic.css +80 -0
- data/share/etc/uv/render/xhtml/files/css/lazy.css +73 -0
- data/share/etc/uv/render/xhtml/files/css/mac_classic.css +123 -0
- data/share/etc/uv/render/xhtml/files/css/magicwb_amiga.css +104 -0
- data/share/etc/uv/render/xhtml/files/css/pastels_on_dark.css +188 -0
- data/share/etc/uv/render/xhtml/files/css/slush_poppies.css +85 -0
- data/share/etc/uv/render/xhtml/files/css/solarized.css +478 -0
- data/share/etc/uv/render/xhtml/files/css/spacecadet.css +51 -0
- data/share/etc/uv/render/xhtml/files/css/sunburst.css +180 -0
- data/share/etc/uv/render/xhtml/files/css/twilight.css +137 -0
- data/share/etc/uv/render/xhtml/files/css/zenburnesque.css +91 -0
- data/share/etc/uv/render/xhtml/idle.render +101 -0
- data/share/etc/uv/render/xhtml/iplastic.render +107 -0
- data/share/etc/uv/render/xhtml/lazy.render +104 -0
- data/share/etc/uv/render/xhtml/mac_classic.render +143 -0
- data/share/etc/uv/render/xhtml/magicwb_amiga.render +125 -0
- data/share/etc/uv/render/xhtml/pastels_on_dark.render +212 -0
- data/share/etc/uv/render/xhtml/slush_poppies.render +131 -0
- data/share/etc/uv/render/xhtml/solarized.render +503 -0
- data/share/etc/uv/render/xhtml/spacecadet.render +89 -0
- data/share/etc/uv/render/xhtml/sunburst.render +194 -0
- data/share/etc/uv/render/xhtml/twilight.render +161 -0
- data/share/etc/uv/render/xhtml/zenburnesque.render +134 -0
- data/share/etc/uv/syntax/broken/markdown.syntax +519 -0
- data/share/etc/uv/syntax/broken/php.syntax +1253 -0
- data/share/etc/uv/syntax/buggy/nemerle.syntax +74 -0
- data/share/etc/uv/syntax/dyndoc.syntax +237 -0
- data/share/etc/uv/syntax/old/YAML.yaml +160 -0
- data/share/etc/uv/syntax/old/txt2tags.yaml +139 -0
- data/share/etc/uv/syntax/r.syntax +81 -0
- data/share/etc/uv/syntax/ruby.syntax +1035 -0
- data/share/etc/uv/syntax/source.actionscript.syntax +97 -0
- data/share/etc/uv/syntax/source.active4d.library.syntax +21 -0
- data/share/etc/uv/syntax/source.active4d.syntax +276 -0
- data/share/etc/uv/syntax/source.ada.syntax +33 -0
- data/share/etc/uv/syntax/source.antlr.syntax +151 -0
- data/share/etc/uv/syntax/source.apache-config.mod_perl.syntax +50 -0
- data/share/etc/uv/syntax/source.apache-config.syntax +191 -0
- data/share/etc/uv/syntax/source.applescript.syntax +384 -0
- data/share/etc/uv/syntax/source.asp.syntax +70 -0
- data/share/etc/uv/syntax/source.asp.vb.net.syntax +129 -0
- data/share/etc/uv/syntax/source.c++.qt.syntax +26 -0
- data/share/etc/uv/syntax/source.c++.syntax +186 -0
- data/share/etc/uv/syntax/source.c-sharp.syntax +59 -0
- data/share/etc/uv/syntax/source.c.ragel.syntax +201 -0
- data/share/etc/uv/syntax/source.c.syntax +414 -0
- data/share/etc/uv/syntax/source.camlp4.ocaml.syntax +36 -0
- data/share/etc/uv/syntax/source.cm.syntax +32 -0
- data/share/etc/uv/syntax/source.coffee.syntax +216 -0
- data/share/etc/uv/syntax/source.context-free.syntax +176 -0
- data/share/etc/uv/syntax/source.css.beta.syntax +1925 -0
- data/share/etc/uv/syntax/source.css.syntax +195 -0
- data/share/etc/uv/syntax/source.d.syntax +142 -0
- data/share/etc/uv/syntax/source.diff.syntax +81 -0
- data/share/etc/uv/syntax/source.dot.syntax +47 -0
- data/share/etc/uv/syntax/source.dylan.syntax +62 -0
- data/share/etc/uv/syntax/source.eiffel.syntax +78 -0
- data/share/etc/uv/syntax/source.erlang.syntax +922 -0
- data/share/etc/uv/syntax/source.fortran.syntax +141 -0
- data/share/etc/uv/syntax/source.fscript.syntax +80 -0
- data/share/etc/uv/syntax/source.fxscript.syntax +142 -0
- data/share/etc/uv/syntax/source.gri.syntax +83 -0
- data/share/etc/uv/syntax/source.groovy.groovy.syntax +191 -0
- data/share/etc/uv/syntax/source.haskell.syntax +88 -0
- data/share/etc/uv/syntax/source.icalendar.syntax +32 -0
- data/share/etc/uv/syntax/source.inform.syntax +48 -0
- data/share/etc/uv/syntax/source.ini.syntax +55 -0
- data/share/etc/uv/syntax/source.io.syntax +81 -0
- data/share/etc/uv/syntax/source.java-props.syntax +20 -0
- data/share/etc/uv/syntax/source.java.syntax +211 -0
- data/share/etc/uv/syntax/source.js.greasemonkey.syntax +34 -0
- data/share/etc/uv/syntax/source.js.jquery.syntax +114 -0
- data/share/etc/uv/syntax/source.js.mootools.syntax +572 -0
- data/share/etc/uv/syntax/source.js.prototype.bracketed.syntax +140 -0
- data/share/etc/uv/syntax/source.js.prototype.syntax +72 -0
- data/share/etc/uv/syntax/source.js.syntax +256 -0
- data/share/etc/uv/syntax/source.js.yui.syntax +176 -0
- data/share/etc/uv/syntax/source.json.syntax +136 -0
- data/share/etc/uv/syntax/source.lex.syntax +219 -0
- data/share/etc/uv/syntax/source.lighttpd-config.syntax +54 -0
- data/share/etc/uv/syntax/source.lilypond.syntax +492 -0
- data/share/etc/uv/syntax/source.lisp.syntax +61 -0
- data/share/etc/uv/syntax/source.logo.syntax +29 -0
- data/share/etc/uv/syntax/source.logtalk.syntax +152 -0
- data/share/etc/uv/syntax/source.lua.syntax +86 -0
- data/share/etc/uv/syntax/source.makefile.syntax +36 -0
- data/share/etc/uv/syntax/source.matlab.syntax +142 -0
- data/share/etc/uv/syntax/source.mel.syntax +92 -0
- data/share/etc/uv/syntax/source.mips.syntax +66 -0
- data/share/etc/uv/syntax/source.ml.syntax +121 -0
- data/share/etc/uv/syntax/source.modula-3.syntax +47 -0
- data/share/etc/uv/syntax/source.nant-build.syntax +53 -0
- data/share/etc/uv/syntax/source.objc++.syntax +18 -0
- data/share/etc/uv/syntax/source.objc.syntax +233 -0
- data/share/etc/uv/syntax/source.ocaml.syntax +764 -0
- data/share/etc/uv/syntax/source.ocamllex.syntax +167 -0
- data/share/etc/uv/syntax/source.ocamlyacc.syntax +184 -0
- data/share/etc/uv/syntax/source.open-gl.syntax +14 -0
- data/share/etc/uv/syntax/source.pascal.syntax +77 -0
- data/share/etc/uv/syntax/source.pascal.vectorscript.syntax +57 -0
- data/share/etc/uv/syntax/source.perl.syntax +1113 -0
- data/share/etc/uv/syntax/source.php.cake.syntax +55 -0
- data/share/etc/uv/syntax/source.plist.tm-grammar.syntax +708 -0
- data/share/etc/uv/syntax/source.postscript.syntax +114 -0
- data/share/etc/uv/syntax/source.processing.syntax +106 -0
- data/share/etc/uv/syntax/source.prolog.syntax +40 -0
- data/share/etc/uv/syntax/source.python.django.syntax +21 -0
- data/share/etc/uv/syntax/source.python.syntax +868 -0
- data/share/etc/uv/syntax/source.qmake.syntax +114 -0
- data/share/etc/uv/syntax/source.quake-config.syntax +32 -0
- data/share/etc/uv/syntax/source.r-console.syntax +16 -0
- data/share/etc/uv/syntax/source.r.syntax +81 -0
- data/share/etc/uv/syntax/source.regexp.oniguruma.syntax +107 -0
- data/share/etc/uv/syntax/source.regexp.python.syntax +109 -0
- data/share/etc/uv/syntax/source.regexp.syntax +50 -0
- data/share/etc/uv/syntax/source.remind.syntax +253 -0
- data/share/etc/uv/syntax/source.rez.syntax +80 -0
- data/share/etc/uv/syntax/source.ruby.experimental.syntax +145 -0
- data/share/etc/uv/syntax/source.ruby.rails.syntax +88 -0
- data/share/etc/uv/syntax/source.ruby.syntax +1035 -0
- data/share/etc/uv/syntax/source.s5.syntax +69 -0
- data/share/etc/uv/syntax/source.sass.syntax +45 -0
- data/share/etc/uv/syntax/source.scheme.syntax +347 -0
- data/share/etc/uv/syntax/source.scilab.syntax +41 -0
- data/share/etc/uv/syntax/source.scss.syntax +527 -0
- data/share/etc/uv/syntax/source.shell.syntax +384 -0
- data/share/etc/uv/syntax/source.slate.syntax +149 -0
- data/share/etc/uv/syntax/source.smarty.syntax +63 -0
- data/share/etc/uv/syntax/source.sql.ruby.syntax +18 -0
- data/share/etc/uv/syntax/source.sql.syntax +237 -0
- data/share/etc/uv/syntax/source.ssh-config.syntax +33 -0
- data/share/etc/uv/syntax/source.strings.syntax +39 -0
- data/share/etc/uv/syntax/source.swig.syntax +57 -0
- data/share/etc/uv/syntax/source.tcl.macports.syntax +163 -0
- data/share/etc/uv/syntax/source.tcl.syntax +152 -0
- data/share/etc/uv/syntax/source.yaml.syntax +160 -0
- data/share/etc/uv/syntax/text.active4d-ini.syntax +50 -0
- data/share/etc/uv/syntax/text.bbcode.syntax +287 -0
- data/share/etc/uv/syntax/text.bibtex.syntax +151 -0
- data/share/etc/uv/syntax/text.blog.html.syntax +41 -0
- data/share/etc/uv/syntax/text.blog.markdown.syntax +42 -0
- data/share/etc/uv/syntax/text.blog.syntax +27 -0
- data/share/etc/uv/syntax/text.blog.textile.syntax +27 -0
- data/share/etc/uv/syntax/text.dyndoc.syntax +237 -0
- data/share/etc/uv/syntax/text.gtdalt.syntax +143 -0
- data/share/etc/uv/syntax/text.haml.syntax +88 -0
- data/share/etc/uv/syntax/text.html.asp.net.syntax +424 -0
- data/share/etc/uv/syntax/text.html.asp.syntax +27 -0
- data/share/etc/uv/syntax/text.html.basic.syntax +362 -0
- data/share/etc/uv/syntax/text.html.cfm.syntax +119 -0
- data/share/etc/uv/syntax/text.html.django.syntax +36 -0
- data/share/etc/uv/syntax/text.html.dokuwiki.syntax +204 -0
- data/share/etc/uv/syntax/text.html.doxygen.syntax +43 -0
- data/share/etc/uv/syntax/text.html.markdown.multimarkdown.syntax +39 -0
- data/share/etc/uv/syntax/text.html.mason.syntax +119 -0
- data/share/etc/uv/syntax/text.html.mediawiki.syntax +567 -0
- data/share/etc/uv/syntax/text.html.mt.syntax +162 -0
- data/share/etc/uv/syntax/text.html.ruby.syntax +40 -0
- data/share/etc/uv/syntax/text.html.strict.active4d.syntax +311 -0
- data/share/etc/uv/syntax/text.html.tcl.syntax +26 -0
- data/share/etc/uv/syntax/text.html.textile.syntax +215 -0
- data/share/etc/uv/syntax/text.html.tt.syntax +121 -0
- data/share/etc/uv/syntax/text.html.twiki.syntax +241 -0
- data/share/etc/uv/syntax/text.html.xhtml.1-strict.syntax +4027 -0
- data/share/etc/uv/syntax/text.log.latex.syntax +50 -0
- data/share/etc/uv/syntax/text.mail.markdown.syntax +118 -0
- data/share/etc/uv/syntax/text.man.syntax +17 -0
- data/share/etc/uv/syntax/text.moinmoin.syntax +189 -0
- data/share/etc/uv/syntax/text.plain.gtd.syntax +22 -0
- data/share/etc/uv/syntax/text.plain.release-notes.syntax +46 -0
- data/share/etc/uv/syntax/text.plain.syntax +32 -0
- data/share/etc/uv/syntax/text.plist.syntax +635 -0
- data/share/etc/uv/syntax/text.pmwiki.syntax +113 -0
- data/share/etc/uv/syntax/text.restructuredtext.syntax +250 -0
- data/share/etc/uv/syntax/text.setext.syntax +147 -0
- data/share/etc/uv/syntax/text.subversion-commit.syntax +36 -0
- data/share/etc/uv/syntax/text.tabular.csv.syntax +68 -0
- data/share/etc/uv/syntax/text.tabular.tsv.syntax +50 -0
- data/share/etc/uv/syntax/text.tex.latex.beamer.syntax +41 -0
- data/share/etc/uv/syntax/text.tex.latex.haskell.syntax +24 -0
- data/share/etc/uv/syntax/text.tex.latex.memoir.syntax +64 -0
- data/share/etc/uv/syntax/text.tex.latex.rd.syntax +91 -0
- data/share/etc/uv/syntax/text.tex.latex.sweave.syntax +84 -0
- data/share/etc/uv/syntax/text.tex.latex.syntax +566 -0
- data/share/etc/uv/syntax/text.tex.math.syntax +49 -0
- data/share/etc/uv/syntax/text.tex.syntax +86 -0
- data/share/etc/uv/syntax/text.txt2tags.syntax +79 -0
- data/share/etc/uv/syntax/text.xml.apple-dist.syntax +77 -0
- data/share/etc/uv/syntax/text.xml.strict.syntax +92 -0
- data/share/etc/uv/syntax/text.xml.syntax +180 -0
- data/share/etc/uv/syntax/text.xml.xsl.syntax +60 -0
- data/share/etc/uv/uv.rb +161 -0
- metadata +465 -1
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* phantomjs script for printing presentations to PDF.
|
3
|
+
*
|
4
|
+
* Example:
|
5
|
+
* phantomjs print-pdf.js "http://lab.hakim.se/reveal-js?print-pdf" reveal-demo.pdf
|
6
|
+
*
|
7
|
+
* By Manuel Bieh (https://github.com/manuelbieh)
|
8
|
+
*/
|
9
|
+
|
10
|
+
// html2pdf.js
|
11
|
+
var page = new WebPage();
|
12
|
+
var system = require( 'system' );
|
13
|
+
|
14
|
+
var slideWidth = system.args[3] ? system.args[3].split( 'x' )[0] : 960;
|
15
|
+
var slideHeight = system.args[3] ? system.args[3].split( 'x' )[1] : 700;
|
16
|
+
|
17
|
+
page.viewportSize = {
|
18
|
+
width: slideWidth,
|
19
|
+
height: slideHeight
|
20
|
+
};
|
21
|
+
|
22
|
+
// TODO
|
23
|
+
// Something is wrong with these config values. An input
|
24
|
+
// paper width of 1920px actually results in a 756px wide
|
25
|
+
// PDF.
|
26
|
+
page.paperSize = {
|
27
|
+
width: Math.round( slideWidth * 2 ),
|
28
|
+
height: Math.round( slideHeight * 2 ),
|
29
|
+
border: 0
|
30
|
+
};
|
31
|
+
|
32
|
+
var inputFile = system.args[1] || 'index.html?print-pdf';
|
33
|
+
var outputFile = system.args[2] || 'slides.pdf';
|
34
|
+
|
35
|
+
if( outputFile.match( /\.pdf$/gi ) === null ) {
|
36
|
+
outputFile += '.pdf';
|
37
|
+
}
|
38
|
+
|
39
|
+
console.log( 'Printing PDF (Paper size: '+ page.paperSize.width + 'x' + page.paperSize.height +')' );
|
40
|
+
|
41
|
+
page.open( inputFile, function( status ) {
|
42
|
+
window.setTimeout( function() {
|
43
|
+
console.log( 'Printed succesfully' );
|
44
|
+
page.render( outputFile );
|
45
|
+
phantom.exit();
|
46
|
+
}, 1000 );
|
47
|
+
} );
|
48
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* Touch-based remote controller for your presentation courtesy
|
3
|
+
* of the folks at http://remotes.io
|
4
|
+
*/
|
5
|
+
|
6
|
+
(function(window){
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Detects if we are dealing with a touch enabled device (with some false positives)
|
10
|
+
* Borrowed from modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/touch.js
|
11
|
+
*/
|
12
|
+
var hasTouch = (function(){
|
13
|
+
return ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch;
|
14
|
+
})();
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Detects if notes are enable and the current page is opened inside an /iframe
|
18
|
+
* this prevents loading Remotes.io several times
|
19
|
+
*/
|
20
|
+
var isNotesAndIframe = (function(){
|
21
|
+
return window.RevealNotes && !(self == top);
|
22
|
+
})();
|
23
|
+
|
24
|
+
if(!hasTouch && !isNotesAndIframe){
|
25
|
+
head.ready( 'remotes.ne.min.js', function() {
|
26
|
+
new Remotes("preview")
|
27
|
+
.on("swipe-left", function(e){ Reveal.right(); })
|
28
|
+
.on("swipe-right", function(e){ Reveal.left(); })
|
29
|
+
.on("swipe-up", function(e){ Reveal.down(); })
|
30
|
+
.on("swipe-down", function(e){ Reveal.up(); })
|
31
|
+
.on("tap", function(e){ Reveal.next(); })
|
32
|
+
.on("zoom-out", function(e){ Reveal.toggleOverview(true); })
|
33
|
+
.on("zoom-in", function(e){ Reveal.toggleOverview(false); })
|
34
|
+
;
|
35
|
+
} );
|
36
|
+
|
37
|
+
head.js('https://hakim-static.s3.amazonaws.com/reveal-js/remotes.ne.min.js');
|
38
|
+
}
|
39
|
+
})(window);
|
@@ -0,0 +1,196 @@
|
|
1
|
+
/*
|
2
|
+
* Handles finding a text string anywhere in the slides and showing the next occurrence to the user
|
3
|
+
* by navigatating to that slide and highlighting it.
|
4
|
+
*
|
5
|
+
* By Jon Snyder <snyder.jon@gmail.com>, February 2013
|
6
|
+
*/
|
7
|
+
|
8
|
+
var RevealSearch = (function() {
|
9
|
+
|
10
|
+
var matchedSlides;
|
11
|
+
var currentMatchedIndex;
|
12
|
+
var searchboxDirty;
|
13
|
+
var myHilitor;
|
14
|
+
|
15
|
+
// Original JavaScript code by Chirp Internet: www.chirp.com.au
|
16
|
+
// Please acknowledge use of this code by including this header.
|
17
|
+
// 2/2013 jon: modified regex to display any match, not restricted to word boundaries.
|
18
|
+
|
19
|
+
function Hilitor(id, tag)
|
20
|
+
{
|
21
|
+
|
22
|
+
var targetNode = document.getElementById(id) || document.body;
|
23
|
+
var hiliteTag = tag || "EM";
|
24
|
+
var skipTags = new RegExp("^(?:" + hiliteTag + "|SCRIPT|FORM|SPAN)$");
|
25
|
+
var colors = ["#ff6", "#a0ffff", "#9f9", "#f99", "#f6f"];
|
26
|
+
var wordColor = [];
|
27
|
+
var colorIdx = 0;
|
28
|
+
var matchRegex = "";
|
29
|
+
var matchingSlides = [];
|
30
|
+
|
31
|
+
this.setRegex = function(input)
|
32
|
+
{
|
33
|
+
input = input.replace(/^[^\w]+|[^\w]+$/g, "").replace(/[^\w'-]+/g, "|");
|
34
|
+
matchRegex = new RegExp("(" + input + ")","i");
|
35
|
+
}
|
36
|
+
|
37
|
+
this.getRegex = function()
|
38
|
+
{
|
39
|
+
return matchRegex.toString().replace(/^\/\\b\(|\)\\b\/i$/g, "").replace(/\|/g, " ");
|
40
|
+
}
|
41
|
+
|
42
|
+
// recursively apply word highlighting
|
43
|
+
this.hiliteWords = function(node)
|
44
|
+
{
|
45
|
+
if(node == undefined || !node) return;
|
46
|
+
if(!matchRegex) return;
|
47
|
+
if(skipTags.test(node.nodeName)) return;
|
48
|
+
|
49
|
+
if(node.hasChildNodes()) {
|
50
|
+
for(var i=0; i < node.childNodes.length; i++)
|
51
|
+
this.hiliteWords(node.childNodes[i]);
|
52
|
+
}
|
53
|
+
if(node.nodeType == 3) { // NODE_TEXT
|
54
|
+
if((nv = node.nodeValue) && (regs = matchRegex.exec(nv))) {
|
55
|
+
//find the slide's section element and save it in our list of matching slides
|
56
|
+
var secnode = node.parentNode;
|
57
|
+
while (secnode.nodeName != 'SECTION') {
|
58
|
+
secnode = secnode.parentNode;
|
59
|
+
}
|
60
|
+
|
61
|
+
var slideIndex = Reveal.getIndices(secnode);
|
62
|
+
var slidelen = matchingSlides.length;
|
63
|
+
var alreadyAdded = false;
|
64
|
+
for (var i=0; i < slidelen; i++) {
|
65
|
+
if ( (matchingSlides[i].h === slideIndex.h) && (matchingSlides[i].v === slideIndex.v) ) {
|
66
|
+
alreadyAdded = true;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
if (! alreadyAdded) {
|
70
|
+
matchingSlides.push(slideIndex);
|
71
|
+
}
|
72
|
+
|
73
|
+
if(!wordColor[regs[0].toLowerCase()]) {
|
74
|
+
wordColor[regs[0].toLowerCase()] = colors[colorIdx++ % colors.length];
|
75
|
+
}
|
76
|
+
|
77
|
+
var match = document.createElement(hiliteTag);
|
78
|
+
match.appendChild(document.createTextNode(regs[0]));
|
79
|
+
match.style.backgroundColor = wordColor[regs[0].toLowerCase()];
|
80
|
+
match.style.fontStyle = "inherit";
|
81
|
+
match.style.color = "#000";
|
82
|
+
|
83
|
+
var after = node.splitText(regs.index);
|
84
|
+
after.nodeValue = after.nodeValue.substring(regs[0].length);
|
85
|
+
node.parentNode.insertBefore(match, after);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
};
|
89
|
+
|
90
|
+
// remove highlighting
|
91
|
+
this.remove = function()
|
92
|
+
{
|
93
|
+
var arr = document.getElementsByTagName(hiliteTag);
|
94
|
+
while(arr.length && (el = arr[0])) {
|
95
|
+
el.parentNode.replaceChild(el.firstChild, el);
|
96
|
+
}
|
97
|
+
};
|
98
|
+
|
99
|
+
// start highlighting at target node
|
100
|
+
this.apply = function(input)
|
101
|
+
{
|
102
|
+
if(input == undefined || !input) return;
|
103
|
+
this.remove();
|
104
|
+
this.setRegex(input);
|
105
|
+
this.hiliteWords(targetNode);
|
106
|
+
return matchingSlides;
|
107
|
+
};
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
function openSearch() {
|
112
|
+
//ensure the search term input dialog is visible and has focus:
|
113
|
+
var inputbox = document.getElementById("searchinput");
|
114
|
+
inputbox.style.display = "inline";
|
115
|
+
inputbox.focus();
|
116
|
+
inputbox.select();
|
117
|
+
}
|
118
|
+
|
119
|
+
function toggleSearch() {
|
120
|
+
var inputbox = document.getElementById("searchinput");
|
121
|
+
if (inputbox.style.display !== "inline") {
|
122
|
+
openSearch();
|
123
|
+
}
|
124
|
+
else {
|
125
|
+
inputbox.style.display = "none";
|
126
|
+
myHilitor.remove();
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
function doSearch() {
|
131
|
+
//if there's been a change in the search term, perform a new search:
|
132
|
+
if (searchboxDirty) {
|
133
|
+
var searchstring = document.getElementById("searchinput").value;
|
134
|
+
|
135
|
+
//find the keyword amongst the slides
|
136
|
+
myHilitor = new Hilitor("slidecontent");
|
137
|
+
matchedSlides = myHilitor.apply(searchstring);
|
138
|
+
currentMatchedIndex = 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
//navigate to the next slide that has the keyword, wrapping to the first if necessary
|
142
|
+
if (matchedSlides.length && (matchedSlides.length <= currentMatchedIndex)) {
|
143
|
+
currentMatchedIndex = 0;
|
144
|
+
}
|
145
|
+
if (matchedSlides.length > currentMatchedIndex) {
|
146
|
+
Reveal.slide(matchedSlides[currentMatchedIndex].h, matchedSlides[currentMatchedIndex].v);
|
147
|
+
currentMatchedIndex++;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
var dom = {};
|
152
|
+
dom.wrapper = document.querySelector( '.reveal' );
|
153
|
+
|
154
|
+
if( !dom.wrapper.querySelector( '.searchbox' ) ) {
|
155
|
+
var searchElement = document.createElement( 'div' );
|
156
|
+
searchElement.id = "searchinputdiv";
|
157
|
+
searchElement.classList.add( 'searchdiv' );
|
158
|
+
searchElement.style.position = 'absolute';
|
159
|
+
searchElement.style.top = '10px';
|
160
|
+
searchElement.style.left = '10px';
|
161
|
+
//embedded base64 search icon Designed by Sketchdock - http://www.sketchdock.com/:
|
162
|
+
searchElement.innerHTML = '<span><input type="search" id="searchinput" class="searchinput" style="vertical-align: top;"/><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJiSURBVHjatFZNaxNBGH5md+Mmu92NVdKDRipSAyqCghgQD4L4cRe86UUtAQ+eFCxoa4/25EXBFi8eBE+eRPoDhB6KgiiixdAPCEkx2pjvTXadd9yNsflwuyUDD/O+u8PzzDPvzOwyx3EwyCZhwG3gAkp7MnpjgbopjsltcD4gjuXZZKeAR348MYLYTm3LzOs/y3j3JTfZxgXWXmTuwPHIc4VmoOmv5IrI53+AO2DdHLjkDWQ3GoEEVFXtXQOvkSnPWcyUceviLhwbDYv8/XIVj97kse7TodLvZXxYxrPUHkQ1ufXs3FEdybEIxucySOesoNvUgWU1cP3MkCBfTFdw9fGaAMVmRELq7LBw2Q3/FaAxxWIRpw+ZIr/7IouPqzUBiqmdHAv7EuhRAwf1er2Vy4x1jW3b2d5Jfvu5IPp7l2LYbcgCFFNb+FoJ7oBqEAqFMPNqFcmEgVMJDfMT+1tvN0pNjERlMS6QA5pFOKxiKVPFhakPeL3It+WGJUDxt2wFR+JhzI7v5ctkd8DXOZAkCYYxhO+lKm4+Xfqz/rIixBuNBl7eOYzkQQNzqX249mRl6zUgEcYkaJrGhUwBinVdh6IouPzwE6/DL5w4oLkH8y981aDf+uq6hlKpJESiUdNfDZi7/ehG9K6KfiA3pml0PLcsq+cSMTj2NL9ukc4UOmz7AZ3+crkC4mHujFvXNaMFB3bEr8xPS6p5O+jXxq4VZtaen7/PwzrntjcLUE0iHPS1Ud1cdiEJl/8WivZk0wXd7zWOMkeF8s0CcAmkNrC2nvXZDbbbN73ccYnZoH9bfgswAFzAe9/h3dbKAAAAAElFTkSuQmCC" id="searchbutton" class="searchicon" style="vertical-align: top; margin-top: -1px;"/></span>';
|
163
|
+
dom.wrapper.appendChild( searchElement );
|
164
|
+
}
|
165
|
+
|
166
|
+
document.getElementById("searchbutton").addEventListener( 'click', function(event) {
|
167
|
+
doSearch();
|
168
|
+
}, false );
|
169
|
+
|
170
|
+
document.getElementById("searchinput").addEventListener( 'keyup', function( event ) {
|
171
|
+
switch (event.keyCode) {
|
172
|
+
case 13:
|
173
|
+
event.preventDefault();
|
174
|
+
doSearch();
|
175
|
+
searchboxDirty = false;
|
176
|
+
break;
|
177
|
+
default:
|
178
|
+
searchboxDirty = true;
|
179
|
+
}
|
180
|
+
}, false );
|
181
|
+
|
182
|
+
// Open the search when the 's' key is hit (yes, this conflicts with the notes plugin, disabling for now)
|
183
|
+
/*
|
184
|
+
document.addEventListener( 'keydown', function( event ) {
|
185
|
+
// Disregard the event if the target is editable or a
|
186
|
+
// modifier is present
|
187
|
+
if ( document.querySelector( ':focus' ) !== null || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey ) return;
|
188
|
+
|
189
|
+
if( event.keyCode === 83 ) {
|
190
|
+
event.preventDefault();
|
191
|
+
openSearch();
|
192
|
+
}
|
193
|
+
}, false );
|
194
|
+
*/
|
195
|
+
return { open: openSearch };
|
196
|
+
})();
|
@@ -0,0 +1,278 @@
|
|
1
|
+
// Custom reveal.js integration
|
2
|
+
(function(){
|
3
|
+
var isEnabled = true;
|
4
|
+
|
5
|
+
document.querySelector( '.reveal .slides' ).addEventListener( 'mousedown', function( event ) {
|
6
|
+
var modifier = ( Reveal.getConfig().zoomKey ? Reveal.getConfig().zoomKey : 'alt' ) + 'Key';
|
7
|
+
|
8
|
+
var zoomPadding = 20;
|
9
|
+
var revealScale = Reveal.getScale();
|
10
|
+
|
11
|
+
if( event[ modifier ] && isEnabled ) {
|
12
|
+
event.preventDefault();
|
13
|
+
|
14
|
+
var bounds = event.target.getBoundingClientRect();
|
15
|
+
|
16
|
+
zoom.to({
|
17
|
+
x: ( bounds.left * revealScale ) - zoomPadding,
|
18
|
+
y: ( bounds.top * revealScale ) - zoomPadding,
|
19
|
+
width: ( bounds.width * revealScale ) + ( zoomPadding * 2 ),
|
20
|
+
height: ( bounds.height * revealScale ) + ( zoomPadding * 2 ),
|
21
|
+
pan: false
|
22
|
+
});
|
23
|
+
}
|
24
|
+
} );
|
25
|
+
|
26
|
+
Reveal.addEventListener( 'overviewshown', function() { isEnabled = false; } );
|
27
|
+
Reveal.addEventListener( 'overviewhidden', function() { isEnabled = true; } );
|
28
|
+
})();
|
29
|
+
|
30
|
+
/*!
|
31
|
+
* zoom.js 0.3 (modified for use with reveal.js)
|
32
|
+
* http://lab.hakim.se/zoom-js
|
33
|
+
* MIT licensed
|
34
|
+
*
|
35
|
+
* Copyright (C) 2011-2014 Hakim El Hattab, http://hakim.se
|
36
|
+
*/
|
37
|
+
var zoom = (function(){
|
38
|
+
|
39
|
+
// The current zoom level (scale)
|
40
|
+
var level = 1;
|
41
|
+
|
42
|
+
// The current mouse position, used for panning
|
43
|
+
var mouseX = 0,
|
44
|
+
mouseY = 0;
|
45
|
+
|
46
|
+
// Timeout before pan is activated
|
47
|
+
var panEngageTimeout = -1,
|
48
|
+
panUpdateInterval = -1;
|
49
|
+
|
50
|
+
// Check for transform support so that we can fallback otherwise
|
51
|
+
var supportsTransforms = 'WebkitTransform' in document.body.style ||
|
52
|
+
'MozTransform' in document.body.style ||
|
53
|
+
'msTransform' in document.body.style ||
|
54
|
+
'OTransform' in document.body.style ||
|
55
|
+
'transform' in document.body.style;
|
56
|
+
|
57
|
+
if( supportsTransforms ) {
|
58
|
+
// The easing that will be applied when we zoom in/out
|
59
|
+
document.body.style.transition = 'transform 0.8s ease';
|
60
|
+
document.body.style.OTransition = '-o-transform 0.8s ease';
|
61
|
+
document.body.style.msTransition = '-ms-transform 0.8s ease';
|
62
|
+
document.body.style.MozTransition = '-moz-transform 0.8s ease';
|
63
|
+
document.body.style.WebkitTransition = '-webkit-transform 0.8s ease';
|
64
|
+
}
|
65
|
+
|
66
|
+
// Zoom out if the user hits escape
|
67
|
+
document.addEventListener( 'keyup', function( event ) {
|
68
|
+
if( level !== 1 && event.keyCode === 27 ) {
|
69
|
+
zoom.out();
|
70
|
+
}
|
71
|
+
} );
|
72
|
+
|
73
|
+
// Monitor mouse movement for panning
|
74
|
+
document.addEventListener( 'mousemove', function( event ) {
|
75
|
+
if( level !== 1 ) {
|
76
|
+
mouseX = event.clientX;
|
77
|
+
mouseY = event.clientY;
|
78
|
+
}
|
79
|
+
} );
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Applies the CSS required to zoom in, prefers the use of CSS3
|
83
|
+
* transforms but falls back on zoom for IE.
|
84
|
+
*
|
85
|
+
* @param {Object} rect
|
86
|
+
* @param {Number} scale
|
87
|
+
*/
|
88
|
+
function magnify( rect, scale ) {
|
89
|
+
|
90
|
+
var scrollOffset = getScrollOffset();
|
91
|
+
|
92
|
+
// Ensure a width/height is set
|
93
|
+
rect.width = rect.width || 1;
|
94
|
+
rect.height = rect.height || 1;
|
95
|
+
|
96
|
+
// Center the rect within the zoomed viewport
|
97
|
+
rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
|
98
|
+
rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
|
99
|
+
|
100
|
+
if( supportsTransforms ) {
|
101
|
+
// Reset
|
102
|
+
if( scale === 1 ) {
|
103
|
+
document.body.style.transform = '';
|
104
|
+
document.body.style.OTransform = '';
|
105
|
+
document.body.style.msTransform = '';
|
106
|
+
document.body.style.MozTransform = '';
|
107
|
+
document.body.style.WebkitTransform = '';
|
108
|
+
}
|
109
|
+
// Scale
|
110
|
+
else {
|
111
|
+
var origin = scrollOffset.x +'px '+ scrollOffset.y +'px',
|
112
|
+
transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
|
113
|
+
|
114
|
+
document.body.style.transformOrigin = origin;
|
115
|
+
document.body.style.OTransformOrigin = origin;
|
116
|
+
document.body.style.msTransformOrigin = origin;
|
117
|
+
document.body.style.MozTransformOrigin = origin;
|
118
|
+
document.body.style.WebkitTransformOrigin = origin;
|
119
|
+
|
120
|
+
document.body.style.transform = transform;
|
121
|
+
document.body.style.OTransform = transform;
|
122
|
+
document.body.style.msTransform = transform;
|
123
|
+
document.body.style.MozTransform = transform;
|
124
|
+
document.body.style.WebkitTransform = transform;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
else {
|
128
|
+
// Reset
|
129
|
+
if( scale === 1 ) {
|
130
|
+
document.body.style.position = '';
|
131
|
+
document.body.style.left = '';
|
132
|
+
document.body.style.top = '';
|
133
|
+
document.body.style.width = '';
|
134
|
+
document.body.style.height = '';
|
135
|
+
document.body.style.zoom = '';
|
136
|
+
}
|
137
|
+
// Scale
|
138
|
+
else {
|
139
|
+
document.body.style.position = 'relative';
|
140
|
+
document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
|
141
|
+
document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
|
142
|
+
document.body.style.width = ( scale * 100 ) + '%';
|
143
|
+
document.body.style.height = ( scale * 100 ) + '%';
|
144
|
+
document.body.style.zoom = scale;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
level = scale;
|
149
|
+
|
150
|
+
if( document.documentElement.classList ) {
|
151
|
+
if( level !== 1 ) {
|
152
|
+
document.documentElement.classList.add( 'zoomed' );
|
153
|
+
}
|
154
|
+
else {
|
155
|
+
document.documentElement.classList.remove( 'zoomed' );
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Pan the document when the mosue cursor approaches the edges
|
162
|
+
* of the window.
|
163
|
+
*/
|
164
|
+
function pan() {
|
165
|
+
var range = 0.12,
|
166
|
+
rangeX = window.innerWidth * range,
|
167
|
+
rangeY = window.innerHeight * range,
|
168
|
+
scrollOffset = getScrollOffset();
|
169
|
+
|
170
|
+
// Up
|
171
|
+
if( mouseY < rangeY ) {
|
172
|
+
window.scroll( scrollOffset.x, scrollOffset.y - ( 1 - ( mouseY / rangeY ) ) * ( 14 / level ) );
|
173
|
+
}
|
174
|
+
// Down
|
175
|
+
else if( mouseY > window.innerHeight - rangeY ) {
|
176
|
+
window.scroll( scrollOffset.x, scrollOffset.y + ( 1 - ( window.innerHeight - mouseY ) / rangeY ) * ( 14 / level ) );
|
177
|
+
}
|
178
|
+
|
179
|
+
// Left
|
180
|
+
if( mouseX < rangeX ) {
|
181
|
+
window.scroll( scrollOffset.x - ( 1 - ( mouseX / rangeX ) ) * ( 14 / level ), scrollOffset.y );
|
182
|
+
}
|
183
|
+
// Right
|
184
|
+
else if( mouseX > window.innerWidth - rangeX ) {
|
185
|
+
window.scroll( scrollOffset.x + ( 1 - ( window.innerWidth - mouseX ) / rangeX ) * ( 14 / level ), scrollOffset.y );
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
function getScrollOffset() {
|
190
|
+
return {
|
191
|
+
x: window.scrollX !== undefined ? window.scrollX : window.pageXOffset,
|
192
|
+
y: window.scrollY !== undefined ? window.scrollY : window.pageYOffset
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
return {
|
197
|
+
/**
|
198
|
+
* Zooms in on either a rectangle or HTML element.
|
199
|
+
*
|
200
|
+
* @param {Object} options
|
201
|
+
* - element: HTML element to zoom in on
|
202
|
+
* OR
|
203
|
+
* - x/y: coordinates in non-transformed space to zoom in on
|
204
|
+
* - width/height: the portion of the screen to zoom in on
|
205
|
+
* - scale: can be used instead of width/height to explicitly set scale
|
206
|
+
*/
|
207
|
+
to: function( options ) {
|
208
|
+
|
209
|
+
// Due to an implementation limitation we can't zoom in
|
210
|
+
// to another element without zooming out first
|
211
|
+
if( level !== 1 ) {
|
212
|
+
zoom.out();
|
213
|
+
}
|
214
|
+
else {
|
215
|
+
options.x = options.x || 0;
|
216
|
+
options.y = options.y || 0;
|
217
|
+
|
218
|
+
// If an element is set, that takes precedence
|
219
|
+
if( !!options.element ) {
|
220
|
+
// Space around the zoomed in element to leave on screen
|
221
|
+
var padding = 20;
|
222
|
+
var bounds = options.element.getBoundingClientRect();
|
223
|
+
|
224
|
+
options.x = bounds.left - padding;
|
225
|
+
options.y = bounds.top - padding;
|
226
|
+
options.width = bounds.width + ( padding * 2 );
|
227
|
+
options.height = bounds.height + ( padding * 2 );
|
228
|
+
}
|
229
|
+
|
230
|
+
// If width/height values are set, calculate scale from those values
|
231
|
+
if( options.width !== undefined && options.height !== undefined ) {
|
232
|
+
options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / options.height ), 1 );
|
233
|
+
}
|
234
|
+
|
235
|
+
if( options.scale > 1 ) {
|
236
|
+
options.x *= options.scale;
|
237
|
+
options.y *= options.scale;
|
238
|
+
|
239
|
+
magnify( options, options.scale );
|
240
|
+
|
241
|
+
if( options.pan !== false ) {
|
242
|
+
|
243
|
+
// Wait with engaging panning as it may conflict with the
|
244
|
+
// zoom transition
|
245
|
+
panEngageTimeout = setTimeout( function() {
|
246
|
+
panUpdateInterval = setInterval( pan, 1000 / 60 );
|
247
|
+
}, 800 );
|
248
|
+
|
249
|
+
}
|
250
|
+
}
|
251
|
+
}
|
252
|
+
},
|
253
|
+
|
254
|
+
/**
|
255
|
+
* Resets the document zoom state to its default.
|
256
|
+
*/
|
257
|
+
out: function() {
|
258
|
+
clearTimeout( panEngageTimeout );
|
259
|
+
clearInterval( panUpdateInterval );
|
260
|
+
|
261
|
+
magnify( { x: 0, y: 0 }, 1 );
|
262
|
+
|
263
|
+
level = 1;
|
264
|
+
},
|
265
|
+
|
266
|
+
// Alias
|
267
|
+
magnify: function( options ) { this.to( options ) },
|
268
|
+
reset: function() { this.out() },
|
269
|
+
|
270
|
+
zoomLevel: function() {
|
271
|
+
return level;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
})();
|
276
|
+
|
277
|
+
|
278
|
+
|