Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/orientation-listener
Listen to device orientation changes
https://github.com/component/orientation-listener
Last synced: 13 days ago
JSON representation
Listen to device orientation changes
- Host: GitHub
- URL: https://github.com/component/orientation-listener
- Owner: component
- Created: 2013-06-19T17:05:09.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-27T00:42:08.000Z (almost 8 years ago)
- Last Synced: 2024-11-29T12:42:15.543Z (29 days ago)
- Language: JavaScript
- Size: 120 KB
- Stars: 8
- Watchers: 6
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# orientation-listener
Listen for device orientation changes.
## Installation
Install with [component(1)](http://component.io):
$ component install component/orientation-listener
## Example
## API
### Listener()
Initialize a new Listener.
### Listener.orientation()
Return the orientation type, "landscape" or "portrait".
### Listener.unbind()
Unbind listeners.
## License
MIT