Sha256: a2e82c3e8ddcf55189d5647e88cea3ff4f262acaa96ca56513213e9a2c10bc95

Contents?: true

Size: 583 Bytes

Versions: 9

Compression:

Stored size: 583 Bytes

Contents

(function($) {
  $.widget('pageflow.outlineNavigationBarFullscreenButton', {
    _create: function() {
      var element = this.element;

      if ($.support.fullscreen) {
        element.click(function() {
          element.toggleClass('fs').updateTitle();

          $('#outer_wrapper').fullScreen({
            callback: function(isFullScreen) {
              element
                .toggleClass('active', !!isFullScreen)
                .updateTitle();
            }
          });
        });
      }
      else {
        element.parent().hide();
      }
    }
  });
}(jQuery));

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pageflow-outline-navigation-bar-1.6.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.5.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.4.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.3.1 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.3.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.2.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.1.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-1.0.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js
pageflow-outline-navigation-bar-0.1.0 app/assets/javascript/pageflow/outline_navigation_bar/fullscreen_button.js