saidai
A simple wrapper of Fullscreen API.
Install
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --save saidai
or if you use yarn.
$ yarn add saidai
Then with a module bundler like rollup or webpack, use as you would anything else:
// using ES6 modules // using CommonJS modulesvar saidai =
The UMD build is also available on unpkg:
This exposes the saidai()
function as a global.
Usage
; const fullscreen = // check if some element is in Fullscreen modesaidai // Request to Enter Fullscreen modesaidai // Exit Fullscreen modesaidai // Listen to `fullscreenchange` eventfullscreen
Examples & Demos
API
saidai's API is organized as follows:
saidai(options: Object)
saidai will account for the following properties in options:
param
....
isFullscreen()
return if some element in Fullscreen mode
request()
Request to Enter Fullscreen mode
exit()
Exit Fullscreen mode