Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanve/arro
left/right arrow keyboard shortcuts
https://github.com/ryanve/arro
Last synced: about 1 month ago
JSON representation
left/right arrow keyboard shortcuts
- Host: GitHub
- URL: https://github.com/ryanve/arro
- Owner: ryanve
- Created: 2014-09-27T17:45:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-27T17:58:55.000Z (about 10 years ago)
- Last Synced: 2024-10-07T11:20:56.557Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/arro
- Size: 133 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# arro
#### left/right-arrow keyboard shortcuts for flipping through `[rel="prev"]` and `[rel="next"]` links using native JavaScript## Usage
Load [arro.js](arro.js) via `script` tag or via `require('arro')` in your bundle. Specify `[rel="prev"]` and `[rel="next"]` URLs via either `link[href]` in `a[href]` tags.### `link` example
```html2.html
2
```
### `a` example
```html2.html
2
```
## Demo
1. Download or clone the repo
1. Open [test/index.html](test/index.html) in a web browser## Compatibility
Works in all modern browsers## Fund
[Tip the developer](https://gratipay.com/ryanve/) =)## License
MIT