Releases: shisama/toggle-fullscreen
Releases · shisama/toggle-fullscreen
Update README
Use Immediately-invoked function expression.
v0.3.2 Update verstion -> 0.3.2
Add isFullscreen and fullscreenChange
v0.3.1 fix callback ver
fix Edge requestFullscreen
v0.2.3 fix Edge requestFullscreen
fix event on fullscreen of Edge
v0.2.2 fix event on fullscreen of Edge
Update README
v0.2.1 Update README
Add callback feature
Callback example:
onChangeFullScreen = function() {
const element = document.getElementById('something');
toggleFullscreen(element, function(isFullScreen) {
if (isFullScreen) {
// any process in fullscreen mode
// e.g.document.addEventListener('keydown', this.keydownEvent);
} else {
// any process in non-fullscreen mode
// e.g.document.removeEventListener('keydown', this.keydownEvent);
}
});
};
Fix README.md
fix Usage any process in fullscreen mode
-> any process in non-fullscreen mode
npm publish
npm publish v0.1.0.
see https://www.npmjs.com/package/toggle-fullscreen