Clone section which use bullete.
If you must output pdf, but want use bespoke and bullets slide, this plugin is very helpful
Download the production version or the development version, or use a package manager.
First, include both bespoke.js
and bespoke-printable-bullets.js
in your page.
Then, simply include the plugin when instantiating your presentation.
bespokeBullets('article',"ul li", function(s,b){
bespoke.from(s, {
keys: true,
touch: true,
});
})
$ bower install bespoke-printable-bullets
$ npm install bespoke-printable-bullets
The bespoke-printable-bullets npm package is designed for use with browserify, e.g.
require('bespoke');
require('bespoke-printable-bullets');
This plugin was built with generator-bespokeplugin.
Plugin run with before hook events.
Hello. I tried to create plugin that modify sections before bespoke start hook event. But currently cannot that.
Out of necessity, I implement this function as outside plugin. But that so dirty. :(
beforeBespke('article', function(from){
bespoke.from(from, {
keys: true,
touch: true,
});
})
var beforeBespke = function(from, callback){
// emulate bespoke from
var parent = selectorOrElement.nodeType === 1 ? selectorOrElement : document.querySelector(selectorOrElement)
var slides = [].filter.call(parent.children, function(el) { return el.nodeName !== 'SCRIPT'; })
var deck = {
slides : slides
}
// :
// do something modification to slide.
// (This is a point want to plugin)
// :
callback(from)
}
Please tell me if you have more good idea