The website of Ura Design
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
542 B

Modernizr.addTest('fullscreen',function(){
for(var i = 0; i < Modernizr._domPrefixes.length; i++) {
if( document[Modernizr._domPrefixes[i].toLowerCase() + 'CancelFullScreen'])
return true;
}
return !!document['cancelFullScreen'] || false;
});
// http://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/ControllingMediaWithJavaScript/ControllingMediaWithJavaScript.html#//apple_ref/doc/uid/TP40009523-CH3-SW20
// https://developer.mozilla.org/en/API/Fullscreen