hyla 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile.lock +35 -7
- data/README.adoc +10 -2
- data/bin/hyla +16 -13
- data/hyla.gemspec +6 -3
- data/lib/hyla.rb +5 -1
- data/lib/hyla/command.rb +12 -10
- data/lib/hyla/commands/create.rb +21 -12
- data/lib/hyla/commands/generate.rb +168 -59
- data/lib/hyla/commands/new.rb +36 -15
- data/lib/hyla/commands/watch.rb +6 -2
- data/lib/hyla/configuration.rb +169 -27
- data/lib/hyla/core_ext.rb +24 -0
- data/lib/hyla/project.rb +1 -1
- data/lib/resources/backends/haml/deckjs/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/deckjs/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/deckjs/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/deckjs/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_listing.html.haml +32 -0
- data/lib/resources/backends/haml/deckjs/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_olist.html.haml +11 -0
- data/lib/resources/backends/haml/deckjs/block_open.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/deckjs/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_preamble.html.haml +3 -0
- data/lib/resources/backends/haml/deckjs/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/deckjs/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/deckjs/block_table.html.haml +48 -0
- data/lib/resources/backends/haml/deckjs/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/deckjs/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/deckjs/block_video.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/document.html.haml +182 -0
- data/lib/resources/backends/haml/deckjs/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/deckjs/inline_anchor.html.haml +12 -0
- data/lib/resources/backends/haml/deckjs/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/deckjs/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/deckjs/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/deckjs/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/deckjs/inline_quoted.html.haml +19 -0
- data/lib/resources/backends/haml/deckjs/section.html.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_admonition.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_colist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_dlist.xml.haml +61 -0
- data/lib/resources/backends/haml/docbook45/block_example.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_floating_title.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_image.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_listing.xml.haml +14 -0
- data/lib/resources/backends/haml/docbook45/block_literal.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_olist.xml.haml +8 -0
- data/lib/resources/backends/haml/docbook45/block_open.xml.haml +25 -0
- data/lib/resources/backends/haml/docbook45/block_page_break.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_paragraph.xml.haml +6 -0
- data/lib/resources/backends/haml/docbook45/block_pass.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/block_preamble.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_quote.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/block_ruler.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/block_sidebar.xml.haml +7 -0
- data/lib/resources/backends/haml/docbook45/block_table.xml.haml +37 -0
- data/lib/resources/backends/haml/docbook45/block_ulist.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/block_verse.xml.haml +10 -0
- data/lib/resources/backends/haml/docbook45/document.xml.haml +63 -0
- data/lib/resources/backends/haml/docbook45/embedded.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/helpers.rb +7 -0
- data/lib/resources/backends/haml/docbook45/inline_anchor.xml.haml +13 -0
- data/lib/resources/backends/haml/docbook45/inline_break.xml.haml +2 -0
- data/lib/resources/backends/haml/docbook45/inline_callout.xml.haml +1 -0
- data/lib/resources/backends/haml/docbook45/inline_footnote.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_image.xml.haml +5 -0
- data/lib/resources/backends/haml/docbook45/inline_indexterm.xml.haml +18 -0
- data/lib/resources/backends/haml/docbook45/inline_quoted.xml.haml +21 -0
- data/lib/resources/backends/haml/docbook45/section.xml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_admonition.html.haml +14 -0
- data/lib/resources/backends/haml/html5/block_audio.html.haml +7 -0
- data/lib/resources/backends/haml/html5/block_colist.html.haml +21 -0
- data/lib/resources/backends/haml/html5/block_dlist.html.haml +54 -0
- data/lib/resources/backends/haml/html5/block_example.haml.haml +5 -0
- data/lib/resources/backends/haml/html5/block_floating_title.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_listing.html.haml +31 -0
- data/lib/resources/backends/haml/html5/block_literal.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_math.html.haml +10 -0
- data/lib/resources/backends/haml/html5/block_olist.html.haml +9 -0
- data/lib/resources/backends/haml/html5/block_open.html.haml +15 -0
- data/lib/resources/backends/haml/html5/block_page_break.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_paragraph.html.haml +4 -0
- data/lib/resources/backends/haml/html5/block_pass.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_preamble.html.haml +6 -0
- data/lib/resources/backends/haml/html5/block_quote.html.haml +12 -0
- data/lib/resources/backends/haml/html5/block_ruler.html.haml +1 -0
- data/lib/resources/backends/haml/html5/block_sidebar.html.haml +5 -0
- data/lib/resources/backends/haml/html5/block_table.html.haml +47 -0
- data/lib/resources/backends/haml/html5/block_toc.html.haml +11 -0
- data/lib/resources/backends/haml/html5/block_ulist.html.haml +25 -0
- data/lib/resources/backends/haml/html5/block_verse.html.haml +13 -0
- data/lib/resources/backends/haml/html5/block_video.html.haml +27 -0
- data/lib/resources/backends/haml/html5/document.html.haml +114 -0
- data/lib/resources/backends/haml/html5/embedded.html.haml +10 -0
- data/lib/resources/backends/haml/html5/helpers.rb +7 -0
- data/lib/resources/backends/haml/html5/inline_anchor.html.haml +11 -0
- data/lib/resources/backends/haml/html5/inline_break.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_button.html.haml +1 -0
- data/lib/resources/backends/haml/html5/inline_callout.html.haml +7 -0
- data/lib/resources/backends/haml/html5/inline_footnote.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_image.html.haml +24 -0
- data/lib/resources/backends/haml/html5/inline_indexterm.html.haml +2 -0
- data/lib/resources/backends/haml/html5/inline_kbd.html.haml +8 -0
- data/lib/resources/backends/haml/html5/inline_menu.html.haml +15 -0
- data/lib/resources/backends/haml/html5/inline_quoted.html.haml +22 -0
- data/lib/resources/backends/haml/html5/section.html.haml +21 -0
- data/lib/resources/backends/haml/revealjs/block_image.html.haml +11 -0
- data/lib/resources/backends/haml/revealjs/block_olist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/block_ulist.html.haml +8 -0
- data/lib/resources/backends/haml/revealjs/document.html.haml +61 -0
- data/lib/resources/backends/haml/revealjs/section.html.haml +10 -0
- data/lib/resources/backends/slim/docbook45/block_admonition.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_colist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_dlist.xml.slim +61 -0
- data/lib/resources/backends/slim/docbook45/block_example.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_floating_title.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_image.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_listing.xml.slim +14 -0
- data/lib/resources/backends/slim/docbook45/block_literal.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_olist.xml.slim +8 -0
- data/lib/resources/backends/slim/docbook45/block_open.xml.slim +25 -0
- data/lib/resources/backends/slim/docbook45/block_page_break.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_paragraph.xml.slim +6 -0
- data/lib/resources/backends/slim/docbook45/block_pass.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/block_preamble.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_quote.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/block_ruler.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/block_sidebar.xml.slim +7 -0
- data/lib/resources/backends/slim/docbook45/block_table.xml.slim +36 -0
- data/lib/resources/backends/slim/docbook45/block_ulist.xml.slim +18 -0
- data/lib/resources/backends/slim/docbook45/block_verse.xml.slim +10 -0
- data/lib/resources/backends/slim/docbook45/document.xml.slim +63 -0
- data/lib/resources/backends/slim/docbook45/embedded.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/helpers.rb +9 -0
- data/lib/resources/backends/slim/docbook45/inline_anchor.xml.slim +13 -0
- data/lib/resources/backends/slim/docbook45/inline_break.xml.slim +2 -0
- data/lib/resources/backends/slim/docbook45/inline_callout.xml.slim +1 -0
- data/lib/resources/backends/slim/docbook45/inline_footnote.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_image.xml.slim +4 -0
- data/lib/resources/backends/slim/docbook45/inline_indexterm.xml.slim +16 -0
- data/lib/resources/backends/slim/docbook45/inline_quoted.xml.slim +21 -0
- data/lib/resources/backends/slim/docbook45/section.xml.slim +5 -0
- data/lib/resources/backends/slim/document.html.bk.slim +335 -0
- data/lib/resources/backends/slim/dzslides/block_admonition.html.slim +19 -0
- data/lib/resources/backends/slim/dzslides/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/dzslides/block_dlist.html.slim +10 -0
- data/lib/resources/backends/slim/dzslides/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_image.html.slim +14 -0
- data/lib/resources/backends/slim/dzslides/block_listing.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/block_literal.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_olist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_open.html.slim +4 -0
- data/lib/resources/backends/slim/dzslides/block_paragraph.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_quote.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/dzslides/block_ulist.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/block_verse.html.slim +12 -0
- data/lib/resources/backends/slim/dzslides/block_video.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/document.html.slim +67 -0
- data/lib/resources/backends/slim/dzslides/embedded.html.slim +1 -0
- data/lib/resources/backends/slim/dzslides/helpers.rb +9 -0
- data/lib/resources/backends/slim/dzslides/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/dzslides/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/dzslides/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/dzslides/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/dzslides/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/dzslides/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/dzslides/inline_quoted.html.slim +23 -0
- data/lib/resources/backends/slim/dzslides/section.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/html5/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/html5/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/html5/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/html5/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/html5/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/html5/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/html5/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/html5/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/html5/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/html5/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/html5/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/html5/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/html5/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/html5/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/html5/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/html5/document.html.slim +112 -0
- data/lib/resources/backends/slim/html5/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/html5/helpers.rb +8 -0
- data/lib/resources/backends/slim/html5/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/html5/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/html5/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/html5/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/html5/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/html5/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/html5/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/html5/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/html5/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/html5/section.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_admonition.html.slim +13 -0
- data/lib/resources/backends/slim/revealjs/block_audio.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_colist.html.slim +20 -0
- data/lib/resources/backends/slim/revealjs/block_dlist.html.slim +53 -0
- data/lib/resources/backends/slim/revealjs/block_example.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_floating_title.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_image.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_listing.html.slim +31 -0
- data/lib/resources/backends/slim/revealjs/block_literal.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_math.html.slim +10 -0
- data/lib/resources/backends/slim/revealjs/block_olist.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/block_open.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/block_page_break.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_paragraph.html.slim +4 -0
- data/lib/resources/backends/slim/revealjs/block_pass.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_preamble.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/block_quote.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_ruler.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/block_sidebar.html.slim +5 -0
- data/lib/resources/backends/slim/revealjs/block_table.html.slim +45 -0
- data/lib/resources/backends/slim/revealjs/block_toc.html.slim +12 -0
- data/lib/resources/backends/slim/revealjs/block_ulist.html.slim +25 -0
- data/lib/resources/backends/slim/revealjs/block_verse.html.slim +14 -0
- data/lib/resources/backends/slim/revealjs/block_video.html.slim +27 -0
- data/lib/resources/backends/slim/revealjs/document.html.slim +87 -0
- data/lib/resources/backends/slim/revealjs/embedded.html.slim +9 -0
- data/lib/resources/backends/slim/revealjs/helpers.rb +8 -0
- data/lib/resources/backends/slim/revealjs/inline_anchor.html.slim +11 -0
- data/lib/resources/backends/slim/revealjs/inline_break.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_button.html.slim +1 -0
- data/lib/resources/backends/slim/revealjs/inline_callout.html.slim +7 -0
- data/lib/resources/backends/slim/revealjs/inline_footnote.html.slim +6 -0
- data/lib/resources/backends/slim/revealjs/inline_image.html.slim +24 -0
- data/lib/resources/backends/slim/revealjs/inline_indexterm.html.slim +2 -0
- data/lib/resources/backends/slim/revealjs/inline_kbd.html.slim +8 -0
- data/lib/resources/backends/slim/revealjs/inline_menu.html.slim +15 -0
- data/lib/resources/backends/slim/revealjs/inline_quoted.html.slim +22 -0
- data/lib/resources/backends/slim/revealjs/section.html.slim +3 -0
- data/lib/resources/deck.js/core/deck.core.css +407 -0
- data/lib/resources/deck.js/core/deck.core.js +498 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/README.md +10 -0
- data/lib/resources/deck.js/extensions/deck.js-blank/deck.blank.js +33 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.css +41 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.html +7 -0
- data/lib/resources/deck.js/extensions/goto/deck.goto.js +170 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.css +13 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.html +2 -0
- data/lib/resources/deck.js/extensions/hash/deck.hash.js +142 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.css +47 -0
- data/lib/resources/deck.js/extensions/menu/deck.menu.js +187 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.css +43 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.html +3 -0
- data/lib/resources/deck.js/extensions/navigation/deck.navigation.js +92 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.css +28 -0
- data/lib/resources/deck.js/extensions/scale/deck.scale.js +170 -0
- data/lib/resources/deck.js/extensions/split/README.md +30 -0
- data/lib/resources/deck.js/extensions/split/deck.split.js +59 -0
- data/lib/resources/deck.js/extensions/status/deck.status.css +18 -0
- data/lib/resources/deck.js/extensions/status/deck.status.html +6 -0
- data/lib/resources/deck.js/extensions/status/deck.status.js +95 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.css +40 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.html +12 -0
- data/lib/resources/deck.js/extensions/toc/deck.toc.js +271 -0
- data/lib/resources/deck.js/jquery-1.7.2.min.js +4 -0
- data/lib/resources/deck.js/jquery.min.js +4 -0
- data/lib/resources/deck.js/modernizr.custom.js +4 -0
- data/lib/resources/deck.js/themes/style/beamer.css +286 -0
- data/lib/resources/deck.js/themes/style/neon.css +123 -0
- data/lib/resources/deck.js/themes/style/swiss.css +84 -0
- data/lib/resources/deck.js/themes/style/web-2.0.css +214 -0
- data/lib/resources/deck.js/themes/transition/beamer.css +66 -0
- data/lib/resources/deck.js/themes/transition/fade.css +43 -0
- data/lib/resources/deck.js/themes/transition/horizontal-slide.css +76 -0
- data/lib/resources/deck.js/themes/transition/vertical-slide.css +94 -0
- data/lib/resources/revealjs/LICENSE +19 -0
- data/lib/resources/revealjs/css/print/paper.css +176 -0
- data/lib/resources/revealjs/css/print/pdf.css +190 -0
- data/lib/resources/revealjs/css/reveal.css +1880 -0
- data/lib/resources/revealjs/css/reveal.min.css +7 -0
- data/lib/resources/revealjs/css/theme/README.md +25 -0
- data/lib/resources/revealjs/css/theme/beige.css +148 -0
- data/lib/resources/revealjs/css/theme/blood.css +175 -0
- data/lib/resources/revealjs/css/theme/default.css +148 -0
- data/lib/resources/revealjs/css/theme/moon.css +148 -0
- data/lib/resources/revealjs/css/theme/night.css +136 -0
- data/lib/resources/revealjs/css/theme/serif.css +138 -0
- data/lib/resources/revealjs/css/theme/simple.css +138 -0
- data/lib/resources/revealjs/css/theme/sky.css +145 -0
- data/lib/resources/revealjs/css/theme/solarized.css +148 -0
- data/lib/resources/revealjs/css/theme/source/beige.scss +50 -0
- data/lib/resources/revealjs/css/theme/source/blood.scss +91 -0
- data/lib/resources/revealjs/css/theme/source/default.scss +42 -0
- data/lib/resources/revealjs/css/theme/source/moon.scss +68 -0
- data/lib/resources/revealjs/css/theme/source/night.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/serif.scss +35 -0
- data/lib/resources/revealjs/css/theme/source/simple.scss +38 -0
- data/lib/resources/revealjs/css/theme/source/sky.scss +46 -0
- data/lib/resources/revealjs/css/theme/source/solarized.scss +74 -0
- data/lib/resources/revealjs/css/theme/template/mixins.scss +29 -0
- data/lib/resources/revealjs/css/theme/template/settings.scss +34 -0
- data/lib/resources/revealjs/css/theme/template/theme.scss +170 -0
- data/lib/resources/revealjs/js/reveal.js +3382 -0
- data/lib/resources/revealjs/js/reveal.min.js +9 -0
- data/lib/resources/revealjs/lib/css/zenburn.css +114 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.eot +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.svg +230 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.ttf +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic-webfont.woff +0 -0
- data/lib/resources/revealjs/lib/font/league_gothic_license +2 -0
- data/lib/resources/revealjs/lib/js/classList.js +2 -0
- data/lib/resources/revealjs/lib/js/head.min.js +8 -0
- data/lib/resources/revealjs/lib/js/html5shiv.js +7 -0
- data/lib/resources/revealjs/plugin/highlight/highlight.js +32 -0
- data/lib/resources/revealjs/plugin/leap/leap.js +157 -0
- data/lib/resources/revealjs/plugin/markdown/example.html +129 -0
- data/lib/resources/revealjs/plugin/markdown/example.md +31 -0
- data/lib/resources/revealjs/plugin/markdown/markdown.js +392 -0
- data/lib/resources/revealjs/plugin/markdown/marked.js +37 -0
- data/lib/resources/revealjs/plugin/math/math.js +64 -0
- data/lib/resources/revealjs/plugin/multiplex/client.js +13 -0
- data/lib/resources/revealjs/plugin/multiplex/index.js +56 -0
- data/lib/resources/revealjs/plugin/multiplex/master.js +51 -0
- data/lib/resources/revealjs/plugin/notes-server/client.js +57 -0
- data/lib/resources/revealjs/plugin/notes-server/index.js +59 -0
- data/lib/resources/revealjs/plugin/notes-server/notes.html +142 -0
- data/lib/resources/revealjs/plugin/notes/notes.html +267 -0
- data/lib/resources/revealjs/plugin/notes/notes.js +78 -0
- data/lib/resources/revealjs/plugin/postmessage/example.html +39 -0
- data/lib/resources/revealjs/plugin/postmessage/postmessage.js +42 -0
- data/lib/resources/revealjs/plugin/print-pdf/print-pdf.js +44 -0
- data/lib/resources/revealjs/plugin/remotes/remotes.js +39 -0
- data/lib/resources/revealjs/plugin/search/search.js +196 -0
- data/lib/resources/revealjs/plugin/zoom-js/zoom.js +258 -0
- data/lib/resources/styles/asciidoctor.css +652 -0
- data/lib/resources/styles/colony.css +660 -0
- data/lib/resources/styles/foundation-lime.css +657 -0
- data/lib/resources/styles/foundation-potion.css +657 -0
- data/lib/resources/styles/foundation.css +648 -0
- data/lib/resources/styles/github.css +669 -0
- data/lib/resources/styles/golo.css +669 -0
- data/lib/resources/styles/iconic.css +692 -0
- data/lib/resources/styles/maker.css +668 -0
- data/lib/resources/styles/readthedocs.css +669 -0
- data/lib/resources/styles/redhat.css +654 -0
- data/lib/resources/styles/riak.css +689 -0
- data/lib/resources/styles/rocket-panda.css +662 -0
- data/lib/resources/styles/rubygems.css +650 -0
- data/lib/templates/_config.yml +27 -0
- data/lib/templates/{training → book}/GemFile +2 -1
- data/lib/templates/{training → book}/development/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/development/book.adoc +121 -0
- data/lib/templates/{training → book}/development/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/development/video/small.ogv +0 -0
- data/lib/templates/{training → book}/introduction/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/book/introduction/book.adoc +121 -0
- data/lib/templates/{training → book}/introduction/image/hyla_frog.jpg +0 -0
- data/lib/templates/{training → book}/introduction/video/small.ogv +0 -0
- data/lib/templates/book/readme.adoc +10 -0
- data/lib/templates/sample/asciidoc_article.adoc +101 -10
- data/lib/templates/sample/asciidoc_audio.adoc +1 -1
- data/lib/templates/sample/asciidoc_book.adoc +125 -0
- data/lib/templates/sample/asciidoc_image.adoc +26 -0
- data/lib/templates/sample/asciidoc_report.adoc +66 -0
- data/lib/templates/sample/asciidoc_source.adoc +53 -0
- data/lib/templates/sample/asciidoc_table.adoc +36 -0
- data/lib/templates/sample/asciidoc_video.adoc +9 -1
- data/lib/templates/sample/slideshow_revealjs.adoc +26 -0
- data/lib/templates/training-exercises/_config.yml +3 -0
- data/lib/templates/training/{introduction → module-1}/article.adoc +7 -2
- data/lib/templates/training/module-1/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-1/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-1/video/small.ogv +0 -0
- data/lib/templates/training/{development → module-2}/article.adoc +7 -2
- data/lib/templates/training/module-2/audio/ocean_waves.mp3 +0 -0
- data/lib/templates/training/module-2/image/hyla_arborea.jpg +0 -0
- data/lib/templates/training/module-2/video/small.ogv +0 -0
- data/lib/templates/training/readme.adoc +10 -1
- data/scenario.adoc +113 -20
- data/test/reports/test-1.0.x-11-12-2013.txt +123 -0
- data/todo.adoc +39 -0
- metadata +473 -51
- data/lib/hyla/training.rb +0 -25
- data/lib/templates/sample/asciidoc_source_highlight.adoc +0 -37
- data/lib/templates/training-exercises/Gemfile +0 -4
@@ -0,0 +1,10 @@
|
|
1
|
+
#deck.blank.js
|
2
|
+
|
3
|
+
Deck.blank.js is an extension for the deck.js framework to allow blanking of the current slide, to draw the attention back to the presenter
|
4
|
+
|
5
|
+
At the moment, the key 'b' is hardcoded to blank/unblank.
|
6
|
+
|
7
|
+
##Todo
|
8
|
+
|
9
|
+
- make the blanking key configurable
|
10
|
+
- make the background-color during blanking configurable
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*!
|
2
|
+
Deck JS - deck.blank - v1.0
|
3
|
+
Copyright (c) 2012 Mike Kellenberger
|
4
|
+
*/
|
5
|
+
|
6
|
+
/*
|
7
|
+
This module adds the necessary methods and key bindings to blank/unblank the screen by pressing 'b'.
|
8
|
+
*/
|
9
|
+
(function($, deck, undefined) {
|
10
|
+
var $d = $(document);
|
11
|
+
|
12
|
+
$[deck]('extend', 'activateBlankScreen', function() {
|
13
|
+
$[deck]('getSlide').hide();
|
14
|
+
});
|
15
|
+
|
16
|
+
$[deck]('extend', 'deactivateBlankScreen', function() {
|
17
|
+
$[deck]('getSlide').show();
|
18
|
+
});
|
19
|
+
|
20
|
+
$[deck]('extend', 'blankScreen', function() {
|
21
|
+
$[deck]('getSlide').is(":visible") ? $[deck]('activateBlankScreen') : $[deck]('deactivateBlankScreen');
|
22
|
+
});
|
23
|
+
|
24
|
+
$d.bind('deck.init', function() {
|
25
|
+
// Bind key events
|
26
|
+
$d.unbind('keydown.blank').bind('keydown.blank', function(e) {
|
27
|
+
if (e.which==66) {
|
28
|
+
$[deck]('blankScreen');
|
29
|
+
e.preventDefault();
|
30
|
+
}
|
31
|
+
});
|
32
|
+
});
|
33
|
+
})(jQuery, 'deck');
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.deck-container .goto-form {
|
2
|
+
position: absolute;
|
3
|
+
z-index: 3;
|
4
|
+
bottom: 10px;
|
5
|
+
left: 50%;
|
6
|
+
height: 1.75em;
|
7
|
+
margin: 0 0 0 -9.125em;
|
8
|
+
line-height: 1.75em;
|
9
|
+
padding: 0.625em;
|
10
|
+
display: none;
|
11
|
+
background: #ccc;
|
12
|
+
overflow: hidden;
|
13
|
+
}
|
14
|
+
.borderradius .deck-container .goto-form {
|
15
|
+
-webkit-border-radius: 10px;
|
16
|
+
-moz-border-radius: 10px;
|
17
|
+
border-radius: 10px;
|
18
|
+
}
|
19
|
+
.deck-container .goto-form label {
|
20
|
+
font-weight: bold;
|
21
|
+
}
|
22
|
+
.deck-container .goto-form label, .deck-container .goto-form input {
|
23
|
+
display: inline-block;
|
24
|
+
font-family: inherit;
|
25
|
+
}
|
26
|
+
|
27
|
+
.deck-goto .goto-form {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
|
31
|
+
#goto-slide {
|
32
|
+
width: 8.375em;
|
33
|
+
margin: 0 0.625em;
|
34
|
+
height: 1.4375em;
|
35
|
+
}
|
36
|
+
|
37
|
+
@media print {
|
38
|
+
.goto-form, #goto-slide {
|
39
|
+
display: none !important;
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<!-- Place the following snippet at the bottom of the deck container. -->
|
2
|
+
<form action="" method="get" class="goto-form">
|
3
|
+
<label for="goto-slide">Go to slide:</label>
|
4
|
+
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
|
5
|
+
<datalist id="goto-datalist"></datalist>
|
6
|
+
<input type="submit" value="Go">
|
7
|
+
</form>
|
@@ -0,0 +1,170 @@
|
|
1
|
+
/*!
|
2
|
+
Deck JS - deck.goto
|
3
|
+
Copyright (c) 2011 Caleb Troughton
|
4
|
+
Dual licensed under the MIT license and GPL license.
|
5
|
+
https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt
|
6
|
+
https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*
|
10
|
+
This module adds the necessary methods and key bindings to show and hide a form
|
11
|
+
for jumping to any slide number/id in the deck (and processes that form
|
12
|
+
accordingly). The form-showing state is indicated by the presence of a class on
|
13
|
+
the deck container.
|
14
|
+
*/
|
15
|
+
(function($, deck, undefined) {
|
16
|
+
var $d = $(document);
|
17
|
+
|
18
|
+
/*
|
19
|
+
Extends defaults/options.
|
20
|
+
|
21
|
+
options.classes.goto
|
22
|
+
This class is added to the deck container when showing the Go To Slide
|
23
|
+
form.
|
24
|
+
|
25
|
+
options.selectors.gotoDatalist
|
26
|
+
The element that matches this selector is the datalist element that will
|
27
|
+
be populated with options for each of the slide ids. In browsers that
|
28
|
+
support the datalist element, this provides a drop list of slide ids to
|
29
|
+
aid the user in selecting a slide.
|
30
|
+
|
31
|
+
options.selectors.gotoForm
|
32
|
+
The element that matches this selector is the form that is submitted
|
33
|
+
when a user hits enter after typing a slide number/id in the gotoInput
|
34
|
+
element.
|
35
|
+
|
36
|
+
options.selectors.gotoInput
|
37
|
+
The element that matches this selector is the text input field for
|
38
|
+
entering a slide number/id in the Go To Slide form.
|
39
|
+
|
40
|
+
options.keys.goto
|
41
|
+
The numeric keycode used to show the Go To Slide form.
|
42
|
+
|
43
|
+
options.countNested
|
44
|
+
If false, only top level slides will be counted when entering a
|
45
|
+
slide number.
|
46
|
+
*/
|
47
|
+
$.extend(true, $[deck].defaults, {
|
48
|
+
classes: {
|
49
|
+
goto: 'deck-goto'
|
50
|
+
},
|
51
|
+
|
52
|
+
selectors: {
|
53
|
+
gotoDatalist: '#goto-datalist',
|
54
|
+
gotoForm: '.goto-form',
|
55
|
+
gotoInput: '#goto-slide'
|
56
|
+
},
|
57
|
+
|
58
|
+
keys: {
|
59
|
+
goto: 71 // g
|
60
|
+
},
|
61
|
+
|
62
|
+
countNested: true
|
63
|
+
});
|
64
|
+
|
65
|
+
/*
|
66
|
+
jQuery.deck('showGoTo')
|
67
|
+
|
68
|
+
Shows the Go To Slide form by adding the class specified by the goto class
|
69
|
+
option to the deck container.
|
70
|
+
*/
|
71
|
+
$[deck]('extend', 'showGoTo', function() {
|
72
|
+
$[deck]('getContainer').addClass($[deck]('getOptions').classes.goto);
|
73
|
+
$($[deck]('getOptions').selectors.gotoInput).focus();
|
74
|
+
});
|
75
|
+
|
76
|
+
/*
|
77
|
+
jQuery.deck('hideGoTo')
|
78
|
+
|
79
|
+
Hides the Go To Slide form by removing the class specified by the goto class
|
80
|
+
option from the deck container.
|
81
|
+
*/
|
82
|
+
$[deck]('extend', 'hideGoTo', function() {
|
83
|
+
$($[deck]('getOptions').selectors.gotoInput).blur();
|
84
|
+
$[deck]('getContainer').removeClass($[deck]('getOptions').classes.goto);
|
85
|
+
});
|
86
|
+
|
87
|
+
/*
|
88
|
+
jQuery.deck('toggleGoTo')
|
89
|
+
|
90
|
+
Toggles between showing and hiding the Go To Slide form.
|
91
|
+
*/
|
92
|
+
$[deck]('extend', 'toggleGoTo', function() {
|
93
|
+
$[deck]($[deck]('getContainer').hasClass($[deck]('getOptions').classes.goto) ? 'hideGoTo' : 'showGoTo');
|
94
|
+
});
|
95
|
+
|
96
|
+
$d.bind('deck.init', function() {
|
97
|
+
var opts = $[deck]('getOptions'),
|
98
|
+
$datalist = $(opts.selectors.gotoDatalist),
|
99
|
+
slideTest = $.map([
|
100
|
+
opts.classes.before,
|
101
|
+
opts.classes.previous,
|
102
|
+
opts.classes.current,
|
103
|
+
opts.classes.next,
|
104
|
+
opts.classes.after
|
105
|
+
], function(el, i) {
|
106
|
+
return '.' + el;
|
107
|
+
}).join(', '),
|
108
|
+
rootCounter = 1;
|
109
|
+
|
110
|
+
// Bind key events
|
111
|
+
$d.unbind('keydown.deckgoto').bind('keydown.deckgoto', function(e) {
|
112
|
+
var key = $[deck]('getOptions').keys.goto;
|
113
|
+
|
114
|
+
if (e.which === key || $.inArray(e.which, key) > -1) {
|
115
|
+
e.preventDefault();
|
116
|
+
$[deck]('toggleGoTo');
|
117
|
+
}
|
118
|
+
});
|
119
|
+
|
120
|
+
/* Populate datalist and work out countNested*/
|
121
|
+
$.each($[deck]('getSlides'), function(i, $slide) {
|
122
|
+
var id = $slide.attr('id'),
|
123
|
+
$parentSlides = $slide.parentsUntil(opts.selectors.container, slideTest);
|
124
|
+
|
125
|
+
if (id) {
|
126
|
+
$datalist.append('<option value="' + id + '">');
|
127
|
+
}
|
128
|
+
|
129
|
+
if ($parentSlides.length) {
|
130
|
+
$slide.removeData('rootIndex');
|
131
|
+
}
|
132
|
+
else if (!opts.countNested) {
|
133
|
+
$slide.data('rootIndex', rootCounter);
|
134
|
+
++rootCounter;
|
135
|
+
}
|
136
|
+
});
|
137
|
+
|
138
|
+
// Process form submittal, go to the slide entered
|
139
|
+
$(opts.selectors.gotoForm)
|
140
|
+
.unbind('submit.deckgoto')
|
141
|
+
.bind('submit.deckgoto', function(e) {
|
142
|
+
var $field = $($[deck]('getOptions').selectors.gotoInput),
|
143
|
+
ndx = parseInt($field.val(), 10);
|
144
|
+
|
145
|
+
if (!$[deck]('getOptions').countNested) {
|
146
|
+
if (ndx >= rootCounter) return false;
|
147
|
+
$.each($[deck]('getSlides'), function(i, $slide) {
|
148
|
+
if ($slide.data('rootIndex') === ndx) {
|
149
|
+
ndx = i + 1;
|
150
|
+
return false;
|
151
|
+
}
|
152
|
+
});
|
153
|
+
}
|
154
|
+
|
155
|
+
$[deck]('go', isNaN(ndx) ? $field.val() : ndx - 1);
|
156
|
+
$[deck]('hideGoTo');
|
157
|
+
$field.val('');
|
158
|
+
|
159
|
+
e.preventDefault();
|
160
|
+
});
|
161
|
+
|
162
|
+
// Dont let keys in the input trigger deck actions
|
163
|
+
$(opts.selectors.gotoInput)
|
164
|
+
.unbind('keydown.deckgoto')
|
165
|
+
.bind('keydown.deckgoto', function(e) {
|
166
|
+
e.stopPropagation();
|
167
|
+
});
|
168
|
+
});
|
169
|
+
})(jQuery, 'deck');
|
170
|
+
|
@@ -0,0 +1,142 @@
|
|
1
|
+
/*!
|
2
|
+
Deck JS - deck.hash
|
3
|
+
Copyright (c) 2011 Caleb Troughton
|
4
|
+
Dual licensed under the MIT license and GPL license.
|
5
|
+
https://github.com/imakewebthings/deck.js/blob/master/MIT-license.txt
|
6
|
+
https://github.com/imakewebthings/deck.js/blob/master/GPL-license.txt
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*
|
10
|
+
This module adds deep linking to individual slides, enables internal links
|
11
|
+
to slides within decks, and updates the address bar with the hash as the user
|
12
|
+
moves through the deck. A permalink anchor is also updated. Standard themes
|
13
|
+
hide this link in browsers that support the History API, and show it for
|
14
|
+
those that do not. Slides that do not have an id are assigned one according to
|
15
|
+
the hashPrefix option. In addition to the on-slide container state class
|
16
|
+
kept by core, this module adds an on-slide state class that uses the id of each
|
17
|
+
slide.
|
18
|
+
*/
|
19
|
+
(function ($, deck, window, undefined) {
|
20
|
+
var $d = $(document),
|
21
|
+
$window = $(window),
|
22
|
+
|
23
|
+
/* Collection of internal fragment links in the deck */
|
24
|
+
$internals,
|
25
|
+
|
26
|
+
/*
|
27
|
+
Internal only function. Given a string, extracts the id from the hash,
|
28
|
+
matches it to the appropriate slide, and navigates there.
|
29
|
+
*/
|
30
|
+
goByHash = function(str) {
|
31
|
+
var id = str.substr(str.indexOf("#") + 1),
|
32
|
+
slides = $[deck]('getSlides');
|
33
|
+
|
34
|
+
$.each(slides, function(i, $el) {
|
35
|
+
if ($el.attr('id') === id) {
|
36
|
+
$[deck]('go', i);
|
37
|
+
return false;
|
38
|
+
}
|
39
|
+
});
|
40
|
+
|
41
|
+
// If we don't set these to 0 the container scrolls due to hashchange
|
42
|
+
$[deck]('getContainer').scrollLeft(0).scrollTop(0);
|
43
|
+
};
|
44
|
+
|
45
|
+
/*
|
46
|
+
Extends defaults/options.
|
47
|
+
|
48
|
+
options.selectors.hashLink
|
49
|
+
The element matching this selector has its href attribute updated to
|
50
|
+
the hash of the current slide as the user navigates through the deck.
|
51
|
+
|
52
|
+
options.hashPrefix
|
53
|
+
Every slide that does not have an id is assigned one at initialization.
|
54
|
+
Assigned ids take the form of hashPrefix + slideIndex, e.g., slide-0,
|
55
|
+
slide-12, etc.
|
56
|
+
|
57
|
+
options.preventFragmentScroll
|
58
|
+
When deep linking to a hash of a nested slide, this scrolls the deck
|
59
|
+
container to the top, undoing the natural browser behavior of scrolling
|
60
|
+
to the document fragment on load.
|
61
|
+
*/
|
62
|
+
$.extend(true, $[deck].defaults, {
|
63
|
+
selectors: {
|
64
|
+
hashLink: '.deck-permalink'
|
65
|
+
},
|
66
|
+
|
67
|
+
hashPrefix: 'slide-',
|
68
|
+
preventFragmentScroll: true
|
69
|
+
});
|
70
|
+
|
71
|
+
|
72
|
+
$d.bind('deck.init', function() {
|
73
|
+
var opts = $[deck]('getOptions');
|
74
|
+
$internals = $(),
|
75
|
+
slides = $[deck]('getSlides');
|
76
|
+
|
77
|
+
$.each(slides, function(i, $el) {
|
78
|
+
var hash;
|
79
|
+
|
80
|
+
/* Hand out ids to the unfortunate slides born without them */
|
81
|
+
if (!$el.attr('id') || $el.data('deckAssignedId') === $el.attr('id')) {
|
82
|
+
$el.attr('id', opts.hashPrefix + i);
|
83
|
+
$el.data('deckAssignedId', opts.hashPrefix + i);
|
84
|
+
}
|
85
|
+
|
86
|
+
hash ='#' + $el.attr('id');
|
87
|
+
|
88
|
+
/* Deep link to slides on init */
|
89
|
+
if (hash === window.location.hash) {
|
90
|
+
$[deck]('go', i);
|
91
|
+
}
|
92
|
+
|
93
|
+
/* Add internal links to this slide */
|
94
|
+
$internals = $internals.add('a[href="' + hash + '"]');
|
95
|
+
});
|
96
|
+
|
97
|
+
if (!Modernizr.hashchange) {
|
98
|
+
/* Set up internal links using click for the poor browsers
|
99
|
+
without a hashchange event. */
|
100
|
+
$internals.unbind('click.deckhash').bind('click.deckhash', function(e) {
|
101
|
+
goByHash($(this).attr('href'));
|
102
|
+
});
|
103
|
+
}
|
104
|
+
|
105
|
+
/* Set up first id container state class */
|
106
|
+
if (slides.length) {
|
107
|
+
$[deck]('getContainer').addClass(opts.classes.onPrefix + $[deck]('getSlide').attr('id'));
|
108
|
+
};
|
109
|
+
})
|
110
|
+
/* Update permalink, address bar, and state class on a slide change */
|
111
|
+
.bind('deck.change', function(e, from, to) {
|
112
|
+
var hash = '#' + $[deck]('getSlide', to).attr('id'),
|
113
|
+
hashPath = window.location.href.replace(/#.*/, '') + hash,
|
114
|
+
opts = $[deck]('getOptions'),
|
115
|
+
osp = opts.classes.onPrefix,
|
116
|
+
$c = $[deck]('getContainer');
|
117
|
+
|
118
|
+
$c.removeClass(osp + $[deck]('getSlide', from).attr('id'));
|
119
|
+
$c.addClass(osp + $[deck]('getSlide', to).attr('id'));
|
120
|
+
|
121
|
+
$(opts.selectors.hashLink).attr('href', hashPath);
|
122
|
+
if (Modernizr.history) {
|
123
|
+
window.history.replaceState({}, "", hashPath);
|
124
|
+
}
|
125
|
+
});
|
126
|
+
|
127
|
+
/* Deals with internal links in modern browsers */
|
128
|
+
$window.bind('hashchange.deckhash', function(e) {
|
129
|
+
if (e.originalEvent && e.originalEvent.newURL) {
|
130
|
+
goByHash(e.originalEvent.newURL);
|
131
|
+
}
|
132
|
+
else {
|
133
|
+
goByHash(window.location.hash);
|
134
|
+
}
|
135
|
+
})
|
136
|
+
/* Prevent scrolling on deep links */
|
137
|
+
.bind('load', function() {
|
138
|
+
if ($[deck]('getOptions').preventFragmentScroll) {
|
139
|
+
$[deck]('getContainer').scrollLeft(0).scrollTop(0);
|
140
|
+
}
|
141
|
+
});
|
142
|
+
})(jQuery, 'deck', this);
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.deck-menu .slide {
|
2
|
+
background: #eee;
|
3
|
+
position: relative;
|
4
|
+
left: 0;
|
5
|
+
top: 0;
|
6
|
+
visibility: visible;
|
7
|
+
cursor: pointer;
|
8
|
+
}
|
9
|
+
.no-csstransforms .deck-menu > .slide {
|
10
|
+
float: left;
|
11
|
+
width: 22%;
|
12
|
+
height: 22%;
|
13
|
+
min-height: 0;
|
14
|
+
margin: 1%;
|
15
|
+
font-size: 0.22em;
|
16
|
+
overflow: hidden;
|
17
|
+
padding: 0 0.5%;
|
18
|
+
}
|
19
|
+
.csstransforms .deck-menu > .slide {
|
20
|
+
-webkit-transform: scale(0.22) !important;
|
21
|
+
-moz-transform: scale(0.22) !important;
|
22
|
+
-o-transform: scale(0.22) !important;
|
23
|
+
-ms-transform: scale(0.22) !important;
|
24
|
+
transform: scale(0.22) !important;
|
25
|
+
-webkit-transform-origin: 0 0;
|
26
|
+
-moz-transform-origin: 0 0;
|
27
|
+
-o-transform-origin: 0 0;
|
28
|
+
-ms-transform-origin: 0 0;
|
29
|
+
transform-origin: 0 0;
|
30
|
+
-webkit-box-sizing: border-box;
|
31
|
+
-moz-box-sizing: border-box;
|
32
|
+
box-sizing: border-box;
|
33
|
+
width: 100%;
|
34
|
+
height: 100%;
|
35
|
+
overflow: hidden;
|
36
|
+
padding: 0 48px;
|
37
|
+
margin: 12px;
|
38
|
+
}
|
39
|
+
.deck-menu iframe, .deck-menu img, .deck-menu video {
|
40
|
+
max-width: 100%;
|
41
|
+
}
|
42
|
+
.deck-menu .deck-current, .no-touch .deck-menu .slide:hover {
|
43
|
+
background: #ddf;
|
44
|
+
}
|
45
|
+
.deck-menu.deck-container:hover .deck-prev-link, .deck-menu.deck-container:hover .deck-next-link {
|
46
|
+
display: none;
|
47
|
+
}
|