-
-
Notifications
You must be signed in to change notification settings - Fork 8
Modules
Ondřej Žára edited this page Jun 4, 2013
·
21 revisions
To register new module, add Slides.modules.YOURMODULE = YOURCONFIG;
to your HTML document. To deactivate a default module, add delete Slides.module.MODULENAME;
.
- Implements keyboard-based navigation (arrows, PageUp/Down, Space, Backspace, Home/End)
- Default configuration:
Slides.modules.keyboard = true;
- Persists current slide number to the URL; implements browser history and permalinks
- Default configuration:
Slides.modules.url = true;
- Creates and updates browser window title
- Default configuration:
Slides.modules.title = "(%n) %t";
- Available template replacements:
-
%t
= Presentation title -
%s
= Current slide's title -
%n
= Current slide's number -
%c
= Total slide count
-
- Maintains an element with progress information and adjust its width
- Progress node will be appended to a parent node specified by a CSS selector
- Default configuration:
Slides.modules.progress = {
template: "%n/%c",
parent: "footer"
};
- Maintains an element and adjust its width based on an expected presentation duration
- Time node will be appended to a parent node specified by a CSS selector
- Default configuration:
Slides.modules.time = {
length: 10*60*1000,
parent: "footer"
};
- Applies a stylesheet
- Default configuration:
Slides.modules.skin = "default";
- Toggles content with respect to a currently selected language
- Shows/hides elements with
lang=xx
attribute - Default configuration:
Slides.modules.language = ["en"];
- Uses animated transition effect when switching slides
- Default configuration:
Slides.modules.transition = "horizontal";
- Available transitions:
none vertical horizontal blend corner