Sha256: 5568046089b3d6c44b65b5d955a895b2fd7806b4661816cb9202bcdeee3f5a46
Contents?: true
Size: 460 Bytes
Versions: 11
Compression:
Stored size: 460 Bytes
Contents
(function($){ $(document).ready(function(){ $('.snippet').each(function(){ var $this = $(this); var classes = $this.attr('class').split(' '); $.each(classes, function(k,v){ var pieces = v.split('-'); if (pieces[0] == 'snippet' && typeof pieces[1] != 'undefined') { var type = pieces[1]; $this.on('keyup', function(e) { $el = $(this); $el.snippet(type); }) } }); }); }); })(jQuery);
Version data entries
11 entries across 11 versions & 1 rubygems