Sha256: 8a2d0a2e1413dc705277b45bd7c1b8f5b805222608566eaae3b33db34fdf4f5b
Contents?: true
Size: 482 Bytes
Versions: 15
Compression:
Stored size: 482 Bytes
Contents
YUI().use('node', function(Y) { var code = Y.all('.prettyprint.linenums'); if (code.size()) { code.each(function(c) { var lis = c.all('ol li'), l = 1; lis.each(function(n) { n.prepend('<a name="LINENUM_' + l + '"></a>'); l++; }); }); var h = location.hash; location.hash = ''; h = h.replace('LINE_', 'LINENUM_'); location.hash = h; } });
Version data entries
15 entries across 15 versions & 2 rubygems