/lib restructuring
[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/highlight/zenburn.css">
22         </head>
23         
24         <body>
25                 
26                 <div class="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
52                                         <aside class="notes">
53                                                 Oh hey, these are some notes. They'll be hidden in your presentation, but you can see them if you run the speaker notes server.
54                                         </aside>
55                                 </section>
56                                 
57                                 <!-- Example of nested vertical slides -->
58                                 <section>
59                                         <section>
60                                                 <h2>Vertical Slides</h2>
61                                                 <p>
62                                                         Slides can be nested inside of other slides,<br/>
63                                                         try pressing <a href="#/2/1">down</a>.
64                                                 </p>
65                                                 <a href="#/2/1" class="image">
66                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
67                                                 </a>
68                                         </section>
69                                         <section>
70                                                 <h2>Basement Level 1</h2>
71                                                 <p>Press down or up to navigate.</p>
72                                         </section>
73                                         <section>
74                                                 <h2>Basement Level 2</h2>
75                                                 <p>Cornify</p>
76                                                 <a class="test" href="http://cornify.com">
77                                                         <img width="280" height="326" src="https://s3.amazonaws.com/hakim-static/reveal-js/cornify.gif">
78                                                 </a>
79                                         </section>
80                                         <section>
81                                                 <h2>Basement Level 3</h2>
82                                                 <p>That's it, time to go back up.</p>
83                                                 <a href="#/2" class="image">
84                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
85                                                 </a>
86                                         </section>
87                                 </section>
88
89                                 <section>
90                                         <h2>Holistic Overview</h2>
91                                         <p>
92                                                 Press <strong>ESC</strong> to enter the slide overview!
93                                         </p>
94                                 </section>
95
96                                 <section>
97                                         <h2>Works in Mobile Safari</h2>
98                                         <p>
99                                                 Try it out! You can swipe through the slides pinch your way to the overview.
100                                         </p>
101                                 </section>
102
103                                 <section>
104                                         <h2>Transition Styles</h2>
105                                         <p>
106                                                 You can select from different transitions, like:
107                                         </p>
108                                         <ul>
109                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=cube">Cube</a></li>
110                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=page">Page</a></li>
111                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=concave">Concave</a></li>
112                                                 <li><a href="http://lab.hakim.se/reveal-js/?transition=linear">Linear</a></li>
113                                         </ul>
114                                 </section>
115
116                                 <section>
117                                         <h2>Marvelous Unordered List</h2>
118                                         <ul>
119                                                 <li>No order here</li>
120                                                 <li>Or here</li>
121                                                 <li>Or here</li>
122                                                 <li>Or here</li>
123                                         </ul>
124                                 </section>
125                                 
126                                 <section>
127                                         <h2>Fantastic Ordered List</h2>
128                                         <ol>
129                                                 <li>One is smaller than...</li>
130                                                 <li>Two is smaller than...</li>
131                                                 <li>Three!</li>
132                                         </ol>
133                                 </section>
134
135                                 <section>
136                                         <section data-state="alert">
137                                                 <h2>Global State</h2>
138                                                 <p>
139                                                         Set <code>data-state="something"</code> on a slide and <code>"something"</code>
140                                                         will be added as a class to the document element when the slide is open. This let's you
141                                                         apply broader style changes, like switching the background.
142                                                 </p>
143                                                 <a href="#/7/1" class="image">
144                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
145                                                 </a>
146                                         </section>
147                                         <section data-state="blackout">
148                                                 <h2>"blackout"</h2>
149                                                 <a href="#/7/2" class="image">
150                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png">
151                                                 </a>
152                                         </section>
153                                         <section data-state="soothe">
154                                                 <h2>"soothe"</h2>
155                                                 <a href="#/7/0" class="image">
156                                                         <img width="178" height="238" src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" style="-webkit-transform: rotate(180deg);">
157                                                 </a>
158                                         </section>
159                                 </section>
160
161                                 <section data-state="customevent">
162                                         <h2>Custom Events</h2>
163                                         <p>
164                                                 Additionally custom events can be triggered on a per slide basis by binding to the <code>data-state</code> name.
165                                         </p>
166                                         <pre><code contenteditable style="font-size: 18px; margin-top: 20px;">Reveal.addEventListener( 'customevent', function() {
167         alert( '"customevent" has fired' );
168 } );
169                                         </code></pre>
170                                 </section>
171
172                                 <section>
173                                         <h2>Clever Quotes</h2>
174                                         <p>
175                                                 These guys come in two forms, inline: <q cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
176                                                 The nice thing about standards is that there are so many to choose from</q> and block:
177                                         </p>
178                                         <blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
179                                                 For years there has been a theory that millions of monkeys typing at random on millions of typewriters would 
180                                                 reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
181                                         </blockquote>
182                                 </section>
183                                 
184                                 <section>
185                                         <h2>Pretty Code</h2>
186                                         <pre><code contenteditable>
187 var supports3DTransforms =  document.body.style['webkitPerspective'] !== undefined || 
188                                 document.body.style['MozPerspective'] !== undefined ||
189                                 document.body.style['perspective'] !== undefined;
190
191 function linkify( selector ) {
192     if( supports3DTransforms ) {
193         
194         var nodes = document.querySelectorAll( selector );
195
196         for( var i = 0, len = nodes.length; i < len; i++ ) {
197             var node = nodes[i];
198
199             if( !node.className || !node.className.match( /roll/g ) ) {
200                 node.className += ' roll';
201                 node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
202             }
203         };
204     }
205 }
206
207 linkify( 'a' );
208                                         </code></pre>
209                                         <p>Courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
210                                 </section>
211                                 
212                                 <section>
213                                         <h2>Intergalactic Interconnections</h2>
214                                         <p>
215                                                 You can link between slides internally,<br/>
216                                                 <a href="#/2/3">like this</a>.
217                                         </p>
218                                 </section>
219
220                                 <section>
221                                         <h2>Fragmented Views</h2>
222                                         <p>Hit the next arrow...</p>
223                                         <p class="fragment">... to step through ...</p>
224                                         <ol>
225                                                 <li class="fragment"><code>any type</code></li>
226                                                 <li class="fragment"><em>of view</em></li>
227                                                 <li class="fragment"><strong>fragments</strong></li>
228                                         </ol>
229                                 </section>
230                                 
231                                 <section>
232                                         <h2>Spectacular image!</h2>
233                                         <a class="image" href="http://hakim.se/experiments/html5/breakdom/" target="_blank">
234                                                 <img width="320" height="412" src="https://s3.amazonaws.com/hakim-static/reveal-js/breakdom.png">
235                                         </a>
236                                 </section>
237                                 
238                                 <section>
239                                         <h2>Stellar Links</h2>
240                                         <ul>
241                                                 <li><a href="https://github.com/hakimel/reveal.js">Source code on github</a></li>
242                                                 <li><a href="http://hakim.se/projects/reveal-js">Read more on my site</a></li>
243                                                 <li><a href="http://twitter.com/hakimel">Follow me on Twitter</a></li>
244                                         </ul>
245                                 </section>
246                                 
247                                 <section>
248                                         <h1>THE END</h1>
249                                         <h3 class="inverted">BY Hakim El Hattab / hakim.se</h3>
250                                 </section>
251                         </div>
252
253                         <!-- The navigational controls UI -->
254                         <aside class="controls">
255                                 <a class="left" href="#">&#x25C4;</a>
256                                 <a class="right" href="#">&#x25BA;</a>
257                                 <a class="up" href="#">&#x25B2;</a>
258                                 <a class="down" href="#">&#x25BC;</a>
259                         </aside>
260
261                         <!-- Displays presentation progress, max value changes via JS to reflect # of slides -->
262                         <div class="progress"><span></span></div>
263                         
264                 </div>
265
266                 <!-- Optional libraries for code syntax highlighting and classList support in IE9 -->
267                 <script src="lib/highlight/highlight.js"></script>
268                 <script src="lib/polyfills/classList.js"></script>
269                 
270                 <script src="js/reveal.js"></script>
271                 
272                 <script>
273                         // Parse the query string into a key/value object
274                         var query = {};
275
276                         location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) {
277                                 query[ a.split( '=' ).shift() ] = a.split( '=' ).pop();
278                         } );
279
280                         // Fires when a slide with data-state=customevent is activated
281                         Reveal.addEventListener( 'customevent', function() {
282                                 alert( '"customevent" has fired' );
283                         } );
284
285                         // Fires each time a new slide is activated
286                         Reveal.addEventListener( 'slidechanged', function( event ) {
287                                 // event.previousSlide, event.currentSlide, event.indexh, event.indexv
288                         } );
289
290                         Reveal.initialize({
291                                 // Display controls in the bottom right corner
292                                 controls: true,
293
294                                 // Display a presentation progress bar
295                                 progress: true,
296
297                                 // If true; each slide will be pushed to the browser history
298                                 history: true,
299
300                                 // Loops the presentation, defaults to false
301                                 loop: false,
302
303                                 // Flags if mouse wheel navigation should be enabled
304                                 mouseWheel: true,
305
306                                 // Apply a 3D roll to links on hover
307                                 rollingLinks: true,
308
309                                 // UI style
310                                 theme: query.theme || 'default', // default/neon
311
312                                 // Transition style
313                                 transition: query.transition || 'default' // default/cube/page/concave/linear(2d)
314                         });
315
316                         hljs.initHighlightingOnLoad();
317                 </script>
318
319                 <!-- the next two lines enable the speaker notes server -->
320                 <!-- <script src="socket.io/socket.io.js"></script>
321                 <script src="js/reveal.slidenotes.js"></script> -->
322         </body>
323 </html>