
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
polyfill for requestFullscreen
var fullscreen = require('fullscreen')
, el = document.getElementById('element')
, fs
fs = fullscreen(el)
el.addEventListener('click', function() {
fs.request()
})
document.body.onkeydown = function() {
fs.release()
}
fs.on('attain', function() {
// attained fullscreen
})
fs.on('release', function() {
// released fullscreen
})
fs.on('error', function() {
// fullscreen request failed, or
// fullscreen isn't supported
})
return a boolean yes/no for whether fullscreen api is supported.
return a fullscreen event emitter object. if fullscreen is not
available, on the next turn of the event loop it'll emit 'error'.
issue a request for fullscreen. if it's accepted, it emits 'attain', otherwise 'error' for denial.
release the current fullscreen element. if the fullscreen is released, it emits 'release'.
returns the current fullscreen target, if any.
MIT
FAQs
fullscreen polyfill api that presents an event emitter
The npm package fullscreen receives a total of 1,522 weekly downloads. As such, fullscreen popularity was classified as popular.
We found that fullscreen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.