Sha256: 8b6e1c4db5569a059403a814104f0b4f31a61bc6a7ad5a73d8b86b09c8124882
Contents?: true
Size: 519 Bytes
Versions: 10
Compression:
Stored size: 519 Bytes
Contents
$(function() { $('.feature-lines').each(function() { var lines = $(this).data('lines').split(','), prefix = $(this).data('prefix'); $(this).popover({ html : true, content : function() { return lineList(prefix, lines) }, placement: 'bottom' }); }); function lineList(prefix, lines) { var str = '<ul>'; lines.forEach(function(line) { line = '<li><a href="' + prefix + line + '">' + line + '</a></li>'; str += line; }); return str; } });
Version data entries
10 entries across 10 versions & 1 rubygems