Update jQuery to 1.7 + adjust for deprecations
[deck.js.git] / introduction / index.html
blobe69ec0c4a6c56b9a323ccaf31c735ab1bb816da2
1 <!DOCTYPE html>
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]-->
6 <head>
7 <meta charset="utf-8">
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" href="../core/deck.core.css">
18 <link rel="stylesheet" href="../extensions/goto/deck.goto.css">
19 <link rel="stylesheet" href="../extensions/menu/deck.menu.css">
20 <link rel="stylesheet" href="../extensions/navigation/deck.navigation.css">
21 <link rel="stylesheet" href="../extensions/status/deck.status.css">
22 <link rel="stylesheet" href="../extensions/hash/deck.hash.css">
24 <!-- Theme CSS files (menu swaps these out) -->
25 <link rel="stylesheet" id="style-theme-link" href="../themes/style/web-2.0.css">
26 <link rel="stylesheet" id="transition-theme-link" href="../themes/transition/horizontal-slide.css">
28 <!-- Custom CSS just for this page -->
29 <link rel="stylesheet" href="introduction.css">
31 <script src="../modernizr.custom.js"></script>
32 </head>
34 <body class="deck-container">
36 <div class="theme-menu">
37 <h2>Themes</h2>
39 <label for="style-themes">Style:</label>
40 <select id="style-themes">
41 <option selected value="../themes/style/web-2.0.css">Web 2.0</option>
42 <option value="../themes/style/swiss.css">Swiss</option>
43 <option value="../themes/style/neon.css">Neon</option>
44 <option value="">None</option>
45 </select>
47 <label for="transition-themes">Transition:</label>
48 <select id="transition-themes">
49 <option selected value="../themes/transition/horizontal-slide.css">Horizontal Slide</option>
50 <option value="../themes/transition/vertical-slide.css">Vertical Slide</option>
51 <option value="../themes/transition/fade.css">Fade</option>
52 <option value="">None</option>
53 </select>
54 </div>
56 <section class="slide" id="title-slide">
57 <h1>Getting Started with deck.js</h1>
58 </section>
60 <section class="slide" id="how-to-overview">
61 <h2>How to Make a Deck</h2>
62 <ol>
63 <li>
64 <h3>Write Slides</h3>
65 <p>Slide content is simple&nbsp;HTML.</p>
66 </li>
67 <li>
68 <h3>Choose Themes</h3>
69 <p>One for slide styles and one for deck&nbsp;transitions.</p>
70 </li>
71 <li>
72 <h3>Include Extensions</h3>
73 <p>Add extra functionality to your deck, or leave it stripped&nbsp;down.</p>
74 </li>
75 </ol>
76 </section>
78 <section class="slide" id="markup">
79 <h2>The Markup</h2>
80 <p>Slides are just HTML elements with a class of <code>slide</code>.</p>
81 <pre><code>&lt;section class=&quot;slide&quot;&gt;
82 &lt;h2&gt;How to Make a Deck&lt;/h2&gt;
83 &lt;ol&gt;
84 &lt;li&gt;
85 &lt;h3&gt;Write Slides&lt;/h3&gt;
86 &lt;p&gt;Slide content is simple HTML.&lt;/p&gt;
87 &lt;/li&gt;
88 &lt;li&gt;
89 &lt;h3&gt;Choose Themes&lt;/h3&gt;
90 &lt;p&gt;One for slide styles and one for deck transitions.&lt;/p&gt;
91 &lt;/li&gt;
92 &hellip;
93 &lt;/ol&gt;
94 &lt;/section&gt;</code></pre>
95 </section>
97 <section class="slide" id="themes">
98 <h2>Style Themes</h2>
99 <p>Customizes the colors, typography, and layout of slide&nbsp;content.</p>
100 <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;/path/to/css/style-theme.css&quot;&gt;</code></pre>
101 <h2>Transition Themes</h2>
102 <p>Defines transitions between slides using CSS3 transitions. Less capable browsers fall back to cutaways. But <strong>you</strong> aren&rsquo;t using <em>those</em> browsers to give your presentations, are&nbsp;you&hellip;</p>
103 <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;/path/to/css/transition-theme.css&quot;&gt;</code></pre>
104 </section>
106 <section class="slide" id="extensions">
107 <h2>Extensions</h2>
108 <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&nbsp;deck:</p>
110 <ul>
111 <li class="slide" id="extensions-goto">
112 <strong>deck.goto</strong>: Adds a shortcut key to jump to any slide number. Hit g, type in the slide number, and hit&nbsp;enter.
113 </li>
115 <li class="slide" id="extensions-hash">
116 <strong>deck.hash</strong>: Enables internal linking within slides, deep linking to individual slides, and updates the address bar &amp; a permalink anchor with each slide&nbsp;change.
117 </li>
119 <li class="slide" id="extensions-menu">
120 <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&nbsp;views.
121 </li>
123 <li class="slide" id="extensions-navigation">
124 <strong>deck.navigation</strong>: Adds clickable left and right buttons for the less keyboard&nbsp;inclined.
125 </li>
127 <li class="slide" id="extensions-status">
128 <strong>deck.status</strong>: Adds a page number indicator. (current/total)
129 </li>
130 </ul>
132 <p class="slide" id="extension-folders">Each extension folder in the download package contains the necessary JavaScript, CSS, and HTML&nbsp;files. For a complete list of extension modules included in deck.js, check out the&nbsp;<a href="http://imakewebthings.github.com/deck.js/docs">documentation</a>.</p>
133 </section>
135 <section class="slide" id="nested">
136 <h2>Nested Slides</h2>
137 <p>That last slide had a few steps. To create substeps in slides, just nest them:</p>
138 <pre><code>&lt;section class=&quot;slide&quot;&gt;
139 &lt;h2&gt;Extensions&lt;/h2&gt;
140 &lt;p&gt;Core gives you basic slide functionality...&lt;/p&gt;
141 &lt;ul&gt;
142 &lt;li class=&quot;slide&quot;&gt;
143 &lt;h3&gt;deck.goto&lt;/h3&gt;
144 &lt;p&gt;Adds a shortcut key to jump to any slide number...&lt;/p&gt;
145 &lt;/li&gt;
146 &lt;li class=&quot;slide&quot;&gt;...&lt;/li&gt;
147 &lt;li class=&quot;slide&quot;&gt;...&lt;/li&gt;
148 &lt;li class=&quot;slide&quot;&gt;...&lt;/li&gt;
149 &lt;/ul&gt;
150 &lt;/section&gt;</code></pre>
151 </section>
153 <section class="slide" id="elements-images">
154 <h2>Other Elements: Images</h2>
155 <img src="http://placekitten.com/600/375" alt="Kitties">
156 <pre><code>&lt;img src=&quot;http://placekitten.com/600/375&quot; alt=&quot;Kitties&quot;&gt;</code></pre>
157 </section>
159 <section class="slide" id="elements-blockquotes">
160 <h2>Other Elements: Blockquotes</h2>
161 <blockquote cite="http://example.org">
162 <p>Food is an important part of a balanced diet.</p>
163 <p><cite>Fran Lebowitz</cite></p>
164 </blockquote>
165 <pre><code>&lt;blockquote cite=&quot;http://example.org&quot;&gt;
166 &lt;p&gt;Food is an important part of a balanced diet.&lt;/p&gt;
167 &lt;p&gt;&lt;cite&gt;Fran Lebowitz&lt;/cite&gt;&lt;/p&gt;
168 &lt;/blockquote&gt;</code></pre>
169 </section>
172 <section class="slide" id="elements-videos">
173 <h2>Other Elements: Video Embeds</h2>
174 <p>Embed videos from your favorite online video service or with an HTML5 video&nbsp;element.</p>
176 <iframe src="http://player.vimeo.com/video/1063136?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>
178 <pre><code>&lt;iframe src=&quot;http://player.vimeo.com/video/1063136?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; width=&quot;400&quot; height=&quot;225&quot; frameborder=&quot;0&quot;&gt;&lt;/iframe&gt;</code></pre>
179 </section>
181 <section class="slide" id="digging-deeper">
182 <h2>Digging Deeper</h2>
183 <p>If you want to learn about making your own themes, extending deck.js, and more, check out the&nbsp;<a href="../docs/">documentation</a>.</p>
184 </section>
186 <a href="#" class="deck-prev-link" title="Previous">&#8592;</a>
187 <a href="#" class="deck-next-link" title="Next">&#8594;</a>
189 <p class="deck-status">
190 <span class="deck-status-current"></span>
192 <span class="deck-status-total"></span>
193 </p>
195 <form action="." method="get" class="goto-form">
196 <label for="goto-slide">Go to slide:</label>
197 <input type="number" name="slidenum" id="goto-slide">
198 <input type="submit" value="Go">
199 </form>
201 <a href="." title="Permalink to this slide" class="deck-permalink">#</a>
204 <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
205 <script src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
206 <script>window.jQuery || document.write('<script src="../jquery-1.7.min.js"><\/script>')</script>
208 <!-- Deck Core and extensions -->
209 <script src="../core/deck.core.js"></script>
210 <script src="../extensions/menu/deck.menu.js"></script>
211 <script src="../extensions/goto/deck.goto.js"></script>
212 <script src="../extensions/status/deck.status.js"></script>
213 <script src="../extensions/navigation/deck.navigation.js"></script>
214 <script src="../extensions/hash/deck.hash.js"></script>
216 <!-- Specific to this page -->
217 <script src="introduction.js"></script>
219 </body>
220 </html>