Sha256: c1f1f4e003b8ea1d545bdd73f8f35bdaa4c00dbd9586728ac8c73308fc3c5429
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 Bytes
Contents
//= require screenfull (function($) { $.isFullScreenEnabled = function() { return screenfull.enabled; }; $.extend($.fn, { fullScreen: function() { return this.each(function() { $(this).on('click', function() { if ($.isFullScreenEnabled()) { screenfull.toggle(this); } }).on(screenfull.raw.fullscreenchange, function() { var $el = $(this); if (screenfull.isFullscreen) { $el.trigger('fullscreen:enter'); } else { $el.trigger('fullscreen:exit'); } }); }); }, }); })(jQuery);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jquery-screenfull-rails-0.0.2 | vendor/assets/javascripts/jquery.screenfull.js |
jquery-screenfull-rails-0.0.1 | vendor/assets/javascripts/jquery.screenfull.js |