# reveal.js [![Build Status](https://travis-ci.org/hakimel/reveal.js.svg?branch=master)](https://travis-ci.org/hakimel/reveal.js) A framework for easily creating beautiful presentations using HTML. [Check out the live demo](http://lab.hakim.se/reveal-js/). reveal.js comes with a broad range of features including [nested slides](https://github.com/hakimel/reveal.js#markup), [Markdown contents](https://github.com/hakimel/reveal.js#markdown), [PDF export](https://github.com/hakimel/reveal.js#pdf-export), [speaker notes](https://github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](https://github.com/hakimel/reveal.js#api). It's best viewed in a modern browser but [fallbacks](https://github.com/hakimel/reveal.js/wiki/Browser-Support) are available to make sure your presentation can still be viewed elsewhere. #### More reading: - [Installation](#installation): Step-by-step instructions for getting reveal.js running on your computer. - [Changelog](https://github.com/hakimel/reveal.js/releases): Up-to-date version history. - [Examples](https://github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own! - [Browser Support](https://github.com/hakimel/reveal.js/wiki/Browser-Support): Explanation of browser support and fallbacks. - [Plugins](https://github.com/hakimel/reveal.js/wiki/Plugins,-Tools-and-Hardware): A list of plugins that can be used to extend reveal.js. ## Online Editor 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 [http://slides.com](http://slides.com). ## Instructions ### Markup Markup hierarchy needs to be ``
elements
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
// Zoom in and out with Alt+click
{ src: 'plugin/zoom-js/zoom.js', async: true },
// Speaker notes
{ src: 'plugin/notes/notes.js', async: true },
// Remote control your reveal.js presentation using a touch device
{ src: 'plugin/remotes/remotes.js', async: true },
// MathJax
{ src: 'plugin/math/math.js', async: true }
]
});
```
You can add your own extensions using the same syntax. The following properties are available for each dependency object:
- **src**: Path to the script to load
- **async**: [optional] Flags if the script should load after reveal.js has started, defaults to false
- **callback**: [optional] Function to execute when the script has loaded
- **condition**: [optional] Function which must return true for the script to be loaded
### Ready Event
A 'ready' event is fired when reveal.js has loaded all non-async dependencies and is ready to start navigating. To check if reveal.js is already 'ready' you can call `Reveal.isReady()`.
```javascript
Reveal.addEventListener( 'ready', function( event ) {
// event.currentSlide, event.indexh, event.indexv
} );
```
### Presentation Size
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.
See below for a list of configuration options related to sizing, including default values:
```javascript
Reveal.initialize({
...
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 960,
height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.5
});
```
### Auto-sliding
Presentations can be configured to progress through slides automatically, without any user input. To enable this you will need to tell the framework how many milliseconds it should wait between slides:
```javascript
// Slide every five seconds
Reveal.configure({
autoSlide: 5000
});
```
When this is turned on a control element will appear that enables users to pause and resume auto-sliding. Alternatively, sliding can be paused or resumed by pressing »a« on the keyboard. Sliding is paused automatically as soon as the user starts navigating. You c[submodule "docs/submodules/apex"]
path = docs/submodules/apex
url = ../apex
branch = .
ignore = dirty
[submodule "docs/submodules/armband"]
path = docs/submodules/armband
url = ../armband
branch = .
ignore = dirty
[submodule "docs/submodules/bottlenecks"]
path = docs/submodules/bottlenecks
url = ../bottlenecks
branch = .
ignore = dirty
[submodule "docs/submodules/compass4nfv"]
path = docs/submodules/compass4nfv
url = ../compass4nfv
branch = .
ignore = dirty
[submodule "docs/submodules/copper"]
path = docs/submodules/copper
url = ../copper
branch = .
ignore = dirty
[submodule "docs/submodules/daisy"]
path = docs/submodules/daisy
url = ../daisy
branch = .
ignore = dirty
[submodule "docs/submodules/domino"]
path = docs/submodules/domino
url = ../domino
branch = .
ignore = dirty
[submodule "docs/submodules/dovetail"]
path = docs/submodules/dovetail
url = ../dovetail
branch = .
ignore = dirty
[submodule "docs/submodules/escalator"]
path = docs/submodules/escalator
url = ../escalator
branch = .
ignore = dirty
[submodule "docs/submodules/fastpathmetrics"]
path = docs/submodules/fastpathmetrics
url = ../fastpathmetrics
branch = .
ignore = dirty
[submodule "docs/submodules/fds"]
path = docs/submodules/fds
url = ../fds
branch = .
ignore = dirty
[submodule "docs/submodules/fuel"]
path = docs/submodules/fuel
url = ../fuel
branch = .
ignore = dirty
[submodule "docs/submodules/functest"]
path = docs/submodules/functest
url = ../functest
branch = .
ignore = dirty
[submodule "docs/submodules/ipv6"]
path = docs/submodules/ipv6
url = ../ipv6
branch = .
ignore = dirty
[submodule "docs/submodules/joid"]
path = docs/submodules/joid
url = ../joid
branch = .
ignore = dirty
[submodule "docs/submodules/kvmfornfv"]
path = docs/submodules/kvmfornfv
url = ../kvmfornfv
branch = .
ignore = dirty
[submodule "docs/submodules/multisite"]
path = docs/submodules/multisite
url = ../multisite
branch = .
ignore = dirty
[submodule "docs/submodules/netready"]
path = docs/submodules/netready
url = ../netready
branch = .
ignore = dirty
[submodule "docs/submodules/octopus"]
path = docs/submodules/octopus
url = ../octopus
branch = .
ignore = dirty
[submodule "docs/submodules/onosfw"]
path = docs/submodules/onosfw
url = ../onosfw
branch = .
ignore = dirty
[submodule "docs/submodules/openretriever"]
path = docs/submodules/openretriever
url = ../openretriever
branch = .
ignore = dirty
[submodule "docs/submodules/ovsnfv"]
path = docs/submodules/ovsnfv
url = ../ovsnfv
branch = .
ignore = dirty
[submodule "docs/submodules/parser"]
path = docs/submodules/parser
url = ../parser
branch = .
ignore = dirty
[submodule "docs/submodules/pharos"]
path = docs/submodules/pharos
url = ../pharos
branch = .
ignore = dirty
[submodule "docs/submodules/promise"]
path = docs/submodules/promise
url = ../promise
branch = .
ignore = dirty
[submodule "docs/submodules/qtip"]
path = docs/submodules/qtip
url = ../qtip
branch = .
ignore = dirty
[submodule "docs/submodules/releng"]
path = docs/submodules/releng
url = ../releng
branch = master
[submodule "docs/submodules/sdnvpn"]
path = docs/submodules/sdnvpn
url = ../sdnvpn
branch = .
ignore = dirty
[submodule "docs/submodules/sfc"]
path = docs/submodules/sfc
url = ../sfc
branch = .
ignore = dirty
[submodule "docs/submodules/storperf"]
path = docs/submodules/storperf
url = ../storperf
branch = .
ignore = dirty
[submodule "docs/submodules/ves"]
path = docs/submodules/ves
url = ../ves
branch = .
ignore = dirty
[submodule "docs/submodules/vnf_forwarding_graph"]
path = docs/submodules/vnf_forwarding_graph
url = ../vnf_forwarding_graph
branch = .
ignore = dirty
[submodule "docs/submodules/vswitchperf"]
path = docs/submodules/vswitchperf
url = ../vswitchperf
branch = .
ignore = dirty
[submodule "docs/submodules/yardstick"]
path = docs/submodules/yardstick
url = ../yardstick
branch = .
ignore = dirty
[submodule "docs/submodules/doctor"]
path = docs/submodules/doctor
url = ../doctor
branch = .
ignore = dirty
[submodule "docs/submodules/availability"]
path = docs/submodules/availability
url = ../availability
branch = .
ignore = dirty
[submodule "docs/submodules/opera"]
path = docs/submodules/opera
url = ../opera
branch = .
ignore = dirty
[submodule "docs/submodules/snaps"]
path = docs/submodules/snaps
url = ../snaps
branch = .
ignore = dirty
[submodule "docs/submodules/barometer"]
path = docs/submodules/barometer
url = ../barometer
branch = .
ignore = dirty
[submodule "docs/submodules/infra"]
path = docs/submodules/infra
url = ../infra
branch = .
ignore = dirty
© 2015 Open Platform for NFV Project, Inc., a Linux Foundation Collaborative Project. All Rights Reserved.
Open Platform for NFV and OPNFV are trademarks of the Open Platform for NFV Project, Inc.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our terms of use, trademark policy, and privacy policy.