2 <!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
3 <!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
4 <!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
8 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge,chrome=1">
10 <title>Getting Started with deck.js
</title>
12 <meta name=
"description" content=
"A jQuery library for modern HTML presentations">
13 <meta name=
"author" content=
"Caleb Troughton">
14 <meta name=
"viewport" content=
"width=1024, user-scalable=no">
16 <!-- Core and extension CSS files -->
17 <link rel=
"stylesheet" media=
"screen" href=
"../core/deck.core.css">
18 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/goto/deck.goto.css">
19 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/menu/deck.menu.css">
20 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/navigation/deck.navigation.css">
21 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/status/deck.status.css">
22 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/hash/deck.hash.css">
23 <link rel=
"stylesheet" media=
"screen" href=
"../extensions/scale/deck.scale.css">
25 <!-- Style theme. More available in /themes/style/ or create your own. -->
26 <link rel=
"stylesheet" media=
"screen" href=
"../themes/style/web-2.0.css">
28 <!-- Transition theme. More available in /themes/transition/ or create your own. -->
29 <link rel=
"stylesheet" media=
"screen" href=
"../themes/transition/horizontal-slide.css">
31 <!-- Basic black and white print styles -->
32 <link rel=
"stylesheet" media=
"print" href=
"../core/print.css">
34 <script src=
"../modernizr.custom.js"></script>
38 <div class=
"deck-container">
41 <section class=
"slide" id=
"title-slide">
42 <h1>Getting Started with deck.js
</h1>
45 <section class=
"slide" id=
"how-to-overview">
46 <h2>How to Make a Deck
</h2>
50 <p>Slide content is simple
HTML.
</p>
53 <h3>Choose Themes
</h3>
54 <p>One for slide styles and one for deck
transitions.
</p>
57 <h3>Include Extensions
</h3>
58 <p>Add extra functionality to your deck, or leave it stripped
down.
</p>
63 <section class=
"slide" id=
"quick-start">
65 <p>When you
<a href=
"https://github.com/imakewebthings/deck.js/zipball/stable">download
</a> deck.js, it will include a file named
<code>boilerplate.html
</code>. You can immediately start editing slides in this page and viewing them in your web browser. Later on, when you are comfortable customizing the deck, you can edit the various pieces of the boilerplate or make your own to suit your needs.
</p>
68 <section class=
"slide" id=
"markup">
70 <p>Slides are just HTML elements with a class of
<code>slide
</code>.
</p>
71 <pre><code><section class=
"slide
">
72 <h2
>How to Make a Deck
</h2
>
75 <h3
>Write Slides
</h3
>
76 <p
>Slide content is simple HTML.
</p
>
79 <h3
>Choose Themes
</h3
>
80 <p
>One for slide styles and one for deck transitions.
</p
>
84 </section
></code></pre>
87 <section class=
"slide" id=
"themes">
89 <p>Customizes the colors, typography, and layout of slide
content.
</p>
90 <pre><code><link rel=
"stylesheet
" href=
"/path/to/css/style-theme.css
"></code></pre>
91 <h2>Transition Themes
</h2>
92 <p>Defines transitions between slides using CSS3 transitions. Less capable browsers fall back to cutaways. But
<strong>you
</strong> aren
’t using
<em>those
</em> browsers to give your presentations, are
you
…</p>
93 <pre><code><link rel=
"stylesheet
" href=
"/path/to/css/transition-theme.css
"></code></pre>
96 <section class=
"slide" id=
"extensions">
98 <p>Core gives you basic slide functionality with left and right arrow navigation, but you may want more. Here are the ones included in this
deck:
</p>
101 <li class=
"slide" id=
"extensions-goto">
102 <strong>deck.goto
</strong>: Adds a shortcut key to jump to any slide number. Hit g, type in the slide number, and hit
enter.
105 <li class=
"slide" id=
"extensions-hash">
106 <strong>deck.hash
</strong>: Enables internal linking within slides, deep linking to individual slides, and updates the address bar
& a permalink anchor with each slide
change.
109 <li class=
"slide" id=
"extensions-menu">
110 <strong>deck.menu
</strong>: Adds a menu view, letting you see all slides in a grid. Hit m to toggle to menu view, continue navigating your deck, and hit m to return to normal view. Touch devices can double-tap the deck to switch between
views.
113 <li class=
"slide" id=
"extensions-navigation">
114 <strong>deck.navigation
</strong>: Adds clickable left and right buttons for the less keyboard
inclined.
117 <li class=
"slide" id=
"extensions-status">
118 <strong>deck.status
</strong>: Adds a page number indicator. (current/total)
121 <li class=
"slide" id=
"extensions-scale">
122 <strong>deck.scale
</strong>: Scales each slide to fit within the deck container using CSS Transforms for those browsers that support them.
126 <p class=
"slide" id=
"extension-folders">Each extension folder in the download package contains the necessary JavaScript, CSS, and HTML
files. For a complete list of extension modules included in deck.js, check out the
<a href=
"http://imakewebthings.github.com/deck.js/docs">documentation
</a>.
</p>
129 <section class=
"slide" id=
"nested">
130 <h2>Nested Slides
</h2>
131 <p>That last slide had a few steps. To create substeps in slides, just nest them:
</p>
132 <pre><code><section class=
"slide
">
133 <h2
>Extensions
</h2
>
134 <p
>Core gives you basic slide functionality...
</p
>
136 <li class=
"slide
">
137 <h3
>deck.goto
</h3
>
138 <p
>Adds a shortcut key to jump to any slide number...
</p
>
140 <li class=
"slide
">...
</li
>
141 <li class=
"slide
">...
</li
>
142 <li class=
"slide
">...
</li
>
144 </section
></code></pre>
147 <section class=
"slide" id=
"elements-images">
148 <h2>Other Elements: Images
</h2>
149 <img src=
"http://placekitten.com/600/375" alt=
"Kitties">
150 <pre><code><img src=
"http://placekitten.com/
600/
375" alt=
"Kitties
"></code></pre>
153 <section class=
"slide" id=
"elements-blockquotes">
154 <h2>Other Elements: Blockquotes
</h2>
155 <blockquote cite=
"http://example.org">
156 <p>Food is an important part of a balanced diet.
</p>
157 <p><cite>Fran Lebowitz
</cite></p>
159 <pre><code><blockquote cite=
"http://example.org
">
160 <p
>Food is an important part of a balanced diet.
</p
>
161 <p
><cite
>Fran Lebowitz
</cite
></p
>
162 </blockquote
></code></pre>
166 <section class=
"slide" id=
"elements-videos">
167 <h2>Other Elements: Video Embeds
</h2>
168 <p>Embed videos from your favorite online video service or with an HTML5 video
element.
</p>
170 <iframe src=
"http://player.vimeo.com/video/1063136?title=0&byline=0&portrait=0" width=
"400" height=
"225" frameborder=
"0"></iframe>
172 <pre><code><iframe src=
"http://player.vimeo.com/video/
1063136?title=
0&amp;byline=
0&amp;portrait=
0" width=
"400" height=
"225" frameborder=
"0"></iframe
></code></pre>
175 <section class=
"slide" id=
"digging-deeper">
176 <h2>Digging Deeper
</h2>
177 <p>If you want to learn about making your own themes, extending deck.js, and more, check out the
<a href=
"../docs/">documentation
</a>.
</p>
180 <!-- deck.navigation snippet -->
181 <a href=
"#" class=
"deck-prev-link" title=
"Previous">←</a>
182 <a href=
"#" class=
"deck-next-link" title=
"Next">→</a>
184 <!-- deck.status snippet -->
185 <p class=
"deck-status">
186 <span class=
"deck-status-current"></span>
188 <span class=
"deck-status-total"></span>
191 <!-- deck.goto snippet -->
192 <form action=
"." method=
"get" class=
"goto-form">
193 <label for=
"goto-slide">Go to slide:
</label>
194 <input type=
"text" name=
"slidenum" id=
"goto-slide" list=
"goto-datalist">
195 <datalist id=
"goto-datalist"></datalist>
196 <input type=
"submit" value=
"Go">
199 <!-- deck.hash snippet -->
200 <a href=
"." title=
"Permalink to this slide" class=
"deck-permalink">#
</a>
203 <script src=
"../jquery.min.js"></script>
205 <!-- Deck Core and extensions -->
206 <script src=
"../core/deck.core.js"></script>
207 <script src=
"../extensions/hash/deck.hash.js"></script>
208 <script src=
"../extensions/menu/deck.menu.js"></script>
209 <script src=
"../extensions/goto/deck.goto.js"></script>
210 <script src=
"../extensions/status/deck.status.js"></script>
211 <script src=
"../extensions/navigation/deck.navigation.js"></script>
212 <script src=
"../extensions/scale/deck.scale.js"></script>
214 <!-- Initialize the deck -->