fullscreen-api.js 542 B

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