jQuery Fullscreen Plugin
Modern browsers (Like Chrome and Firefox) provide an interesting new feature: A fullscreen mode which can be controlled by JavaScript. It is even possible to switch a single HTML element to fullscreen. This is useful for videos or images for example. Unfortunately browsers currently only provide the necessary methods with the usual browser-specific prefixes:
// Firefox element.mozRequestFullScreen(); document.mozCancelFullScreen(); document.mozFullScreen; // Chrome element.webkitRequestFullScreen(); document.webkitCancelFullScreen(); document.webkitIsFullScreen;
To simplify the usage of this new feature I wrote a small jQuery plugin.
Continue reading "jQuery Fullscreen Plugin"