Socket
Book a DemoInstallSign in
Socket

fullscreen-component

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fullscreen-component

Fullscreen api

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 20 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts