Slides controls
- ← and → or scroll to move around.
- ↑ and ↓ to zoom in and out.
- Space to toggle autoplay.
- F11 to toggle full screen.
- T to toggle theme.
- R to toggle slides transition.
You can download this project in a zip format.
Via Terminal
$ wget https://github.com/vindm/Present/archive/v1.0.zip $ unzip v1.0.zip
Via Git
$ git clone git://github.com/vindm/Present.git
Link the component and a stylesheet from your page.
<link href="stylesheets/present.css" rel="stylesheet"/> <script src="javascripts/jquery.min.js" ></script> <script src="javascripts/present.min.js" ></script>
<section class="presentation">
<!-- First slide -->
<article>
<!-- Slide content -->
...
</article>
<!-- Second slide -->
<article>
<!-- Slide content -->
...
</article>
<!-- More slides -->
...
</section>
$(function() {
$('.presentation').present( [ options ] );
});
You can override Present's default options by passing your own custom options and callbacks as the first argument to the .present() plugin.
Here's a quick snippet with all defaults declared so you can copy and paste into your project:
$('#presentation').present({
initialScale : 85, // percentage value to scale on init
initialTheme : 'Dark', // choose between Dark or Light
slideTimer : 4500, // how long (in milliseconds) slides should be shown in play mode
stepTimer : 1500, // how long (in milliseconds) steps should be shown in play mode
playOnInit : false, // whether or not to automatically begin playing the slides
bindToHistory: true, // whether on not to modify browser's history
controlPanel : true, // whether or not to add a control panel
loopPlay : false, // whether or not to loop playing the slides
scaleOnResize: true, // whether or not to scale the slides on window resize
transition : true, // whether or not to use slide transitions
userEvents : true, // whether or not to bind user events to slides controls
onReady : $.noop, // gets called when present is setup and ready to go
onPlay : $.noop, // gets called when the play() method is called
onStop : $.noop, // gets called when the stop() method is called
onPause : $.noop, // gets called when the pause() method is called
onRestart : $.noop, // gets called when the restart() method is called
});
Vinokurov Dmitriy
Jan 29, 2013
This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text.
There is more text just underneath.
This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text.
There is more text just underneath with a code sample: 5px.
This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text. This is a slide with just text.
There is more text just underneath with a code sample: 5px.
Any element with child nodes can build.
It doesn't have to be a list.
| Name | Occupation |
|---|---|
| Luke Mahé | V.P. of Keepin’ It Real |
| Marcin Wichary | The Michael Bay of Doodles |
| Name | Occupation |
|---|---|
| Luke Mahé | V.P. of Keepin’ It Real |
| Marcin Wichary | The Michael Bay of Doodles |
<script type='text/javascript'>
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
for (var i = 42; --i >= 0;) {
alert('Hello ' + String(world));
}
}
</script>
<style>
p { color: pink }
b { color: blue }
u { color: 'umber' }
</style>
<script type='text/javascript'>
// Say hello world until the user starts questioning
// the meaningfulness of their existence.
function helloWorld(world) {
for (var i = 42; --i >= 0;) {
alert('Hello ' + String(world));
}
}
</script>
<style>
p { color: pink }
b { color: blue }
u { color: 'umber' }
</style>
The best way to predict the future is to invent it.
A distributed system is one in which the failure of a computer you didn’t even know existed can render your own computer unusable.