rails-assets-jquery-fullscreen-plugin-0.5.0/0000755000004100000410000000000012572600711021130 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/Rakefile0000644000004100000410000000003412572600711022572 0ustar www-datawww-datarequire "bundler/gem_tasks" rails-assets-jquery-fullscreen-plugin-0.5.0/Gemfile0000644000004100000410000000011112572600711022414 0ustar www-datawww-datasource 'https://rubygems.org' source 'https://rails-assets.org' gemspec rails-assets-jquery-fullscreen-plugin-0.5.0/rails-assets-jquery-fullscreen-plugin.gemspec0000644000004100000410000000154612572600711032066 0ustar www-datawww-data# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'rails-assets-jquery-fullscreen-plugin/version' Gem::Specification.new do |spec| spec.name = "rails-assets-jquery-fullscreen-plugin" spec.version = RailsAssetsJqueryFullscreenPlugin::VERSION spec.authors = ["rails-assets.org"] spec.description = "jQuery plugin for showing any DOM element on a page in fullscreen mode" spec.summary = "jQuery plugin for showing any DOM element on a page in fullscreen mode" spec.homepage = "https://github.com/private-face/jquery.fullscreen" spec.license = "MIT" spec.files = `find ./* -type f | cut -b 3-`.split($/) spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" end rails-assets-jquery-fullscreen-plugin-0.5.0/lib/0000755000004100000410000000000012572600711021676 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/lib/rails-assets-jquery-fullscreen-plugin.rb0000644000004100000410000000142312572600711031606 0ustar www-datawww-datarequire "rails-assets-jquery-fullscreen-plugin/version" module RailsAssetsJqueryFullscreenPlugin def self.gem_path Pathname(File.realpath(__FILE__)).join('../..') end def self.gem_spec Gem::Specification::load( gem_path.join("rails-assets-jquery-fullscreen-plugin.gemspec").to_s ) end def self.load_paths gem_path.join('app/assets').each_child.to_a end def self.dependencies [ ] end if defined?(Rails) class Engine < ::Rails::Engine # Rails -> use app/assets directory. end end end class RailsAssets @components ||= [] class << self attr_accessor :components def load_paths components.flat_map(&:load_paths) end end end RailsAssets.components << RailsAssetsJqueryFullscreenPlugin rails-assets-jquery-fullscreen-plugin-0.5.0/lib/rails-assets-jquery-fullscreen-plugin/0000755000004100000410000000000012572600711031261 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/lib/rails-assets-jquery-fullscreen-plugin/version.rb0000644000004100000410000000010112572600711033263 0ustar www-datawww-datamodule RailsAssetsJqueryFullscreenPlugin VERSION = "0.5.0" end rails-assets-jquery-fullscreen-plugin-0.5.0/metadata.yml0000644000004100000410000000411712572600711023436 0ustar www-datawww-data--- !ruby/object:Gem::Specification name: rails-assets-jquery-fullscreen-plugin version: !ruby/object:Gem::Version version: 0.5.0 platform: ruby authors: - rails-assets.org autorequire: bindir: bin cert_chain: [] date: 2015-05-26 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler requirement: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - ~> - !ruby/object:Gem::Version version: '1.3' - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement requirements: - - '>=' - !ruby/object:Gem::Version version: '0' type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '>=' - !ruby/object:Gem::Version version: '0' description: jQuery plugin for showing any DOM element on a page in fullscreen mode email: executables: [] extensions: [] extra_rdoc_files: [] files: - Gemfile - README.md - Rakefile - app/assets/javascripts/jquery-fullscreen-plugin.js - app/assets/javascripts/jquery-fullscreen-plugin/jquery.fullscreen.js - app/assets/javascripts/jquery-fullscreen-plugin/jquery.fullscreen.min.js - lib/rails-assets-jquery-fullscreen-plugin.rb - lib/rails-assets-jquery-fullscreen-plugin/version.rb - rails-assets-jquery-fullscreen-plugin.gemspec homepage: https://github.com/private-face/jquery.fullscreen licenses: - MIT metadata: {} post_install_message: rdoc_options: [] require_paths: - lib required_ruby_version: !ruby/object:Gem::Requirement requirements: - - '>=' - !ruby/object:Gem::Version version: '0' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - '>=' - !ruby/object:Gem::Version version: '0' requirements: [] rubyforge_project: rubygems_version: 2.3.0 signing_key: specification_version: 4 summary: jQuery plugin for showing any DOM element on a page in fullscreen mode test_files: [] rails-assets-jquery-fullscreen-plugin-0.5.0/app/0000755000004100000410000000000012572600711021710 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/0000755000004100000410000000000012572600711023212 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/0000755000004100000410000000000012572600711025543 5ustar www-datawww-datarails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/jquery-fullscreen-plugin/0000755000004100000410000000000012572600711032516 5ustar www-datawww-data././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootrails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/jquery-fullscreen-plugin/jquery.fullscreen.jsrails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/jquery-fullscreen-plugin/jquery.f0000644000004100000410000002060312572600711034205 0ustar www-datawww-data/* * jQuery.fullscreen v0.5.0 * https://github.com/private-face/jquery.fullscreen * * Copyright (c) 2012–2014 Vladimir Zhuravlev * Released under the MIT license * https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE * * Date: 2014-12-20 **/ ;!function($) {function defined(a) { return typeof a !== "undefined"; } function extend(child, parent, prototype) { var F = function() {}; F.prototype = parent.prototype; child.prototype = new F(); child.prototype.constructor = child; parent.prototype.constructor = parent; child._super = parent.prototype; if (prototype) { $.extend(child.prototype, prototype); } } var SUBST = [ [ "", "" ], [ "exit", "cancel" ], [ "screen", "Screen" ] ]; var VENDOR_PREFIXES = [ "", "o", "ms", "moz", "webkit", "webkitCurrent" ]; function native(obj, name) { var prefixed; if (typeof obj === "string") { name = obj; obj = document; } for (var i = 0; i < SUBST.length; ++i) { name = name.replace(SUBST[i][0], SUBST[i][1]); for (var j = 0; j < VENDOR_PREFIXES.length; ++j) { prefixed = VENDOR_PREFIXES[j]; prefixed += j === 0 ? name : name.charAt(0).toUpperCase() + name.substr(1); if (defined(obj[prefixed])) { return obj[prefixed]; } } } return void 0; } var ua = navigator.userAgent; var fsEnabled = native("fullscreenEnabled"); var IS_ANDROID_CHROME = ua.indexOf("Android") !== -1 && ua.indexOf("Chrome") !== -1; var IS_NATIVELY_SUPPORTED = !IS_ANDROID_CHROME && defined(native("fullscreenElement")) && (!defined(fsEnabled) || fsEnabled === true); var version = $.fn.jquery.split("."); var JQ_LT_17 = parseInt(version[0]) < 2 && parseInt(version[1]) < 7; var FullScreenAbstract = function() { this.__options = null; this._fullScreenElement = null; this.__savedStyles = {}; }; FullScreenAbstract.prototype = { "native": native, _DEFAULT_OPTIONS: { styles: { boxSizing: "border-box", MozBoxSizing: "border-box", WebkitBoxSizing: "border-box" }, toggleClass: null }, __documentOverflow: "", __htmlOverflow: "", _preventDocumentScroll: function() { this.__documentOverflow = document.body.style.overflow; this.__htmlOverflow = document.documentElement.style.overflow; if (!$(this._fullScreenElement).is("body, html")) { $("body, html").css("overflow", "hidden"); } }, _allowDocumentScroll: function() { document.body.style.overflow = this.__documentOverflow; document.documentElement.style.overflow = this.__htmlOverflow; }, _fullScreenChange: function() { if (!this.__options) { return; } if (!this.isFullScreen()) { this._allowDocumentScroll(); this._revertStyles(); this._triggerEvents(); this._fullScreenElement = null; } else { this._preventDocumentScroll(); this._triggerEvents(); } }, _fullScreenError: function(e) { if (!this.__options) { return; } this._revertStyles(); this._fullScreenElement = null; if (e) { $(document).trigger("fscreenerror", [ e ]); } }, _triggerEvents: function() { $(this._fullScreenElement).trigger(this.isFullScreen() ? "fscreenopen" : "fscreenclose"); $(document).trigger("fscreenchange", [ this.isFullScreen(), this._fullScreenElement ]); }, _saveAndApplyStyles: function() { var $elem = $(this._fullScreenElement); this.__savedStyles = {}; for (var property in this.__options.styles) { this.__savedStyles[property] = this._fullScreenElement.style[property]; this._fullScreenElement.style[property] = this.__options.styles[property]; } if ($elem.is("body")) { document.documentElement.style.overflow = this.__options.styles.overflow; } if (this.__options.toggleClass) { $elem.addClass(this.__options.toggleClass); } }, _revertStyles: function() { var $elem = $(this._fullScreenElement); for (var property in this.__options.styles) { this._fullScreenElement.style[property] = this.__savedStyles[property]; } if ($elem.is("body")) { document.documentElement.style.overflow = this.__savedStyles.overflow; } if (this.__options.toggleClass) { $elem.removeClass(this.__options.toggleClass); } }, open: function(elem, options) { if (elem === this._fullScreenElement) { return; } if (this.isFullScreen()) { this.exit(); } this._fullScreenElement = elem; this.__options = $.extend(true, {}, this._DEFAULT_OPTIONS, options); this._saveAndApplyStyles(); }, exit: null, isFullScreen: null, isNativelySupported: function() { return IS_NATIVELY_SUPPORTED; } }; var FullScreenNative = function() { FullScreenNative._super.constructor.apply(this, arguments); this.exit = $.proxy(native("exitFullscreen"), document); this._DEFAULT_OPTIONS = $.extend(true, {}, this._DEFAULT_OPTIONS, { styles: { width: "100%", height: "100%" } }); $(document).bind(this._prefixedString("fullscreenchange") + " MSFullscreenChange", $.proxy(this._fullScreenChange, this)).bind(this._prefixedString("fullscreenerror") + " MSFullscreenError", $.proxy(this._fullScreenError, this)); }; extend(FullScreenNative, FullScreenAbstract, { VENDOR_PREFIXES: [ "", "o", "moz", "webkit" ], _prefixedString: function(str) { return $.map(this.VENDOR_PREFIXES, function(s) { return s + str; }).join(" "); }, open: function(elem, options) { FullScreenNative._super.open.apply(this, arguments); var requestFS = native(elem, "requestFullscreen"); requestFS.call(elem); }, exit: $.noop, isFullScreen: function() { return native("fullscreenElement") !== null; }, element: function() { return native("fullscreenElement"); } }); var FullScreenFallback = function() { FullScreenFallback._super.constructor.apply(this, arguments); this._DEFAULT_OPTIONS = $.extend({}, this._DEFAULT_OPTIONS, { styles: { position: "absolute", zIndex: "2147483647", left: 0, top: 0, bottom: 0, right: 0 } }); this.__delegateKeydownHandler(); }; extend(FullScreenFallback, FullScreenAbstract, { __isFullScreen: false, __delegateKeydownHandler: function() { var $doc = $(document); $doc.delegate("*", "keydown.fullscreen", $.proxy(this.__keydownHandler, this)); var data = JQ_LT_17 ? $doc.data("events") : $._data(document).events; var events = data["keydown"]; if (!JQ_LT_17) { events.splice(0, 0, events.splice(events.delegateCount - 1, 1)[0]); } else { data.live.unshift(data.live.pop()); } }, __keydownHandler: function(e) { if (this.isFullScreen() && e.which === 27) { this.exit(); return false; } return true; }, _revertStyles: function() { FullScreenFallback._super._revertStyles.apply(this, arguments); this._fullScreenElement.offsetHeight; }, open: function(elem) { FullScreenFallback._super.open.apply(this, arguments); this.__isFullScreen = true; this._fullScreenChange(); }, exit: function() { if (!this.__isFullScreen) { return; } this.__isFullScreen = false; this._fullScreenChange(); }, isFullScreen: function() { return this.__isFullScreen; }, element: function() { return this.__isFullScreen ? this._fullScreenElement : null; } }); $.fullscreen = IS_NATIVELY_SUPPORTED ? new FullScreenNative() : new FullScreenFallback(); $.fn.fullscreen = function(options) { var elem = this[0]; options = $.extend({ toggleClass: null, overflow: "hidden" }, options); options.styles = { overflow: options.overflow }; delete options.overflow; if (elem) { $.fullscreen.open(elem, options); } return this; }; }(jQuery);././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootrails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/jquery-fullscreen-plugin/jquery.fullscreen.min.jsrails-assets-jquery-fullscreen-plugin-0.5.0/app/assets/javascripts/jquery-fullscreen-plugin/jquery.f0000644000004100000410000001327112572600711034210 0ustar www-datawww-data/* * jQuery.fullscreen v0.5.0 * https://github.com/private-face/jquery.fullscreen * * Copyright (c) 2012–2014 Vladimir Zhuravlev * Released under the MIT license * https://github.com/private-face/jquery.fullscreen/blob/master/LICENSE * * Date: 2014-12-20 **/ ;!function($) { function defined(a){return"undefined"!=typeof a}function extend(a,b,c){var d=function(){};d.prototype=b.prototype,a.prototype=new d,a.prototype.constructor=a,b.prototype.constructor=b,a._super=b.prototype,c&&$.extend(a.prototype,c)}function native(a,b){var c;"string"==typeof a&&(b=a,a=document);for(var d=0;d The Bower package inside a gem This gem was automatically generated. You can visit [rails-assets.org](https://rails-assets.org) for more information. ## Usage Add rails-assets source block to your `Gemfile`: ```ruby source "https://rails-assets.org" do gem "rails-assets-jquery-fullscreen-plugin" end ``` Then, import the asset using Sprockets’ `require` directive: ```js //= require "jquery-fullscreen-plugin" ```