Sha256: ad6f20f16de7cbfc98eb668205b52a423502473a6c4016d5f32ca000df9dd31c
Contents?: true
Size: 610 Bytes
Versions: 67
Compression:
Stored size: 610 Bytes
Contents
(function($) { $.widget('pageflow.fullscreenButton', { _create: function() { pageflow.fullscreen.on('change', this.update, this); this.update(); this.element.click(function() { pageflow.fullscreen.toggle(); }); if (!pageflow.fullscreen.isSupported()) { this.element.css('visibility', 'hidden'); } }, _destroy: function() { pageflow.fullscreen.off('change', this.update); }, update: function() { this.element .toggleClass('active', !!pageflow.fullscreen.isActive()) .updateTitle(); } }); }(jQuery));
Version data entries
67 entries across 67 versions & 1 rubygems