Test - Full Window Video
by darcyclarke
HTML
<p><a href="#">Full Screen Mode!</a></p>
<video src="http://darcyclarke.me/work/fi/uploads/videos/1.mp4" controls>
JavaScript
(function(window, document, undefined){
console.dir(window);
// Popup Options
var fullScreen = {};
fullScreen.url = "http://jsfiddle.net/darcyclarke/DfuYF/show";
fullScreen.name = "yo";
fullScreen.params = {
height: window.screen.height,
width: window.screen.width,
directories: 0,
location: 0,
menubar: 0,
resizable: 0,
status: 0,
toolbar: 0,
scrollbars: 0
};
fullScreen._window = false;
// Is Popup Blocked
function _isBlocked(a){var b=false;try{if(typeof a=="undefined"){b=true}else if(a&&a.closed){b=false}else if(a&&a.test){b=false}else{b=true}}catch(c){}return b};
$("a").bind("click", function(e){
fullScreen._window = window.open(fullScreen.url,fullScreen.name, $.param(fullScreen.params).replace("&",","));
console.dir(fullScreen._window);
});
})(window, document);