216 lines
8.6 KiB
HTML
216 lines
8.6 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<!--[if lt IE 7]> <html class="no-js ie6" lang="en"> <![endif]-->
|
||
|
<!--[if IE 7]> <html class="no-js ie7" lang="en"> <![endif]-->
|
||
|
<!--[if IE 8]> <html class="no-js ie8" lang="en"> <![endif]-->
|
||
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
|
|
||
|
<title>Getting Started with deck.js</title>
|
||
|
|
||
|
<meta name="description" content="A jQuery library for modern HTML presentations">
|
||
|
<meta name="author" content="Caleb Troughton">
|
||
|
<meta name="viewport" content="width=1024, user-scalable=no">
|
||
|
|
||
|
<!-- Core and extension CSS files -->
|
||
|
<link rel="stylesheet" href="../core/deck.core.css">
|
||
|
<link rel="stylesheet" href="../extensions/goto/deck.goto.css">
|
||
|
<link rel="stylesheet" href="../extensions/menu/deck.menu.css">
|
||
|
<link rel="stylesheet" href="../extensions/navigation/deck.navigation.css">
|
||
|
<link rel="stylesheet" href="../extensions/status/deck.status.css">
|
||
|
<link rel="stylesheet" href="../extensions/hash/deck.hash.css">
|
||
|
<link rel="stylesheet" href="../extensions/scale/deck.scale.css">
|
||
|
|
||
|
<!-- Style theme. More available in /themes/style/ or create your own. -->
|
||
|
<link rel="stylesheet" href="../themes/style/web-2.0.css">
|
||
|
|
||
|
<!-- Transition theme. More available in /themes/transition/ or create your own. -->
|
||
|
<link rel="stylesheet" href="../themes/transition/horizontal-slide.css">
|
||
|
|
||
|
<script src="../modernizr.custom.js"></script>
|
||
|
</head>
|
||
|
|
||
|
<body class="deck-container">
|
||
|
|
||
|
<!-- Begin slides -->
|
||
|
<section class="slide" id="title-slide">
|
||
|
<h1>Getting Started with deck.js</h1>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="how-to-overview">
|
||
|
<h2>How to Make a Deck</h2>
|
||
|
<ol>
|
||
|
<li>
|
||
|
<h3>Write Slides</h3>
|
||
|
<p>Slide content is simple HTML.</p>
|
||
|
</li>
|
||
|
<li>
|
||
|
<h3>Choose Themes</h3>
|
||
|
<p>One for slide styles and one for deck transitions.</p>
|
||
|
</li>
|
||
|
<li>
|
||
|
<h3>Include Extensions</h3>
|
||
|
<p>Add extra functionality to your deck, or leave it stripped down.</p>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="markup">
|
||
|
<h2>The Markup</h2>
|
||
|
<p>Slides are just HTML elements with a class of <code>slide</code>.</p>
|
||
|
<pre><code><section class="slide">
|
||
|
<h2>How to Make a Deck</h2>
|
||
|
<ol>
|
||
|
<li>
|
||
|
<h3>Write Slides</h3>
|
||
|
<p>Slide content is simple HTML.</p>
|
||
|
</li>
|
||
|
<li>
|
||
|
<h3>Choose Themes</h3>
|
||
|
<p>One for slide styles and one for deck transitions.</p>
|
||
|
</li>
|
||
|
…
|
||
|
</ol>
|
||
|
</section></code></pre>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="themes">
|
||
|
<h2>Style Themes</h2>
|
||
|
<p>Customizes the colors, typography, and layout of slide content.</p>
|
||
|
<pre><code><link rel="stylesheet" href="/path/to/css/style-theme.css"></code></pre>
|
||
|
<h2>Transition Themes</h2>
|
||
|
<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>
|
||
|
<pre><code><link rel="stylesheet" href="/path/to/css/transition-theme.css"></code></pre>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="extensions">
|
||
|
<h2>Extensions</h2>
|
||
|
<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>
|
||
|
|
||
|
<ul>
|
||
|
<li class="slide" id="extensions-goto">
|
||
|
<strong>deck.goto</strong>: Adds a shortcut key to jump to any slide number. Hit g, type in the slide number, and hit enter.
|
||
|
</li>
|
||
|
|
||
|
<li class="slide" id="extensions-hash">
|
||
|
<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.
|
||
|
</li>
|
||
|
|
||
|
<li class="slide" id="extensions-menu">
|
||
|
<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.
|
||
|
</li>
|
||
|
|
||
|
<li class="slide" id="extensions-navigation">
|
||
|
<strong>deck.navigation</strong>: Adds clickable left and right buttons for the less keyboard inclined.
|
||
|
</li>
|
||
|
|
||
|
<li class="slide" id="extensions-status">
|
||
|
<strong>deck.status</strong>: Adds a page number indicator. (current/total)
|
||
|
</li>
|
||
|
|
||
|
<li class="slide" id="extensions-scale">
|
||
|
<strong>deck.scale</strong>: Scales each slide to fit within the deck container using CSS Transforms for those browsers that support them.
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<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>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="nested">
|
||
|
<h2>Nested Slides</h2>
|
||
|
<p>That last slide had a few steps. To create substeps in slides, just nest them:</p>
|
||
|
<pre><code><section class="slide">
|
||
|
<h2>Extensions</h2>
|
||
|
<p>Core gives you basic slide functionality...</p>
|
||
|
<ul>
|
||
|
<li class="slide">
|
||
|
<h3>deck.goto</h3>
|
||
|
<p>Adds a shortcut key to jump to any slide number...</p>
|
||
|
</li>
|
||
|
<li class="slide">...</li>
|
||
|
<li class="slide">...</li>
|
||
|
<li class="slide">...</li>
|
||
|
</ul>
|
||
|
</section></code></pre>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="elements-images">
|
||
|
<h2>Other Elements: Images</h2>
|
||
|
<img src="http://placekitten.com/600/375" alt="Kitties">
|
||
|
<pre><code><img src="http://placekitten.com/600/375" alt="Kitties"></code></pre>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="elements-blockquotes">
|
||
|
<h2>Other Elements: Blockquotes</h2>
|
||
|
<blockquote cite="http://example.org">
|
||
|
<p>Food is an important part of a balanced diet.</p>
|
||
|
<p><cite>Fran Lebowitz</cite></p>
|
||
|
</blockquote>
|
||
|
<pre><code><blockquote cite="http://example.org">
|
||
|
<p>Food is an important part of a balanced diet.</p>
|
||
|
<p><cite>Fran Lebowitz</cite></p>
|
||
|
</blockquote></code></pre>
|
||
|
</section>
|
||
|
|
||
|
|
||
|
<section class="slide" id="elements-videos">
|
||
|
<h2>Other Elements: Video Embeds</h2>
|
||
|
<p>Embed videos from your favorite online video service or with an HTML5 video element.</p>
|
||
|
|
||
|
<iframe src="http://player.vimeo.com/video/1063136?title=0&byline=0&portrait=0" width="400" height="225" frameborder="0"></iframe>
|
||
|
|
||
|
<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>
|
||
|
</section>
|
||
|
|
||
|
<section class="slide" id="digging-deeper">
|
||
|
<h2>Digging Deeper</h2>
|
||
|
<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>
|
||
|
</section>
|
||
|
|
||
|
<!-- deck.navigation snippet -->
|
||
|
<a href="#" class="deck-prev-link" title="Previous">←</a>
|
||
|
<a href="#" class="deck-next-link" title="Next">→</a>
|
||
|
|
||
|
<!-- deck.status snippet -->
|
||
|
<p class="deck-status">
|
||
|
<span class="deck-status-current"></span>
|
||
|
/
|
||
|
<span class="deck-status-total"></span>
|
||
|
</p>
|
||
|
|
||
|
<!-- deck.goto snippet -->
|
||
|
<form action="." method="get" class="goto-form">
|
||
|
<label for="goto-slide">Go to slide:</label>
|
||
|
<input type="text" name="slidenum" id="goto-slide" list="goto-datalist">
|
||
|
<datalist id="goto-datalist"></datalist>
|
||
|
<input type="submit" value="Go">
|
||
|
</form>
|
||
|
|
||
|
<!-- deck.hash snippet -->
|
||
|
<a href="." title="Permalink to this slide" class="deck-permalink">#</a>
|
||
|
|
||
|
|
||
|
<!-- Grab CDN jQuery, with a protocol relative URL; fall back to local if offline -->
|
||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||
|
<script>window.jQuery || document.write('<script src="../jquery-1.7.2.min.js"><\/script>')</script>
|
||
|
|
||
|
<!-- Deck Core and extensions -->
|
||
|
<script src="../core/deck.core.js"></script>
|
||
|
<script src="../extensions/hash/deck.hash.js"></script>
|
||
|
<script src="../extensions/menu/deck.menu.js"></script>
|
||
|
<script src="../extensions/goto/deck.goto.js"></script>
|
||
|
<script src="../extensions/status/deck.status.js"></script>
|
||
|
<script src="../extensions/navigation/deck.navigation.js"></script>
|
||
|
<script src="../extensions/scale/deck.scale.js"></script>
|
||
|
|
||
|
<!-- Initialize the deck -->
|
||
|
<script>
|
||
|
$(function() {
|
||
|
$.deck('.slide');
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
</body>
|
||
|
</html>
|