Add Shower plugin and example

This commit is contained in:
astefanutti 2015-07-03 14:58:11 +02:00
parent 47868fa434
commit a5ed42d5d0
2 changed files with 41 additions and 1 deletions

View File

@ -4,7 +4,7 @@ DeckTape is a high-quality PDF exporter for HTML5 presentation frameworks. It su
DeckTape is built on top of [PhantomJS](http://phantomjs.org) which relies on [WebKit Qt](https://wiki.qt.io/Qt_WebKit) for laying out and rendering Web pages and provides a headless WebKit scriptable with a JavaScript API.
DeckTape currently supports the [CSSS](http://leaverou.github.io/csss/), [deck.js](http://imakewebthings.com/deck.js/), [DZSlides](http://paulrouget.com/dzslides/), [flowtime.js](http://flowtime-js.marcolago.com), [HTML Slidy](http://www.w3.org/Talks/Tools/), [impress.js](http://impress.github.io/impress.js), [remark.js](http://remarkjs.com) and [reveal.js](http://lab.hakim.se/reveal-js) presentation frameworks out-of-the-box. Besides, it exposes a plugin-based extension API so that it is possible to add support for other frameworks or tailored existing ones to your specific needs.
DeckTape currently supports the [CSSS](http://leaverou.github.io/csss/), [deck.js](http://imakewebthings.com/deck.js/), [DZSlides](http://paulrouget.com/dzslides/), [flowtime.js](http://flowtime-js.marcolago.com), [HTML Slidy](http://www.w3.org/Talks/Tools/), [impress.js](http://impress.github.io/impress.js), [remark.js](http://remarkjs.com), [reveal.js](http://lab.hakim.se/reveal-js) and [Shower](http://shwr.me/) presentation frameworks out-of-the-box. Besides, it exposes a plugin-based extension API so that it is possible to add support for other frameworks or tailored existing ones to your specific needs.
You can browse some slide deck [examples](#examples) below that have been exported with DeckTape.
@ -88,6 +88,7 @@ The following slide deck examples have been exported using DeckTape:
| [The Official Remark Slideshow][remark-js-slideshow] | remark.js `0.11.0` | [remark-js-slideshow.pdf][] (0.7MB) |
| [HTML Slidy: Slide Shows in HTML and XHTML][html-slidy-presentation] | HTML Slidy | [html-slidy-presentation.pdf][] (0.5MB) |
| [CSSS: CSS-based SlideShow System][csss-sample-slideshow] | CSSS | [csss-sample-slideshow.pdf][] (13.5MB) |
| [Shower Presentation Engine][shower-presentation-engine] | Shower | [shower-presentation-engine.pdf][] (0.4MB) |
[fowd-nyc-2014]: http://razvancaliman.com/fowd-nyc-2014
[fowd-nyc-2014.pdf]: https://astefanutti.github.io/decktape/examples/fowd-nyc-2014.pdf
@ -107,3 +108,5 @@ The following slide deck examples have been exported using DeckTape:
[html-slidy-presentation.pdf]: https://astefanutti.github.io/decktape/examples/html-slidy-presentation.pdf
[csss-sample-slideshow]: http://leaverou.github.io/csss/
[csss-sample-slideshow.pdf]: https://astefanutti.github.io/decktape/examples/csss-sample-slideshow.pdf
[shower-presentation-engine]: http://shwr.me/?full
[shower-presentation-engine.pdf]: https://astefanutti.github.io/decktape/examples/shower-presentation-engine.pdf

37
plugins/shower.js Normal file
View File

@ -0,0 +1,37 @@
function Shower() {
}
Shower.prototype = {
getName : function() {
return "Shower";
},
isActive : function() {
return typeof shower === "object";
},
configure : function() {
shower.showPresenterNotes = function () {};
shower.first();
shower.enterSlideMode();
},
slideCount : function() {
return shower.slideList.length;
},
hasNextSlide : function() {
return (shower.getCurrentSlideNumber() + 1) in shower.slideList;
},
nextSlide : function() {
shower.next();
},
currentSlideIndex : function() {
return shower.getSlideHash(shower.getCurrentSlideNumber()).substring(1);
}
};
module.exports = new Shower();