https://github.com/component/fullscreen
Fullscreen api wrapper
https://github.com/component/fullscreen
Last synced: 8 months ago
JSON representation
Fullscreen api wrapper
- Host: GitHub
- URL: https://github.com/component/fullscreen
- Owner: component
- Created: 2013-02-20T19:44:35.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2016-08-12T04:09:05.000Z (over 9 years ago)
- Last Synced: 2024-12-09T05:35:28.189Z (over 1 year ago)
- Language: JavaScript
- Size: 163 KB
- Stars: 29
- Watchers: 7
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# fullscreen
Fullscreen api
## Installation
$ component install component/fullscreen
## Example
```js
var fullscreen = require('fullscreen');
fullscreen.on('change', function(full){
console.log('changed to %s', full ? 'fullscreen' : 'regular');
});
setTimeout(function(){
fullscreen();
}, 2000);
```
## Events
- "change" (fullscreen) boolean
## API
### fullscreen([el])
Display fullscreen document or `el`.
### fullscreen.exit()
Exit fullscreen mode.
### fullscreen.supported
Check if fullscreen is supported.
## License
MIT