Browse Source

basic placeholder site

gh-pages
Hakim El Hattab 11 years ago
parent
commit
ef8df6ed62
  1. 6
      .gitignore
  2. 37
      css/main.css
  3. 406
      css/normalize.css
  4. 754
      index.html
  5. 17
      javascripts/scale.fix.js
  6. 69
      stylesheets/pygment_trac.css
  7. 255
      stylesheets/styles.css

6
.gitignore

@ -0,0 +1,6 @@
.DS_Store
.svn
log/*.log
tmp/**
node_modules/
.sass-cache

37
css/main.css

@ -0,0 +1,37 @@
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
html,
body {
background-color: #222;
}
body {
padding: 100px 50px;
font: 14px/1 Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #fff;
}
a {
display: inline-block;
padding: 8px 12px;
margin-top: 20px;
color: #fff;
border: 2px solid rgba( 255, 255, 255, 0.5 );
text-decoration: none;
}
a:hover {
border-color: #fff;
}
header {
position: absolute;
left: 20px;
bottom: 20px;
}
footer {
position: absolute;
right: 20px;
bottom: 20px;
text-align: right;
}

406
css/normalize.css

@ -0,0 +1,406 @@
/*! normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
display: block;
}
/**
* Correct `inline-block` display not defined in IE 8/9.
*/
audio,
canvas,
video {
display: inline-block;
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9.
* Hide the `template` element in IE, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* ==========================================================================
Base
========================================================================== */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* ==========================================================================
Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background: transparent;
}
/**
* Address `outline` inconsistency between Chrome and other browsers.
*/
a:focus {
outline: thin dotted;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* ==========================================================================
Typography
========================================================================== */
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari 5, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9, Safari 5, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari 5 and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Correct font family set oddly in Safari 5 and Chrome.
*/
code,
kbd,
pre,
samp {
font-family: monospace, serif;
font-size: 1em;
}
/**
* Improve readability of pre-formatted text in all browsers.
*/
pre {
white-space: pre-wrap;
}
/**
* Set consistent quote types.
*/
q {
quotes: "\201C" "\201D" "\2018" "\2019";
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* ==========================================================================
Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9.
*/
img {
border: 0;
}
/**
* Correct overflow displayed oddly in IE 9.
*/
svg:not(:root) {
overflow: hidden;
}
/* ==========================================================================
Figures
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari 5.
*/
figure {
margin: 0;
}
/* ==========================================================================
Forms
========================================================================== */
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Correct font family not being inherited in all browsers.
* 2. Correct font size not being inherited in all browsers.
* 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
*/
button,
input,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 2 */
margin: 0; /* 3 */
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
button,
input {
line-height: normal;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
* Correct `select` style inheritance in Firefox 4+ and Opera.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* 1. Address box sizing set to `content-box` in IE 8/9.
* 2. Remove excess padding in IE 8/9.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari 5 and Chrome
* on OS X.
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* 1. Remove default vertical scrollbar in IE 8/9.
* 2. Improve readability and alignment in all browsers.
*/
textarea {
overflow: auto; /* 1 */
vertical-align: top; /* 2 */
}
/* ==========================================================================
Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}

754
index.html

@ -1,745 +1,39 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>reveal.js by hakimel</title>
<head>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1>reveal.js</h1>
<p>The HTML Presentation Framework</p>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>reveal.js - The HTML Presentations Framework</title>
<p class="view"><a href="https://github.com/hakimel/reveal.js">View the Project on GitHub <small>hakimel/reveal.js</small></a></p>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<ul>
<li><a href="https://github.com/hakimel/reveal.js/zipball/master">Download <strong>ZIP File</strong></a></li>
<li><a href="https://github.com/hakimel/reveal.js/tarball/master">Download <strong>TAR Ball</strong></a></li>
<li><a href="https://github.com/hakimel/reveal.js">View On <strong>GitHub</strong></a></li>
</ul>
</header>
<section>
<h1>
<a name="revealjs-" class="anchor" href="#revealjs-"><span class="octicon octicon-link"></span></a>reveal.js <a href="https://travis-ci.org/hakimel/reveal.js"><img src="https://travis-ci.org/hakimel/reveal.js.png?branch=master" alt="Build Status"></a>
</h1>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<p>A framework for easily creating beautiful presentations using HTML. <a href="http://lab.hakim.se/reveal-js/">Check out the live demo</a>.</p>
</head>
<body>
<div class="wrapper">
<p>reveal.js comes with a broad range of features including <a href="https://github.com/hakimel/reveal.js#markup">nested slides</a>, <a href="https://github.com/hakimel/reveal.js#markdown">markdown contents</a>, <a href="https://github.com/hakimel/reveal.js#pdf-export">PDF export</a>, <a href="https://github.com/hakimel/reveal.js#speaker-notes">speaker notes</a> and a <a href="https://github.com/hakimel/reveal.js#api">JavaScript API</a>. It's best viewed in a browser with support for CSS 3D transforms but <a href="https://github.com/hakimel/reveal.js/wiki/Browser-Support">fallbacks</a> are available to make sure your presentation can still be viewed elsewhere.</p>
<header>
<h4>
<a name="more-reading" class="anchor" href="#more-reading"><span class="octicon octicon-link"></span></a>More reading:</h4>
<h1>reveal.js</h1>
<p>
The HTML Presentation Framework &mdash; Site coming soon
</p>
<ul>
<li>
<a href="#installation">Installation</a>: Step-by-step instructions for getting reveal.js running on your computer.</li>
<li>
<a href="https://github.com/hakimel/reveal.js/releases">Changelog</a>: Up-to-date version history.</li>
<li>
<a href="https://github.com/hakimel/reveal.js/wiki/Example-Presentations">Examples</a>: Presentations created with reveal.js, add your own!</li>
<li>
<a href="https://github.com/hakimel/reveal.js/wiki/Browser-Support">Browser Support</a>: Explanation of browser support and fallbacks.</li>
</ul><h2>
<a name="slides" class="anchor" href="#slides"><span class="octicon octicon-link"></span></a>Slides</h2>
</header>
<p>Presentations are written using HTML or markdown but there's also an online editor for those of you who prefer a graphical interface. Give it a try at <a href="http://slid.es">http://slid.es</a>.</p>
<footer>
<h2>
<a name="instructions" class="anchor" href="#instructions"><span class="octicon octicon-link"></span></a>Instructions</h2>
<p class="view"><a href="https://github.com/hakimel/reveal.js">View the project on GitHub</a></p>
<h3>
<a name="markup" class="anchor" href="#markup"><span class="octicon octicon-link"></span></a>Markup</h3>
</footer>
<p>Markup hierarchy needs to be <code>&lt;div class="reveal"&gt; &lt;div class="slides"&gt; &lt;section&gt;</code> where the <code>&lt;section&gt;</code> represents one slide and can be repeated indefinitely. If you place multiple <code>&lt;section&gt;</code>'s inside of another <code>&lt;section&gt;</code> they will be shown as vertical slides. The first of the vertical slides is the "root" of the others (at the top), and it will be included in the horizontal sequence. For example:</p>
<div class="highlight"><pre><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"reveal"</span><span class="nt">&gt;</span>
<span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"slides"</span><span class="nt">&gt;</span>
<span class="nt">&lt;section&gt;</span>Single Horizontal Slide<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;section&gt;</span>Vertical Slide 1<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;section&gt;</span>Vertical Slide 2<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;/div&gt;</span>
<span class="nt">&lt;/div&gt;</span>
</pre></div>
<h3>
<a name="markdown" class="anchor" href="#markdown"><span class="octicon octicon-link"></span></a>Markdown</h3>
<p>It's possible to write your slides using Markdown. To enable Markdown, add the <code>data-markdown</code> attribute to your <code>&lt;section&gt;</code> elements and wrap the contents in a <code>&lt;script type="text/template"&gt;</code> like the example below.</p>
<p>This is based on <a href="https://gist.github.com/1343518">data-markdown</a> from <a href="https://github.com/paulirish">Paul Irish</a> modified to use <a href="https://github.com/chjj/marked">marked</a> to support <a href="https://help.github.com/articles/github-flavored-markdown">Github Flavoured Markdown</a>. Sensitive to indentation (avoid mixing tabs and spaces) and line breaks (avoid consecutive breaks).</p>
<div class="highlight"><pre><span class="nt">&lt;section</span> <span class="na">data-markdown</span><span class="nt">&gt;</span>
<span class="nt">&lt;script </span><span class="na">type=</span><span class="s">"text/template"</span><span class="nt">&gt;</span>
<span class="err">##</span> <span class="nx">Page</span> <span class="nx">title</span>
<span class="nx">A</span> <span class="nx">paragraph</span> <span class="kd">with</span> <span class="nx">some</span> <span class="nx">text</span> <span class="nx">and</span> <span class="nx">a</span> <span class="p">[</span><span class="nx">link</span><span class="p">](</span><span class="nx">http</span><span class="o">:</span><span class="c1">//hakim.se).</span>
<span class="nt">&lt;/script&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<h4>
<a name="external-markdown" class="anchor" href="#external-markdown"><span class="octicon octicon-link"></span></a>External Markdown</h4>
<p>You can write your content as a separate file and have reveal.js load it at runtime. Note the separator arguments which determine how slides are delimited in the external file.</p>
<div class="highlight"><pre><span class="nt">&lt;section</span> <span class="na">data-markdown=</span><span class="s">"example.md"</span> <span class="na">data-separator=</span><span class="s">"^\n\n\n"</span> <span class="na">data-vertical=</span><span class="s">"^\n\n"</span><span class="nt">&gt;&lt;/section&gt;</span>
</pre></div>
<h3>
<a name="configuration" class="anchor" href="#configuration"><span class="octicon octicon-link"></span></a>Configuration</h3>
<p>At the end of your page you need to initialize reveal by running the following code. Note that all config values are optional and will default as specified below.</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="c1">// Display controls in the bottom right corner</span>
<span class="nx">controls</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Display a presentation progress bar</span>
<span class="nx">progress</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Push each slide change to the browser history</span>
<span class="nx">history</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
<span class="c1">// Enable keyboard shortcuts for navigation</span>
<span class="nx">keyboard</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Enable touch events for navigation</span>
<span class="nx">touch</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Enable the slide overview mode</span>
<span class="nx">overview</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Vertical centering of slides</span>
<span class="nx">center</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Loop the presentation</span>
<span class="nx">loop</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
<span class="c1">// Change the presentation direction to be RTL</span>
<span class="nx">rtl</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
<span class="c1">// Number of milliseconds between automatically proceeding to the</span>
<span class="c1">// next slide, disabled when set to 0, this value can be overwritten</span>
<span class="c1">// by using a data-autoslide attribute on your slides</span>
<span class="nx">autoSlide</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
<span class="c1">// Enable slide navigation via mouse wheel</span>
<span class="nx">mouseWheel</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
<span class="c1">// Apply a 3D roll to links on hover</span>
<span class="nx">rollingLinks</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
<span class="c1">// Transition style</span>
<span class="nx">transition</span><span class="o">:</span> <span class="s1">'default'</span><span class="p">,</span> <span class="c1">// default/cube/page/concave/zoom/linear/fade/none</span>
<span class="c1">// Transition speed</span>
<span class="nx">transitionSpeed</span><span class="o">:</span> <span class="s1">'default'</span><span class="p">,</span> <span class="c1">// default/fast/slow</span>
<span class="c1">// Transition style for full page backgrounds</span>
<span class="nx">backgroundTransition</span><span class="o">:</span> <span class="s1">'default'</span> <span class="c1">// default/linear</span>
<span class="p">});</span>
</pre></div>
<p>Note that the new default vertical centering option will break compatibility with slides that were using transitions with backgrounds (<code>cube</code> and <code>page</code>). To restore the previous behavior, set <code>center</code> to <code>false</code>.</p>
<p>The configuration can be updated after initialization using the <code>configure</code> method:</p>
<div class="highlight"><pre><span class="c1">// Turn autoSlide off</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">configure</span><span class="p">({</span> <span class="nx">autoSlide</span><span class="o">:</span> <span class="mi">0</span> <span class="p">});</span>
<span class="c1">// Start auto-sliding every 5s</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">configure</span><span class="p">({</span> <span class="nx">autoSlide</span><span class="o">:</span> <span class="mi">5000</span> <span class="p">});</span>
</pre></div>
<h3>
<a name="dependencies" class="anchor" href="#dependencies"><span class="octicon octicon-link"></span></a>Dependencies</h3>
<p>Reveal.js doesn't <em>rely</em> on any third party scripts to work but a few optional libraries are included by default. These libraries are loaded as dependencies in the order they appear, for example:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="c1">// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'lib/js/classList.js'</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">classList</span><span class="p">;</span> <span class="p">}</span> <span class="p">},</span>
<span class="c1">// Interpret Markdown in &lt;section&gt; elements</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/markdown/marked.js'</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!!</span><span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span> <span class="s1">'[data-markdown]'</span> <span class="p">);</span> <span class="p">}</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/markdown/markdown.js'</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!!</span><span class="nb">document</span><span class="p">.</span><span class="nx">querySelector</span><span class="p">(</span> <span class="s1">'[data-markdown]'</span> <span class="p">);</span> <span class="p">}</span> <span class="p">},</span>
<span class="c1">// Syntax highlight for &lt;code&gt; elements</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/highlight/highlight.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">callback</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="nx">hljs</span><span class="p">.</span><span class="nx">initHighlightingOnLoad</span><span class="p">();</span> <span class="p">}</span> <span class="p">},</span>
<span class="c1">// Zoom in and out with Alt+click</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/zoom-js/zoom.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!!</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">classList</span><span class="p">;</span> <span class="p">}</span> <span class="p">},</span>
<span class="c1">// Speaker notes</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/notes/notes.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!!</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">classList</span><span class="p">;</span> <span class="p">}</span> <span class="p">},</span>
<span class="c1">// Remote control your reveal.js presentation using a touch device</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/remotes/remotes.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span> <span class="nx">condition</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">return</span> <span class="o">!!</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">.</span><span class="nx">classList</span><span class="p">;</span> <span class="p">}</span> <span class="p">}</span>
<span class="p">]</span>
<span class="p">});</span>
</pre></div>
<p>You can add your own extensions using the same syntax. The following properties are available for each dependency object:</p>
<ul>
<li>
<strong>src</strong>: Path to the script to load</li>
<li>
<strong>async</strong>: [optional] Flags if the script should load after reveal.js has started, defaults to false</li>
<li>
<strong>callback</strong>: [optional] Function to execute when the script has loaded</li>
<li>
<strong>condition</strong>: [optional] Function which must return true for the script to be loaded</li>
</ul><h3>
<a name="presentation-size" class="anchor" href="#presentation-size"><span class="octicon octicon-link"></span></a>Presentation Size</h3>
<p>All presentations have a normal size, that is the resolution at which they are authored. The framework will automatically scale presentations uniformly based on this size to ensure that everything fits on any given display or viewport.</p>
<p>See below for a list of configuration options related to sizing, including default values:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="p">...</span>
<span class="c1">// The "normal" size of the presentation, aspect ratio will be preserved</span>
<span class="c1">// when the presentation is scaled to fit different resolutions. Can be</span>
<span class="c1">// specified using percentage units.</span>
<span class="nx">width</span><span class="o">:</span> <span class="mi">960</span><span class="p">,</span>
<span class="nx">height</span><span class="o">:</span> <span class="mi">700</span><span class="p">,</span>
<span class="c1">// Factor of the display size that should remain empty around the content</span>
<span class="nx">margin</span><span class="o">:</span> <span class="mf">0.1</span><span class="p">,</span>
<span class="c1">// Bounds for smallest/largest possible scale to apply to content</span>
<span class="nx">minScale</span><span class="o">:</span> <span class="mf">0.2</span><span class="p">,</span>
<span class="nx">maxScale</span><span class="o">:</span> <span class="mf">1.0</span>
<span class="p">});</span>
</pre></div>
<h3>
<a name="keyboard-bindings" class="anchor" href="#keyboard-bindings"><span class="octicon octicon-link"></span></a>Keyboard Bindings</h3>
<p>If you're unhappy with any of the default keyboard bindings you can override them using the <code>keyboard</code> config option:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">configure</span><span class="p">({</span>
<span class="nx">keyboard</span><span class="o">:</span> <span class="p">{</span>
<span class="mi">13</span><span class="o">:</span> <span class="s1">'next'</span><span class="p">,</span> <span class="c1">// go to the next slide when the ENTER key is pressed</span>
<span class="mi">27</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{},</span> <span class="c1">// do something custom when ESC is pressed</span>
<span class="mi">32</span><span class="o">:</span> <span class="kc">null</span> <span class="c1">// don't do anything when SPACE is pressed (i.e. disable a reveal.js default binding)</span>
<span class="p">}</span>
<span class="p">});</span>
</pre></div>
<h3>
<a name="api" class="anchor" href="#api"><span class="octicon octicon-link"></span></a>API</h3>
<p>The <code>Reveal</code> class provides a JavaScript API for controlling navigation and reading state:</p>
<div class="highlight"><pre><span class="c1">// Navigation</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">slide</span><span class="p">(</span> <span class="nx">indexh</span><span class="p">,</span> <span class="nx">indexv</span><span class="p">,</span> <span class="nx">indexf</span> <span class="p">);</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">left</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">right</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">up</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">down</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">prev</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">next</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">prevFragment</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">nextFragment</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">toggleOverview</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">togglePause</span><span class="p">();</span>
<span class="c1">// Retrieves the previous and current slide elements</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">getPreviousSlide</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">getCurrentSlide</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">getIndices</span><span class="p">();</span> <span class="c1">// { h: 0, v: 0 } }</span>
<span class="c1">// State checks</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">isFirstSlide</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">isLastSlide</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">isOverview</span><span class="p">();</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">isPaused</span><span class="p">();</span>
</pre></div>
<h3>
<a name="ready-event" class="anchor" href="#ready-event"><span class="octicon octicon-link"></span></a>Ready Event</h3>
<p>The 'ready' event is fired when reveal.js has loaded all (synchronous) dependencies and is ready to start navigating.</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'ready'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span>
<span class="c1">// event.currentSlide, event.indexh, event.indexv</span>
<span class="p">}</span> <span class="p">);</span>
</pre></div>
<h3>
<a name="slide-changed-event" class="anchor" href="#slide-changed-event"><span class="octicon octicon-link"></span></a>Slide Changed Event</h3>
<p>An 'slidechanged' event is fired each time the slide is changed (regardless of state). The event object holds the index values of the current slide as well as a reference to the previous and current slide HTML nodes.</p>
<p>Some libraries, like MathJax (see <a href="https://github.com/hakimel/reveal.js/issues/226#issuecomment-10261609">#226</a>), get confused by the transforms and display states of slides. Often times, this can be fixed by calling their update or render function from this callback.</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'slidechanged'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span>
<span class="c1">// event.previousSlide, event.currentSlide, event.indexh, event.indexv</span>
<span class="p">}</span> <span class="p">);</span>
</pre></div>
<h3>
<a name="states" class="anchor" href="#states"><span class="octicon octicon-link"></span></a>States</h3>
<p>If you set <code>data-state="somestate"</code> on a slide <code>&lt;section&gt;</code>, "somestate" will be applied as a class on the document element when that slide is opened. This allows you to apply broad style changes to the page based on the active slide.</p>
<p>Furthermore you can also listen to these changes in state via JavaScript:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'somestate'</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="c1">// TODO: Sprinkle magic</span>
<span class="p">},</span> <span class="kc">false</span> <span class="p">);</span>
</pre></div>
<h3>
<a name="slide-backgrounds" class="anchor" href="#slide-backgrounds"><span class="octicon octicon-link"></span></a>Slide Backgrounds</h3>
<p>Slides are contained within a limited portion of the screen by default to allow them to fit any display and scale uniformly. You can apply full page background colors or images by applying a <code>data-background</code> attribute to your <code>&lt;section&gt;</code> elements. Below are a few examples.</p>
<div class="highlight"><pre><span class="nt">&lt;section</span> <span class="na">data-background=</span><span class="s">"#ff0000"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h2&gt;</span>All CSS color formats are supported, like rgba() or hsl().<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;section</span> <span class="na">data-background=</span><span class="s">"http://example.com/image.png"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h2&gt;</span>This slide will have a full-size background image.<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;section</span> <span class="na">data-background=</span><span class="s">"http://example.com/image.png"</span> <span class="na">data-background-size=</span><span class="s">"100px"</span> <span class="na">data-background-repeat=</span><span class="s">"repeat"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h2&gt;</span>This background image will be sized to 100px and repeated.<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<p>Backgrounds transition using a fade animation by default. This can be changed to a linear sliding transition by passing <code>backgroundTransition: 'slide'</code> to the <code>Reveal.initialize()</code> call. Alternatively you can set <code>data-background-transition</code> on any section with a background to override that specific transition.</p>
<h3>
<a name="slide-transitions" class="anchor" href="#slide-transitions"><span class="octicon octicon-link"></span></a>Slide Transitions</h3>
<p>The global presentation transition is set using the <code>transition</code> config value. You can override the global transition for a specific slide by using the <code>data-transition</code> attribute:</p>
<div class="highlight"><pre><span class="nt">&lt;section</span> <span class="na">data-transition=</span><span class="s">"zoom"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h2&gt;</span>This slide will override the presentation transition and zoom!<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;/section&gt;</span>
<span class="nt">&lt;section</span> <span class="na">data-transition-speed=</span><span class="s">"fast"</span><span class="nt">&gt;</span>
<span class="nt">&lt;h2&gt;</span>Choose from three transition speeds: default, fast or slow!<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<p>Note that this does not work with the page and cube transitions.</p>
<h3>
<a name="internal-links" class="anchor" href="#internal-links"><span class="octicon octicon-link"></span></a>Internal links</h3>
<p>It's easy to link between slides. The first example below targets the index of another slide whereas the second targets a slide with an ID attribute (<code>&lt;section id="some-slide"&gt;</code>):</p>
<div class="highlight"><pre><span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#/2/2"</span><span class="nt">&gt;</span>Link<span class="nt">&lt;/a&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#/some-slide"</span><span class="nt">&gt;</span>Link<span class="nt">&lt;/a&gt;</span>
</pre></div>
<p>You can also add relative navigation links, similar to the built in reveal.js controls, by appending one of the following classes on any element. Note that each element is automatically given an <code>enabled</code> class when it's a valid navigation route based on the current slide.</p>
<div class="highlight"><pre><span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-left"</span><span class="nt">&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-right"</span><span class="nt">&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-up"</span><span class="nt">&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-down"</span><span class="nt">&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-prev"</span><span class="nt">&gt;</span> <span class="c">&lt;!-- Previous vertical or horizontal slide --&gt;</span>
<span class="nt">&lt;a</span> <span class="na">href=</span><span class="s">"#"</span> <span class="na">class=</span><span class="s">"navigate-next"</span><span class="nt">&gt;</span> <span class="c">&lt;!-- Next vertical or horizontal slide --&gt;</span>
</pre></div>
<h3>
<a name="fragments" class="anchor" href="#fragments"><span class="octicon octicon-link"></span></a>Fragments</h3>
<p>Fragments are used to highlight individual elements on a slide. Every element with the class <code>fragment</code> will be stepped through before moving on to the next slide. Here's an example: <a href="http://lab.hakim.se/reveal-js/#/16">http://lab.hakim.se/reveal-js/#/16</a></p>
<p>The default fragment style is to start out invisible and fade in. This style can be changed by appending a different class to the fragment:</p>
<div class="highlight"><pre><span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment grow"</span><span class="nt">&gt;</span>grow<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment shrink"</span><span class="nt">&gt;</span>shrink<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment roll-in"</span><span class="nt">&gt;</span>roll-in<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment fade-out"</span><span class="nt">&gt;</span>fade-out<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment highlight-red"</span><span class="nt">&gt;</span>highlight-red<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment highlight-green"</span><span class="nt">&gt;</span>highlight-green<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment highlight-blue"</span><span class="nt">&gt;</span>highlight-blue<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<p>Multiple fragments can be applied to the same element sequentially by wrapping it, this will fade in the text on the first step and fade it back out on the second.</p>
<div class="highlight"><pre><span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"fragment fade-in"</span><span class="nt">&gt;</span>
<span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"fragment fade-out"</span><span class="nt">&gt;</span>I'll fade in, then out<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/span&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<p>The display order of fragments can be controlled using the <code>data-fragment-index</code> attribute.</p>
<div class="highlight"><pre><span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment"</span> <span class="na">data-fragment-index=</span><span class="s">"3"</span><span class="nt">&gt;</span>Appears last<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment"</span> <span class="na">data-fragment-index=</span><span class="s">"1"</span><span class="nt">&gt;</span>Appears first<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;p</span> <span class="na">class=</span><span class="s">"fragment"</span> <span class="na">data-fragment-index=</span><span class="s">"2"</span><span class="nt">&gt;</span>Appears second<span class="nt">&lt;/p&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<h3>
<a name="fragment-events" class="anchor" href="#fragment-events"><span class="octicon octicon-link"></span></a>Fragment events</h3>
<p>When a slide fragment is either shown or hidden reveal.js will dispatch an event.</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'fragmentshown'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span>
<span class="c1">// event.fragment = the fragment DOM element</span>
<span class="p">}</span> <span class="p">);</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'fragmenthidden'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span>
<span class="c1">// event.fragment = the fragment DOM element</span>
<span class="p">}</span> <span class="p">);</span>
</pre></div>
<h3>
<a name="code-syntax-highlighting" class="anchor" href="#code-syntax-highlighting"><span class="octicon octicon-link"></span></a>Code syntax highlighting</h3>
<p>By default, Reveal is configured with <a href="http://softwaremaniacs.org/soft/highlight/en/">highlight.js</a> for code syntax highlighting. Below is an example with clojure code that will be syntax highlighted. When the <code>data-trim</code> attribute is present surrounding whitespace is automatically removed.</p>
<div class="highlight"><pre><span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;pre&gt;&lt;code</span> <span class="na">data-trim</span><span class="nt">&gt;</span>
(def lazy-fib
(concat
[0 1]
((fn rfib [a b]
(lazy-cons (+ a b) (rfib b (+ a b)))) 0 1)))
<span class="nt">&lt;/code&gt;&lt;/pre&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<h3>
<a name="overview-mode" class="anchor" href="#overview-mode"><span class="octicon octicon-link"></span></a>Overview mode</h3>
<p>Press "Esc" key to toggle the overview mode on and off. While you're in this mode, you can still navigate between slides,
as if you were at 1,000 feet above your presentation. The overview mode comes with a few API hooks:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'overviewshown'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span> <span class="cm">/* ... */</span> <span class="p">}</span> <span class="p">);</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">addEventListener</span><span class="p">(</span> <span class="s1">'overviewhidden'</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span> <span class="nx">event</span> <span class="p">)</span> <span class="p">{</span> <span class="cm">/* ... */</span> <span class="p">}</span> <span class="p">);</span>
<span class="c1">// Toggle the overview mode programmatically</span>
<span class="nx">Reveal</span><span class="p">.</span><span class="nx">toggleOverview</span><span class="p">();</span>
</pre></div>
<h3>
<a name="fullscreen-mode" class="anchor" href="#fullscreen-mode"><span class="octicon octicon-link"></span></a>Fullscreen mode</h3>
<p>Just press »F« on your keyboard to show your presentation in fullscreen mode. Press the »ESC« key to exit fullscreen mode.</p>
<h3>
<a name="embedded-media" class="anchor" href="#embedded-media"><span class="octicon octicon-link"></span></a>Embedded media</h3>
<p>Embedded HTML5 <code>&lt;video&gt;</code>/<code>&lt;audio&gt;</code> and YouTube iframes are automatically paused when your navigate away from a slide. This can be disabled by decorating your element with a <code>data-ignore</code> attribute.</p>
<p>Add <code>data-autoplay</code> to your media element if you want it to automatically start playing when the slide is shown:</p>
<div class="highlight"><pre><span class="nt">&lt;video</span> <span class="na">data-autoplay</span> <span class="na">src=</span><span class="s">"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"</span><span class="nt">&gt;&lt;/video&gt;</span>
</pre></div>
<h2>
<a name="pdf-export" class="anchor" href="#pdf-export"><span class="octicon octicon-link"></span></a>PDF Export</h2>
<p>Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use <a href="http://google.com/chrome">Google Chrome</a>.
Here's an example of an exported presentation that's been uploaded to SlideShare: <a href="http://www.slideshare.net/hakimel/revealjs-13872948">http://www.slideshare.net/hakimel/revealjs-13872948</a>.</p>
<ol>
<li>Open your presentation with <a href="https://github.com/hakimel/reveal.js/blob/master/css/print/pdf.css">css/print/pdf.css</a> included on the page. The default index HTML lets you add <em>print-pdf</em> anywhere in the query to include the stylesheet, for example: <a href="http://lab.hakim.se/reveal-js?print-pdf">lab.hakim.se/reveal-js?print-pdf</a>.</li>
<li>Open the in-browser print dialog (CMD+P).</li>
<li>Change the <strong>Destination</strong> setting to <strong>Save as PDF</strong>.</li>
<li>Change the <strong>Layout</strong> to <strong>Landscape</strong>.</li>
<li>Change the <strong>Margins</strong> to <strong>None</strong>.</li>
<li>Click <strong>Save</strong>.</li>
</ol><p><img src="https://s3.amazonaws.com/hakim-static/reveal-js/pdf-print-settings.png" alt="Chrome Print Settings"></p>
<h2>
<a name="theming" class="anchor" href="#theming"><span class="octicon octicon-link"></span></a>Theming</h2>
<p>The framework comes with a few different themes included:</p>
<ul>
<li>default: Gray background, white text, blue links</li>
<li>beige: Beige background, dark text, brown links</li>
<li>sky: Blue background, thin white text, blue links</li>
<li>night: Black background, thick white text, orange links</li>
<li>serif: Cappuccino background, gray text, brown links</li>
<li>simple: White background, black text, blue links</li>
</ul><p>Each theme is available as a separate stylesheet. To change theme you will need to replace <strong>default</strong> below with your desired theme name in index.html:</p>
<div class="highlight"><pre><span class="nt">&lt;link</span> <span class="na">rel=</span><span class="s">"stylesheet"</span> <span class="na">href=</span><span class="s">"css/theme/default.css"</span> <span class="na">id=</span><span class="s">"theme"</span><span class="nt">&gt;</span>
</pre></div>
<p>If you want to add a theme of your own see the instructions here: <a href="https://github.com/hakimel/reveal.js/blob/master/css/theme/README.md">/css/theme/README.md</a>.</p>
<h2>
<a name="speaker-notes" class="anchor" href="#speaker-notes"><span class="octicon octicon-link"></span></a>Speaker Notes</h2>
<p>reveal.js comes with a speaker notes plugin which can be used to present per-slide notes in a separate browser window. The notes window also gives you a preview of the next upcoming slide so it may be helpful even if you haven't written any notes. Press the 's' key on your keyboard to open the notes window.</p>
<p>By default notes are written using standard HTML, see below, but you can add a <code>data-markdown</code> attribute to the <code>&lt;aside&gt;</code> to write them using Markdown.</p>
<div class="highlight"><pre><span class="nt">&lt;section&gt;</span>
<span class="nt">&lt;h2&gt;</span>Some Slide<span class="nt">&lt;/h2&gt;</span>
<span class="nt">&lt;aside</span> <span class="na">class=</span><span class="s">"notes"</span><span class="nt">&gt;</span>
Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you open the speaker notes window (hit 's' on your keyboard).
<span class="nt">&lt;/aside&gt;</span>
<span class="nt">&lt;/section&gt;</span>
</pre></div>
<h2>
<a name="server-side-speaker-notes" class="anchor" href="#server-side-speaker-notes"><span class="octicon octicon-link"></span></a>Server Side Speaker Notes</h2>
<p>In some cases it can be desirable to run notes on a separate device from the one you're presenting on. The Node.js-based notes plugin lets you do this using the same note definitions as its client side counterpart. Include the required scripts by adding the following dependencies:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="p">...</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'socket.io/socket.io.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/notes-server/client.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
<span class="p">]</span>
<span class="p">});</span>
</pre></div>
<p>Then:</p>
<ol>
<li>Install <a href="http://nodejs.org/">Node.js</a>
</li>
<li>Run <code>npm install</code>
</li>
<li>Run <code>node plugin/notes-server</code>
</li>
</ol><h2>
<a name="multiplexing" class="anchor" href="#multiplexing"><span class="octicon octicon-link"></span></a>Multiplexing</h2>
<p>The multiplex plugin allows your audience to view the slides of the presentation you are controlling on their own phone, tablet or laptop. As the master presentation navigates the slides, all client presentations will update in real time. See a demo at <a href="http://revealjs.jit.su">http://revealjs.jit.su/</a>.</p>
<p>The multiplex plugin needs the following 3 things to operate:</p>
<ol>
<li>Master presentation that has control</li>
<li>Client presentations that follow the master</li>
<li>Socket.io server to broadcast events from the master to the clients</li>
</ol><p>More details:</p>
<h4>
<a name="master-presentation" class="anchor" href="#master-presentation"><span class="octicon octicon-link"></span></a>Master presentation</h4>
<p>Served from a static file server accessible (preferably) only to the presenter. This need only be on your (the presenter's) computer. (It's safer to run the master presentation from your own computer, so if the venue's Internet goes down it doesn't stop the show.) An example would be to execute the following commands in the directory of your master presentation: </p>
<ol>
<li><code>npm install node-static</code></li>
<li><code>static</code></li>
</ol><p>If you want to use the speaker notes plugin with your master presentation then make sure you have the speaker notes plugin configured correctly along with the configuration shown below, then execute <code>node plugin/notes-server</code> in the directory of your master presentation. The configuration below will cause it to connect to the socket.io server as a master, as well as launch your speaker-notes/static-file server.</p>
<p>You can then access your master presentation at <code>http://localhost:1947</code></p>
<p>Example configuration:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="c1">// other options</span>
<span class="nx">multiplex</span><span class="o">:</span> <span class="p">{</span>
<span class="c1">// Example values. Generate your own.</span>
<span class="nx">secret</span><span class="o">:</span> <span class="s1">'13652805320794272084'</span><span class="p">,</span> <span class="c1">// Obtained from the socket.io server. Gives this (the master) control of the presentation</span>
<span class="nx">id</span><span class="o">:</span> <span class="s1">'1ea875674b17ca76'</span><span class="p">,</span> <span class="c1">// Obtained from socket.io server</span>
<span class="nx">url</span><span class="o">:</span> <span class="s1">'revealjs.jit.su:80'</span> <span class="c1">// Location of socket.io server</span>
<span class="p">},</span>
<span class="c1">// Optional libraries used to extend on reveal.js</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="c1">// other deps</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/multiplex/master.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="c1">// and if you want speaker notes</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/notes-server/client.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
<span class="p">]</span>
<span class="p">});</span>
</pre></div>
<h4>
<a name="client-presentation" class="anchor" href="#client-presentation"><span class="octicon octicon-link"></span></a>Client presentation</h4>
<p>Served from a publicly accessible static file server. Examples include: GitHub Pages, Amazon S3, Dreamhost, Akamai, etc. The more reliable, the better. Your audience can then access the client presentation via <code>http://example.com/path/to/presentation/client/index.html</code>, with the configuration below causing them to connect to the socket.io server as clients.</p>
<p>Example configuration:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="c1">// other options</span>
<span class="nx">multiplex</span><span class="o">:</span> <span class="p">{</span>
<span class="c1">// Example values. Generate your own.</span>
<span class="nx">secret</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span> <span class="c1">// null so the clients do not have control of the master presentation</span>
<span class="nx">id</span><span class="o">:</span> <span class="s1">'1ea875674b17ca76'</span><span class="p">,</span> <span class="c1">// id, obtained from socket.io server</span>
<span class="nx">url</span><span class="o">:</span> <span class="s1">'revealjs.jit.su:80'</span> <span class="c1">// Location of socket.io server</span>
<span class="p">},</span>
<span class="c1">// Optional libraries used to extend on reveal.js</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="c1">// other deps</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/multiplex/client.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
<span class="p">]</span>
<span class="p">});</span>
</pre></div>
<h4>
<a name="socketio-server" class="anchor" href="#socketio-server"><span class="octicon octicon-link"></span></a>Socket.io server</h4>
<p>Server that receives the slideChanged events from the master presentation and broadcasts them out to the connected client presentations. This needs to be publicly accessible. You can run your own socket.io server with the commands:</p>
<ol>
<li><code>npm install</code></li>
<li><code>node plugin/multiplex</code></li>
</ol><p>Or you use the socket.io server at <a href="http://revealjs.jit.su">http://revealjs.jit.su</a>.</p>
<p>You'll need to generate a unique secret and token pair for your master and client presentations. To do so, visit <code>http://example.com/token</code>, where <code>http://example.com</code> is the location of your socket.io server. Or if you're going to use the socket.io server at <a href="http://revealjs.jit.su">http://revealjs.jit.su</a>, visit <a href="http://revealjs.jit.su/token">http://revealjs.jit.su/token</a>.</p>
<p>You are very welcome to point your presentations at the Socket.io server running at <a href="http://revealjs.jit.su">http://revealjs.jit.su</a>, but availability and stability are not guaranteed. For anything mission critical I recommend you run your own server. It is simple to deploy to nodejitsu, heroku, your own environment, etc.</p>
<h5>
<a name="socketio-server-as-file-static-server" class="anchor" href="#socketio-server-as-file-static-server"><span class="octicon octicon-link"></span></a>socket.io server as file static server</h5>
<p>The socket.io server can play the role of static file server for your client presentation, as in the example at <a href="http://revealjs.jit.su">http://revealjs.jit.su</a>. (Open <a href="http://revealjs.jit.su">http://revealjs.jit.su</a> in two browsers. Navigate through the slides on one, and the other will update to match.) </p>
<p>Example configuration:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="c1">// other options</span>
<span class="nx">multiplex</span><span class="o">:</span> <span class="p">{</span>
<span class="c1">// Example values. Generate your own.</span>
<span class="nx">secret</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span> <span class="c1">// null so the clients do not have control of the master presentation</span>
<span class="nx">id</span><span class="o">:</span> <span class="s1">'1ea875674b17ca76'</span><span class="p">,</span> <span class="c1">// id, obtained from socket.io server</span>
<span class="nx">url</span><span class="o">:</span> <span class="s1">'example.com:80'</span> <span class="c1">// Location of your socket.io server</span>
<span class="p">},</span>
<span class="c1">// Optional libraries used to extend on reveal.js</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="c1">// other deps</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/multiplex/client.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
<span class="p">]</span>
</pre></div>
<p>It can also play the role of static file server for your master presentation and client presentations at the same time (as long as you don't want to use speaker notes). (Open <a href="http://revealjs.jit.su">http://revealjs.jit.su</a> in two browsers. Navigate through the slides on one, and the other will update to match. Navigate through the slides on the second, and the first will update to match.) This is probably not desirable, because you don't want your audience to mess with your slides while you're presenting. ;)</p>
<p>Example configuration:</p>
<div class="highlight"><pre><span class="nx">Reveal</span><span class="p">.</span><span class="nx">initialize</span><span class="p">({</span>
<span class="c1">// other options</span>
<span class="nx">multiplex</span><span class="o">:</span> <span class="p">{</span>
<span class="c1">// Example values. Generate your own.</span>
<span class="nx">secret</span><span class="o">:</span> <span class="s1">'13652805320794272084'</span><span class="p">,</span> <span class="c1">// Obtained from the socket.io server. Gives this (the master) control of the presentation</span>
<span class="nx">id</span><span class="o">:</span> <span class="s1">'1ea875674b17ca76'</span><span class="p">,</span> <span class="c1">// Obtained from socket.io server</span>
<span class="nx">url</span><span class="o">:</span> <span class="s1">'example.com:80'</span> <span class="c1">// Location of your socket.io server</span>
<span class="p">},</span>
<span class="c1">// Optional libraries used to extend on reveal.js</span>
<span class="nx">dependencies</span><span class="o">:</span> <span class="p">[</span>
<span class="c1">// other deps</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/multiplex/master.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">},</span>
<span class="p">{</span> <span class="nx">src</span><span class="o">:</span> <span class="s1">'plugin/multiplex/client.js'</span><span class="p">,</span> <span class="nx">async</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
<span class="p">]</span>
<span class="p">});</span>
</pre></div>
<h2>
<a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
<p>The <strong>basic setup</strong> is for authoring presentations only. The <strong>full setup</strong> gives you access to all reveal.js features as well as the development tasks needed to make changes to the source.</p>
<h3>
<a name="basic-setup" class="anchor" href="#basic-setup"><span class="octicon octicon-link"></span></a>Basic setup</h3>
<p>The core of reveal.js is very easy to install. You'll simply need to download a copy of this repository and open the index.html file directly in your browser.</p>
<ol>
<li><p>Download the latest version of reveal.js from <a href="https://github.com/hakimel/reveal.js/releases">https://github.com/hakimel/reveal.js/releases</a></p></li>
<li><p>Unzip and replace the example contents in index.html with your own</p></li>
<li><p>Open index.html in a browser to view it</p></li>
</ol><h3>
<a name="full-setup" class="anchor" href="#full-setup"><span class="octicon octicon-link"></span></a>Full setup</h3>
<p>Some reveal.js features, like external markdown, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the reveal.js source code.</p>
<ol>
<li><p>Install <a href="http://nodejs.org/">Node.js</a></p></li>
<li><p>Install <a href="http://gruntjs.com/getting-started#installing-the-cli">Grunt</a></p></li>
<li>
<p>Clone the reveal.js repository </p>
<pre><code>$ git clone git@github.com:hakimel/reveal.js.git
</code></pre>
</li>
<li>
<p>Navigate to the reveal.js folder </p>
<pre><code>$ cd reveal.js
</code></pre>
</li>
<li>
<p>Install dependencies </p>
<pre><code>$ npm install
</code></pre>
</li>
<li>
<p>Serve the presentation and monitor source files for changes </p>
<pre><code>$ grunt serve
</code></pre>
</li>
<li><p>Open <a href="http://localhost:8000">http://localhost:8000</a> to view your presentation</p></li>
</ol><h3>
<a name="folder-structure" class="anchor" href="#folder-structure"><span class="octicon octicon-link"></span></a>Folder Structure</h3>
<ul>
<li>
<strong>css/</strong> Core styles without which the project does not function</li>
<li>
<strong>js/</strong> Like above but for JavaScript</li>
<li>
<strong>plugin/</strong> Components that have been developed as extensions to reveal.js</li>
<li>
<strong>lib/</strong> All other third party assets (JavaScript, CSS, fonts)</li>
</ul><h2>
<a name="license" class="anchor" href="#license"><span class="octicon octicon-link"></span></a>License</h2>
<p>MIT licensed</p>
<p>Copyright (C) 2013 Hakim El Hattab, <a href="http://hakim.se">http://hakim.se</a></p>
</section>
<footer>
<p>This project is maintained by <a href="https://github.com/hakimel">hakimel</a></p>
<p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
</footer>
</div>
<script src="javascripts/scale.fix.js"></script>
</body>
</div>
</body>
</html>

17
javascripts/scale.fix.js

@ -1,17 +0,0 @@
var metas = document.getElementsByTagName('meta');
var i;
if (navigator.userAgent.match(/iPhone/i)) {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0";
}
}
document.addEventListener("gesturestart", gestureStart, false);
}
function gestureStart() {
for (i=0; i<metas.length; i++) {
if (metas[i].name == "viewport") {
metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6";
}
}
}

