Fast Search for Bespoke.js slide-decks.
Download the production version or the development version, and the css, or use a package manager.
First, include both bespoke.js
, bespoke-spotlight.js
and bespoke-spotlight.css
in your page.
Then, simply include the plugin when instantiating your presentation.
bespoke.horizontal.from('article', {
spotlight: true
});
Press 'q' (for query) on your keyboard to bring up the search field and 'RETURN' or 'ESC' to close it.
As you type spotlight automatically navigates to the first slide that contains matching text. Spotlight will search headings first, then all other content
Contact me on GitHub or Twitter: @mobz
$ bower install bespoke-spotlight
$ npm install bespoke-spotlight
The bespoke-spotlight npm package is designed for use with browserify, e.g.
require('bespoke');
require('bespoke-spotlight');
This plugin was built with generator-bespokeplugin.
Copyright 2013, Ben Birch
This content is released under the MIT license
http://mit-license.org/mobz