|
Server IP : 127.0.0.1 / Your IP : 127.0.0.1 Web Server : Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3 System : Windows NT WIN-R7LTCC7BPLI 6.3 build 9200 (Windows Server 2012 R2 Datacenter Edition) i586 User : GerbangSIPAD ( 0) PHP Version : 5.6.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/xampp5/phpMyAdmin/js/jquery/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
// jQuery.FullScreen plugin
// Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy!
(function($) {
function isFullScreen() {
return document[!prefix ? 'fullScreen' :
'webkit' === prefix ? 'webkitIsFullScreen' :
prefix + 'FullScreen'];
}
function cancelFullScreen() {
return document[prefix ? prefix + 'CancelFullScreen'
: 'cancelFullScreen']();
}
var supported = typeof document.cancelFullScreen !== 'undefined'
, prefixes = ['webkit', 'moz', 'o', 'ms', 'khtml']
, prefix = ''
, noop = function() {}
, i
;
if (!supported) {
for (i = 0; prefix = prefixes[i]; i++) {
if (typeof document[prefix + 'CancelFullScreen'] !== 'undefined') {
supported = true;
break;
}
}
}
if (supported) {
$.fn.requestFullScreen = function() {
return this.each(function() {
return this[prefix ? prefix + 'RequestFullScreen'
: 'requestFullScreen']();
});
};
$.fn.fullScreenChange = function(fn) {
var ar = [prefix + 'fullscreenchange'].concat([].slice.call(arguments, 0))
, $e = $(this);
return $e.bind.apply($e, ar);
};
$.FullScreen =
{ isFullScreen: isFullScreen
, cancelFullScreen: cancelFullScreen
, prefix: prefix
, supported: supported
};
}
else {
$.fn.requestFullScreen = $.fn.fullScreenChange = noop;
$.FullScreen =
{ isFullScreen: function() { return false; }
, cancelFullScreen: noop
, prefix: prefix
, supported: supported
};
}
})(jQuery);