Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opendevise/bespoke-nav
A composite plugin that combines the keyboard and touch navigation plugins for Bespoke.js into a single plugin.
https://github.com/opendevise/bespoke-nav
Last synced: 18 days ago
JSON representation
A composite plugin that combines the keyboard and touch navigation plugins for Bespoke.js into a single plugin.
- Host: GitHub
- URL: https://github.com/opendevise/bespoke-nav
- Owner: opendevise
- License: mit
- Created: 2015-09-16T04:59:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T06:49:55.000Z (over 8 years ago)
- Last Synced: 2024-09-19T01:40:07.461Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://opendevise.github.io/bespoke-nav
- Size: 24.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- Contributing: CONTRIBUTING-CODE.adoc
- License: LICENSE
Awesome Lists containing this project
README
= bespoke-nav
Dan Allen
// Settings:
:idprefix:
:idseparator: -
ifdef::env-github[:badges:]
// Variables:
:release-version: v1.0.2
// URIs:
:uri-raw-file-base: https://raw.githubusercontent.com/opendevise/bespoke-nav/{release-version}ifdef::badges[]
image:https://img.shields.io/npm/v/bespoke-nav.svg[npm package, link=https://www.npmjs.com/package/bespoke-nav]
image:https://img.shields.io/travis/opendevise/bespoke-nav/master.svg[Build Status (Travis CI), link=https://travis-ci.org/opendevise/bespoke-nav]
endif::[]A composite plugin that combines the navigation plugins for http://markdalgleish.com/projects/bespoke.js[Bespoke.js] (https://www.npmjs.com/package/bespoke-nav-kbd[bespoke-nav-kbd] and https://www.npmjs.com/package/bespoke-nav-touch[bespoke-nav-touch]) into a single plugin.
== Example
http://opendevise.github.io/bespoke-nav[View the demo] online.
This repository includes a demo folder that shows this plugin in action.
To view it locally, you first need to clone this repository:$ git clone https://github.com/opendevise/bespoke-nav && cd bespoke-nav
Next, install the dependencies inside the project folder using npm:
$ npm install
Finally, visit the file [path]_demo/index.html_ in your browser to see the plugin in action.
== Download
Download the {uri-raw-file-base}/dist/bespoke-nav.min.js[production mode version] or the {uri-raw-file-base}/dist/bespoke-nav.js[development mode version], or use a package manager.
=== npm
$ npm install bespoke-nav
=== Bower
$ bower install bespoke-nav
== Usage
This plugin is shipped in a https://github.com/umdjs/umd[UMD format], meaning it is available as a CommonJS/AMD module or as a browser global.
For example, when using CommonJS modules:
```js
var bespoke = require('bespoke'),
nav = require('bespoke-nav');bespoke.from('.deck', [
nav()
]);
```When using a browser global:
```js
bespoke.from('.deck', [
bespoke.plugins.nav()
]);
```=== Options
You can pass options to the bespoke-nav-kbd and bespoke-nav-touch plugins using the `kbd` and `touch` option keys, respectively.
```js
bespoke.from('.deck', [
nav({ kbd: {...}, touch: {...} })
]);
```== License
http://en.wikipedia.org/wiki/MIT_License[MIT License]