Sha256: a5b5bd85e8d2de99e9460c8d633fef8aebaa120c05ab8f15611745ef11d6ec65

Contents?: true

Size: 623 Bytes

Versions: 21

Compression:

Stored size: 623 Bytes

Contents

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

      parent.on('pageactivate', function(event) {
        that.element.toggleClass('invert', $(event.target).hasClass('invert'));
        that.element.toggleClass('hidden', $(event.target).hasClass('hide_content_with_text'));
      });

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

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pageflow-0.9.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.9.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.9.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.8.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.8.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.8.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.7.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.7.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.7.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.6.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.5.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.4.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.3.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.2.1 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.2.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.1.0 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.0.5 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.0.4 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.0.3 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js
pageflow-0.0.2 app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js