hide address bar in mobile browsers, add apple web app meta
[reveal.js.git] / index.html
1 <!doctype html>  
2 <html lang="en">
3         
4         <head>
5                 <meta charset="utf-8">
6                 
7                 <title>reveal.js</title>
8
9                 <meta name="description" content="An easy to use CSS 3D slideshow tool for quickly creating good looking HTML presentations.">
10                 <meta name="author" content="Hakim El Hattab">
11
12                 <meta name="apple-mobile-web-app-capable" content="yes" />
13                 <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
14                 
15                 <link href='http://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
16                 
17                 <link rel="stylesheet" href="css/reset.css">
18                 <link rel="stylesheet" href="css/main.css">
19                 <link rel="stylesheet" href="css/print.css" type="text/css" media="print">
20
21                 <link rel="stylesheet" href="lib/zenburn.css">
22         </head>
23         
24         <body>
25                 
26                 <div id="reveal">
27
28                         <!-- Used to fade in a background when a specific slide state is reached -->
29                         <div class="state-background"></div>
30                         
31                         <!-- Any section element inside of this container is displayed as a slide -->
32                         <div class="slides">
33                                 <section>
34                                         <h1>Reveal.js</h1>
35                                         <h3 class="inverted">CSS 3D Presentations</h3>
36                                         <script>
37                                                 // Delicously hacky. Look away.
38                                                 if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) ) document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
39                                         </script>
40                                 </section>
41                                 
42                                 <section>
43                                         <h2>Heads Up</h2>
44                                         <p>
45                                                 reveal.js is an easy to use, HTML based, presentation tool. You'll need a modern browser with 
46                                                 support for CSS 3D transforms to see it in its full glory.
47                                         </p>
48                                         <p>
49                                                 <i><small>- <a href="http://hakim.se">Hakim El Hattab</a> / <a href="http://twitter.com/hakimel">@hakimel</a></small></i>
50                                         </p>
51                                 </section>
52                                 
53                                 <!-- Example of nested vertical slides -->
54                                 <section>
55                                         <section>
56                                                 <h2>Vertical Slides</h2>
57                                                 <p>
58                                                         Slides can be nested inside of other slides,<br/>
59                                                         try pressing <a href="#/2/1">down</a>.
60                                                 </p>
61                                                 <a href="#/2/1" class="image">
62                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
63                                                 </a>
64                                         </section>
65                                         <section>
66                                                 <h2>Basement Level 1</h2>
67                                                 <p>Press down or up to navigate.</p>
68                                         </section>
69                                         <section>
70                                                 <h2>Basement Level 2</h2>
71                                                 <p>Cornify</p>
72                                                 <a class="test" href="http://cornify.com">
73                                                         <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
74                                                 </a>
75                                         </section>
76                                         <section>
77                                                 <h2>Basement Level 3</h2>
78                                                 <p>That's it, time to go back up.</p>
79                                                 <a href="#/2" class="image">
80                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
81                                                 </a>
82                                         </section>
83                                 </section>
84
85                                 <section>
86                                         <h2>Holistic Overview</h2>
87                                         <p>
88                                                 Press <strong>ESC</strong> to enter the slide overview!
89                                         </p>
90                                 </section>
91
92                                 <section>
93                                         <h2>Transition Styles</h2>
94                                         <p>
95                                                 You can select from different transitions, like:
96                                         </p>
97                                         <ul>
98                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
99                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
100                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
101                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
102                                         </ul>
103                                 </section>
104
105                                 <section>
106                                         <h2>Marvelous Unordered List</h2>
107                                         <ul>
108                                                 <li>No order here</li>
109                                                 <li>Or here</li>
110                                                 <li>Or here</li>
111                                                 <li>Or here</li>
112                                         </ul>
113                                 </section>
114                                 
115                                 <section>
116                                         <h2>Fantastic Ordered List</h2>
117                                         <ol>
118                                                 <li>One is smaller than...</li>
119                                                 <li>Two is smaller than...</li>
120                                                 <li>Three!</li>
121                                         </ol>
122                                 </section>
123
124                                 <section>
125                                         <section data-state="alert">
126                                                 <h2>Global State</h2>
127                                                 <p>
128                                                         Set <code>data-state="something"</code> on a slide and <code>"something"</code>
129                                                         will be added as a class to the document element when the slide is open. This let's you
130                                                         apply broader style changes, like switching the background.
131                                                 </p>
132                                                 <a href="#/7/1" class="image">
133                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
134                                                 </a>
135                                         </section>
136                                         <section data-state="blackout">
137                                                 <h2>"blackout"</h2>
138                                                 <a href="#/7/2" class="image">
139                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
140                                                 </a>
141                                         </section>
142                                         <section data-state="soothe">
143                                                 <h2>"soothe"</h2>
144                                                 <a href="#/7/0" class="image">
145                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
146                                                 </a>
147                                         </section>
148                                 </section>
149
150                                 <section data-state="customevent">
151                                         <h2>Custom Events</h2>
152                                         <p>
153                                                 Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
154                                         </p>
155                                         <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
156         alert( '"customevent" has fired' );
157 } );
158                                         </code></pre>
159                                 </section>
160
161                                 <section>
162                                         <h2>Clever Quotes</h2>
163                                         <p>
164                                                 These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
165                                                 The nice thing about standards is that there are so many to choose from</q> and block:
166                                         </p>
167                                         <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
168                                                 For years there has been a theory that millions of monkeys typing at random on millions of typewriters would 
169                                                 reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
170                                         </blockquote>
171                                 </section>
172                                 
173                                 <section>
174                                         <h2>Pretty Code</h2>
175                                         <pre><code contenteditable>
176 var supports3DTransforms =  document.body.style['webkitPerspective'] !== undefined || 
177                                 document.body.style['MozPerspective'] !== undefined ||
178                                 document.body.style['perspective'] !== undefined;
179
180 function linkify( selector ) {
181     if( supports3DTransforms ) {
182         
183         var nodes = document.querySelectorAll( selector );
184
185         for( var i = 0, len = nodes.length; i < len; i++ ) {
186             var node = nodes[i];
187
188             if( !node.className || !node.className.match( /roll/g ) ) {
189                 node.className += ' roll';
190                 node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
191             }
192         };
193     }
194 }
195
196 linkify( 'a' );
197                                         </code></pre>
198                                         <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
199                                 </section>
200                                 
201                                 <section>
202                                         <h2>Intergalactic Interconnections</h2>
203                                         <p>
204                                                 You can link between slides internally,<br/>
205                                                 <a href="#/2/3">like this</a>.
206                                         </p>
207                                 </section>
208
209                                 <section>
210                                         <h2>Fragmented Views</h2>
211                                         <p>Hit the next arrow...</p>
212                                         <p class="fragment">... to step through ...</p>
213                                         <ol>
214                                                 <li class="fragment"><code>any type</code></li>
215                                                 <li class="fragment"><em>of view</em></li>
216                                                 <li class="fragment"><strong>fragments</strong></li>
217                                         </ol>
218                                 </section>
219                                 
220                                 <section>
221                                         <h2>Spectacular image!</h2>
222                                         <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
223                                                 <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
224                                         </a>
225                                 </section>
226                                 
227                                 <section>
228                                         <h2>Stellar Links</h2>
229                                         <ul>
230                                                 <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
231                                                 <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
232                                                 <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
233                                         </ul>
234                                 </section>
235                                 
236                                 <section>
237                                         <h1>THE END</h1>
238                                         <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
239                                 </section>
240                         </div>
241
242                         <!-- The navigational controls UI -->
243                         <aside class="controls">
244                                 <a class="left" href="#">&#x25C4;</a>
245                                 <a class="right" href="#">&#x25BA;</a>
246                                 <a class="up" href="#">&#x25B2;</a>
247                                 <a class="down" href="#">&#x25BC;</a>
248                         </aside>
249
250                         <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
251                         <div class="progress"><span></span></div>
252                         
253                 </div>
254                 
255                 <script src="js/reveal.js"></script>
256
257                 <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
258                 <script src="lib/highlight.js"></script>
259                 <script src="lib/classList.js"></script>
260                 
261                 <script>
262                         // Parse the query string into a key/value object
263                         var query = {};
264                         location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
265                                 query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
266                         } );
267
268                         // Fires when a slide with data-state=customevent is activated
269                         Reveal.addEventListener( 'customevent', function() {
270                                 alert( '"customevent" has fired' );
271                         } );
272
273                         // Fires each time a new slide is activated
274                         Reveal.addEventListener( 'slidechanged', function( event ) {
275                                 // event.indexh & event.indexv
276                         } );
277
278                         Reveal.initialize({
279                                 // Display controls in the bottom right corner
280                                 controls: true,
281
282                                 // Display a presentation progress bar
283                                 progress: true,
284
285                                 // If true; each slide will be pushed to the browser history
286                                 history: true,
287
288                                 // Loops the presentation, defaults to false
289                                 loop: false,
290
291                                 // Flags if mouse wheel navigation should be enabled
292                                 mouseWheel: true,
293
294                                 // Apply a 3D roll to links on hover
295                                 rollingLinks: true,
296
297                                 // UI style
298                                 theme: query.theme || 'default', // default/neon
299
300                                 // Transition style
301                                 transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
302                         });
303
304                         hljs.initHighlightingOnLoad();
305                 </script>
306
307         </body>
308 </html>