Sha256: 04252ebe3b95a9f483414939b198bd8dcd8633d3a49c5b6abf2a5f373ac09ea3

Contents?: true

Size: 840 Bytes

Versions: 58

Compression:

Stored size: 840 Bytes

Contents

(function($) {
  $.widget('pageflow.hiddenTextIndicator', {
    _create: function() {
      var parent = this.options.parent,
          that = this;

      parent.on('pageactivate', function(event) {
        var pageOrPageWrapper = $(event.target).add('.content_and_background', event.target);

        that.element.toggleClass('invert', $(event.target).hasClass('invert'));
        that.element.toggleClass('hidden',
                                 pageOrPageWrapper.hasClass('hide_content_with_text') ||
                                 pageOrPageWrapper.hasClass('no_hidden_text_indicator'));
      });

      parent.on('hidetextactivate', function() {
        that.element.addClass('visible');
      });

      parent.on('hidetextdeactivate', function() {
        that.element.removeClass('visible');
      });
    }
  });
}(jQuery));

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
pageflow-14.5.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.5.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.5.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.rc2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.rc1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.beta4 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.beta3 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.4.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.beta2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-15.0.0.beta1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.3.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.2.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.2.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.1.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.1.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.0.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-14.0.0.rc2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js