Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
easy-fullscreen
Advanced tools
import Fullscreen from 'easy-fullscreen';
var fullscreenElement = doucument.getElementById('fullscreen-container');
var fullscreenButton = document.getElementById('button');
// check if fullscreen enabled
if (Fullscreen.isEnabled) {
fullscreenButton.onclick = function () {
check if is in fullscreen mode
if (Fullscreen.isFullscreen) {
// exit fullscreen
Fullscreen.exit();
} else {
// request to enter fullscreen
Fullscreen.request(fullscreenElement);
}
};
}
var onChangeHandler = function () {
if (Fullscreen.isFullscreen) {
console.log('Entered fullscreen');
} else {
console.log('Exited fullscreen');
}
};
// subscribe to fullscreen change event
Fullscreen.on('change', onChangeHandler);
// unsubscribe from fullscreen change event
Fullscreen.off('change', onChangeHandler);
var onErrorHandler = function (e) {
console.log(e);
};
// subscribe to fullscreen error event
Fullscreen.on('error', onErrorHandler);
// unsubscribe from fullscreen error event
Fullscreen.off('error', onErrorHandler);
FAQs
fullscreen api in a vendor agnostic wrapper
The npm package easy-fullscreen receives a total of 4 weekly downloads. As such, easy-fullscreen popularity was classified as not popular.
We found that easy-fullscreen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.