Sha256: 29d7036a5e011b6a91d50b7a291d9c5979eb5bb11b3a9e9e4f0b2ed2a5e29a7b

Contents?: true

Size: 672 Bytes

Versions: 54

Compression:

Stored size: 672 Bytes

Contents

/**
 * Not empty state helper-wrapper.
 *
 * @author Htmlstream
 * @version 1.0
 *
 */
;(function ($) {
  'use strict';

  $.HSCore.helpers.HSNotEmptyState = {
    /**
     * Not empty state.
     *
     * @return undefined
     */
    init: function () {
      var collection = $('input:not([type="checkbox"], [type="radio"]), textarea');

      if (!collection.length) return;

      collection.on('keyup', function () {
        var $this = $(this),
            thisVal = $this.val();

        if (thisVal != 0) {
          $this.addClass('g-state-not-empty');
        } else {
          $this.removeClass('g-state-not-empty');
        }
      });
    }
  };
})(jQuery);

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
jekyll-theme-glueckkanja-1.2.29 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.28 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.27 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.26 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.25 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.24 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.23 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.22 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.21 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.20 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.19 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.18 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.17 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.16 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.15 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.14 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.13 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.12 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.11 assets/js/helpers/hs.not-empty-state.js
jekyll-theme-glueckkanja-1.2.10 assets/js/helpers/hs.not-empty-state.js