Sha256: aecda8928fcd001a95bfb4dbd2ffa8c283a7bae90e5f63f8205a0849cf8c915b

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

var Flash = (function($) {

  var flashTimeout = 4000;

  var _showFlashes = function() {
    var $flash = $('.flashes-container');

    if($flash.length) {
      setTimeout(function() {
        $flash.addClass('is-remove');
      }, flashTimeout);
    }
  };

  var init = function() {
    _showFlashes();
  };

  return {
    init: init
  };

})(jQuery);

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lato_view-1.1.5 app/assets/javascripts/lato_view/build/Flash.js
lato_view-1.1.4 app/assets/javascripts/lato_view/build/Flash.js
lato_view-1.1.3 app/assets/javascripts/lato_view/build/Flash.js
lato_view-1.1 app/assets/javascripts/lato_view/build/Flash.js