Fullscreen api wrapper
JavaScript HTML Makefile
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
example.html
index.js
package.json

Readme.md

fullscreen

Fullscreen api

Installation

$ component install component/fullscreen

Example

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