// 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);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
MIT-LICENSE.txt | File | 1.07 KB | 0644 |
|
additional-methods.js | File | 36.62 KB | 0644 |
|
jquery-2.1.4.min.js | File | 82.37 KB | 0644 |
|
jquery-ui-1.11.4.min.js | File | 234.79 KB | 0644 |
|
jquery-ui-timepicker-addon.js | File | 73.95 KB | 0644 |
|
jquery.ba-hashchange-1.3.js | File | 16.13 KB | 0644 |
|
jquery.cookie.js | File | 3.63 KB | 0644 |
|
jquery.debounce-1.0.5.js | File | 1.14 KB | 0644 |
|
jquery.event.drag-2.2.js | File | 12.53 KB | 0644 |
|
jquery.fullscreen.js | File | 1.61 KB | 0644 |
|
jquery.mousewheel.js | File | 8.08 KB | 0644 |
|
jquery.sortableTable.js | File | 8.07 KB | 0644 |
|
jquery.svg.js | File | 55.32 KB | 0644 |
|
jquery.tablesorter.js | File | 39.16 KB | 0644 |
|
jquery.uitablefilter.js | File | 3.4 KB | 0644 |
|
jquery.validate.js | File | 52.58 KB | 0644 |
|