jquery.fullscreen.js
function installFullScreenHandlers()
{
    var e, change, error;
    
    // Determine event name
    e = document;
    if (e["webkitCancelFullScreen"])
    {
        change = "webkitfullscreenchange";
        error = "webkitfullscreenerror";
    }
    else if (e["msExitFullscreen"])
    {
        change = "MSFullscreenChange";
        error = "MSFullscreenError";
    }
    else if (e["mozCancelFullScreen"])
    {
        change = "mozfullscreenchange";
        error = "mozfullscreenerror";
    }
    else 
    {
        change = "fullscreenchange";
        error = "fullscreenerror";
    }

    // Install the event handlers
    jQuery(document).bind(change, fullScreenChangeHandler);
    jQuery(document).bind(error, fullScreenErrorHandler);
}
function installFullScreenHandlers()
{
    var e, change, error;
    
    // Determine event name
    e = document;
    if (e["webkitCancelFullScreen"])
    {
        change = "webkitfullscreenchange";
        error = "webkitfullscreenerror";
    }
    else if (e["msExitFullscreen"])
    {
        change = "MSFullscreenChange";
        error = "MSFullscreenError";
    }
    else if (e["mozCancelFullScreen"])
    {
        change = "mozfullscreenchange";
        error = "mozfullscreenerror";
    }
    else 
    {
        change = "fullscreenchange";
        error = "fullscreenerror";
    }

    // Install the event handlers
    jQuery(document).bind(change, fullScreenChangeHandler);
    jQuery(document).bind(error, fullScreenErrorHandler);
}
function installFullScreenHandlers ( ) { var e , change , error ; // Determine event name e = document ; if ( e [ "webkitCancelFullScreen" ] ) { change = "webkitfullscreenchange" ; error = "webkitfullscreenerror" ; } else if ( e [ "msExitFullscreen" ] ) { change = "MSFullscreenChange" ; error = "MSFullscreenError" ; } else if ( e [ "mozCancelFullScreen" ] ) { change = "mozfullscreenchange" ; error = "mozfullscreenerror" ; } else { change = "fullscreenchange" ; error = "fullscreenerror" ; } // Install the event handlers jQuery ( document ) . bind ( change , fullScreenChangeHandler ) ; jQuery ( document ) . bind ( error , fullScreenErrorHandler ) ; }
Installs the fullscreenchange event handler.
Installs the fullscreenchange event handler .