Skip to content

nk-components/fullscreen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fullscreen

Fullscreen api

Installation

$ component install nk-components/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.

fullscreen.isFullscreen

If the window is displayed in full screen mode or not.

License

MIT

About

Fullscreen api wrapper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%