Sha256: 8830f3dfd5c43144469b7ec53c5c3fa07af21896c3b98f6d50245c07275dd275
Contents?: true
Size: 525 Bytes
Versions: 137
Compression:
Stored size: 525 Bytes
Contents
(function() { var showTime = 5000; var fadeOutTime = 500; Spree.ready(function() { var $initialFlash; $initialFlash = $(".flash"); setTimeout((function() { $initialFlash.fadeOut(fadeOutTime); }), showTime); }); window.show_flash = function(type, message) { var $flashWrapper = $(".js-flash-wrapper"); var flash_div = $("<div class=\"flash " + type + "\" />"); $flashWrapper.prepend(flash_div); flash_div.html(message).show().delay(showTime).fadeOut(fadeOutTime); }; })();
Version data entries
137 entries across 137 versions & 2 rubygems