69
stylesheets/pygment_trac.css

@ -1,69 +0,0 @@
.highlight { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }

255
stylesheets/styles.css

@ -1,255 +0,0 @@
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
body {
padding:50px;
font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
color:#777;
font-weight:300;
}
h1, h2, h3, h4, h5, h6 {
color:#222;
margin:0 0 20px;
}
p, ul, ol, table, pre, dl {
margin:0 0 20px;
}
h1, h2, h3 {
line-height:1.1;
}
h1 {
font-size:28px;
}
h2 {
color:#393939;
}
h3, h4, h5, h6 {
color:#494949;
}
a {
color:#39c;
font-weight:400;
text-decoration:none;
}
a small {
font-size:11px;
color:#777;
margin-top:-0.6em;
display:block;
}
.wrapper {
width:860px;
margin:0 auto;
}
blockquote {
border-left:1px solid #e5e5e5;
margin:0;
padding:0 0 0 20px;
font-style:italic;
}
code, pre {
font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
color:#333;
font-size:12px;
}
pre {
padding:8px 15px;
background: #f8f8f8;
border-radius:5px;
border:1px solid #e5e5e5;
overflow-x: auto;
}
table {
width:100%;
border-collapse:collapse;
}
th, td {
text-align:left;
padding:5px 10px;
border-bottom:1px solid #e5e5e5;
}
dt {
color:#444;
font-weight:700;
}
th {
color:#444;
}
img {
max-width:100%;
}
header {
width:270px;
float:left;
position:fixed;
}
header ul {
list-style:none;
height:40px;
padding:0;
background: #eee;
background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
border-radius:5px;
border:1px solid #d2d2d2;
box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
width:270px;
}
header li {
width:89px;
float:left;
border-right:1px solid #d2d2d2;
height:40px;
}
header ul a {
line-height:1;
font-size:11px;
color:#999;
display:block;
text-align:center;
padding-top:6px;
height:40px;
}
strong {
color:#222;
font-weight:700;
}
header ul li + li {
width:88px;
border-left:1px solid #fff;
}
header ul li + li + li {
border-right:none;
width:89px;
}
header ul a strong {
font-size:14px;
display:block;
color:#222;
}
section {
width:500px;
float:right;
padding-bottom:50px;
}
small {
font-size:11px;
}
hr {
border:0;
background:#e5e5e5;
height:1px;
margin:0 0 20px;
}
footer {
width:270px;
float:left;
position:fixed;
bottom:50px;
}
@media print, screen and (max-width: 960px) {
div.wrapper {
width:auto;
margin:0;
}
header, section, footer {
float:none;
position:static;
width:auto;
}
header {
padding-right:320px;
}
section {
border:1px solid #e5e5e5;
border-width:1px 0;
padding:20px 0;
margin:0 0 20px;
}
header a small {
display:inline;
}
header ul {
position:absolute;
right:50px;
top:52px;
}
}
@media print, screen and (max-width: 720px) {
body {
word-wrap:break-word;
}
header {
padding:0;
}
header ul, header p.view {
position:static;
}
pre, code {
word-wrap:normal;
}
}
@media print, screen and (max-width: 480px) {
body {
padding:15px;
}
header ul {
display:none;
}
}
@media print {
body {
padding:0.4in;
font-size:12pt;
color:#444;
}
}
Loading…
Cancel
Save