Fullscreen api
$ component install nk-components/fullscreen
var fullscreen = require('fullscreen');
fullscreen.on('change', function(full){
console.log('changed to %s', full ? 'fullscreen' : 'regular');
});
setTimeout(function(){
fullscreen();
}, 2000);
- "change" (fullscreen) boolean
Display fullscreen document or el
.
Exit fullscreen mode.
Check if fullscreen is supported.
If the window is displayed in full screen mode or not.
MIT