Sha256: 4498ac0b352c00e661fbdfac975820c58bdbb93b88292792ed3217306203983c
Contents?: true
Size: 567 Bytes
Versions: 118
Compression:
Stored size: 567 Bytes
Contents
<button class="trigger-flash" data-flash-type="success">Success</button> <button class="trigger-flash" data-flash-type="notice">Warning</button> <button class="trigger-flash" data-flash-type="error">Error</button> <script> $('.trigger-flash').on('click', function(){ type = $(this).data('flashType'); if (!$('.flash.' + type).is('*')) { flash = $("<div class='flash'>") .text(type) .addClass(type) .appendTo('.js-flash-wrapper') .on('click', function() { $(this).remove(); }); } }); </script>
Version data entries
118 entries across 118 versions & 2 rubygems